diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widgets/textbrowser.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/textbrowser.cpp')
-rw-r--r-- | kommander/widgets/textbrowser.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kommander/widgets/textbrowser.cpp b/kommander/widgets/textbrowser.cpp index 324bc62c..a2f9e744 100644 --- a/kommander/widgets/textbrowser.cpp +++ b/kommander/widgets/textbrowser.cpp @@ -18,9 +18,9 @@ #include <klocale.h> /* QT INCLUDES */ -#include <qstringlist.h> -#include <qevent.h> -#include <qstring.h> +#include <tqstringlist.h> +#include <tqevent.h> +#include <tqstring.h> /* OTHER INCLUDES */ #include "kommanderplugin.h" @@ -34,21 +34,21 @@ enum Functions { LastFunction }; -TextBrowser::TextBrowser(QWidget * a_parent, const char *a_name) - : KTextBrowser(a_parent, a_name), KommanderWidget((QObject *) this) +TextBrowser::TextBrowser(TQWidget * a_parent, const char *a_name) + : KTextBrowser(a_parent, a_name), KommanderWidget((TQObject *) this) { - QStringList states; + TQStringList states; states << "default"; setStates(states); setDisplayStates(states); KommanderPlugin::setDefaultGroup(Group::DCOP); - KommanderPlugin::registerFunction(TBR_setNotifyClick, "setNotifyClick(QString widget, bool Set)",i18n("Set notify click to intercept clicks and handle links"), 2, 2); - KommanderPlugin::registerFunction(TBR_isNotifyClick, "isNotifyClick(QString widget)",i18n("Set notify click to intercept clicks and handle links"), 1); + KommanderPlugin::registerFunction(TBR_setNotifyClick, "setNotifyClick(TQString widget, bool Set)",i18n("Set notify click to intercept clicks and handle links"), 2, 2); + KommanderPlugin::registerFunction(TBR_isNotifyClick, "isNotifyClick(TQString widget)",i18n("Set notify click to intercept clicks and handle links"), 1); } -QString TextBrowser::currentState() const +TQString TextBrowser::currentState() const { - return QString("default"); + return TQString("default"); } TextBrowser::~TextBrowser() @@ -60,47 +60,47 @@ bool TextBrowser::isKommanderWidget() const return true; } -QStringList TextBrowser::associatedText() const +TQStringList TextBrowser::associatedText() const { return KommanderWidget::associatedText(); } -void TextBrowser::setAssociatedText(const QStringList & a_at) +void TextBrowser::setAssociatedText(const TQStringList & a_at) { KommanderWidget::setAssociatedText(a_at); } -void TextBrowser::setPopulationText(const QString & a_text) +void TextBrowser::setPopulationText(const TQString & a_text) { KommanderWidget::setPopulationText(a_text); } -QString TextBrowser::populationText() const +TQString TextBrowser::populationText() const { return KommanderWidget::populationText(); } void TextBrowser::populate() { - QString txt = KommanderWidget::evalAssociatedText(populationText()); + TQString txt = KommanderWidget::evalAssociatedText(populationText()); setWidgetText(txt); } -void TextBrowser::setWidgetText(const QString & a_text) +void TextBrowser::setWidgetText(const TQString & a_text) { setText(a_text); } -void TextBrowser::showEvent(QShowEvent * e) +void TextBrowser::showEvent(TQShowEvent * e) { - QTextBrowser::showEvent(e); + TQTextBrowser::showEvent(e); emit widgetOpened(); } -void TextBrowser::contextMenuEvent( QContextMenuEvent * e ) +void TextBrowser::contextMenuEvent( TQContextMenuEvent * e ) { e->accept(); - QPoint p = e->globalPos(); + TQPoint p = e->globalPos(); emit contextMenuRequested(p.x(), p.y()); } @@ -110,7 +110,7 @@ bool TextBrowser::isFunctionSupported(int f) return f == DCOP::text || f == DCOP::setText || f == DCOP::selection || f == DCOP::clear || (f >= FirstFunction && f <= LastFunction); } -QString TextBrowser::handleDCOP(int function, const QStringList& args) +TQString TextBrowser::handleDCOP(int function, const TQStringList& args) { switch (function) { case DCOP::text: @@ -124,7 +124,7 @@ QString TextBrowser::handleDCOP(int function, const QStringList& args) KTextBrowser::setNotifyClick(args[0]); break; case TBR_isNotifyClick: - return QString::number(KTextBrowser::isNotifyClick()); + return TQString::number(KTextBrowser::isNotifyClick()); break; case DCOP::clear: clear(); @@ -132,7 +132,7 @@ QString TextBrowser::handleDCOP(int function, const QStringList& args) default: return KommanderWidget::handleDCOP(function, args); } - return QString(); + return TQString(); } |