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/subdialog.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/subdialog.cpp')
-rw-r--r-- | kommander/widgets/subdialog.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kommander/widgets/subdialog.cpp b/kommander/widgets/subdialog.cpp index 4986d174..292ac541 100644 --- a/kommander/widgets/subdialog.cpp +++ b/kommander/widgets/subdialog.cpp @@ -16,13 +16,13 @@ /* KDE INCLUDES */ /* QT INCLUDES */ -#include <qobject.h> -#include <qstring.h> -#include <qwidget.h> -#include <qstringlist.h> -#include <qevent.h> -#include <qpushbutton.h> -#include <qdialog.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqwidget.h> +#include <tqstringlist.h> +#include <tqevent.h> +#include <tqpushbutton.h> +#include <tqdialog.h> /* OTHER INCLUDES */ #include <kdebug.h> @@ -31,15 +31,15 @@ #include <specials.h> #include "subdialog.h" -SubDialog::SubDialog(QWidget *a_parent, const char *a_name) - : QPushButton(a_parent, a_name), KommanderWidget(this), m_dialog(0) +SubDialog::SubDialog(TQWidget *a_parent, const char *a_name) + : TQPushButton(a_parent, a_name), KommanderWidget(this), m_dialog(0) { - QStringList states; + TQStringList states; states << "default"; setStates(states); setDisplayStates(states); - connect(this, SIGNAL(clicked()), this, SLOT(showDialog())); + connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(showDialog())); } @@ -47,9 +47,9 @@ SubDialog::~SubDialog() { } -QString SubDialog::currentState() const +TQString SubDialog::currentState() const { - return QString("default"); + return TQString("default"); } bool SubDialog::isKommanderWidget() const @@ -57,39 +57,39 @@ bool SubDialog::isKommanderWidget() const return true; } -QStringList SubDialog::associatedText() const +TQStringList SubDialog::associatedText() const { return KommanderWidget::associatedText(); } -void SubDialog::setAssociatedText(const QStringList& a_at) +void SubDialog::setAssociatedText(const TQStringList& a_at) { KommanderWidget::setAssociatedText(a_at); } -void SubDialog::setPopulationText(const QString& a_text) +void SubDialog::setPopulationText(const TQString& a_text) { KommanderWidget::setPopulationText( a_text ); } -QString SubDialog::populationText() const +TQString SubDialog::populationText() const { return KommanderWidget::populationText(); } void SubDialog::populate() { - QString txt = KommanderWidget::evalAssociatedText( populationText() ); + TQString txt = KommanderWidget::evalAssociatedText( populationText() ); //FIXME } -void SubDialog::setKmdrFile(QString a_kmdrFile) +void SubDialog::setKmdrFile(TQString a_kmdrFile) { m_kmdrFile = a_kmdrFile; } -QString SubDialog::kmdrFile() const +TQString SubDialog::kmdrFile() const { return m_kmdrFile; } @@ -99,11 +99,11 @@ void SubDialog::showDialog() delete m_dialog; KommanderFactory::loadPlugins(); - m_dialog = (QDialog *)KommanderFactory::create(kmdrFile()); + m_dialog = (TQDialog *)KommanderFactory::create(kmdrFile()); if(!m_dialog) { kdWarning() << "Creation of sub dialog failed .." << endl; - connect(m_dialog, SIGNAL(finished()), this, SLOT(slotFinished())); + connect(m_dialog, TQT_SIGNAL(finished()), this, TQT_SLOT(slotFinished())); m_dialog->exec(); } @@ -119,19 +119,19 @@ void SubDialog::slotFinished() } } -void SubDialog::showEvent( QShowEvent *e ) +void SubDialog::showEvent( TQShowEvent *e ) { - QPushButton::showEvent( e ); + TQPushButton::showEvent( e ); emit widgetOpened(); } -QString SubDialog::handleDCOP(int function, const QStringList& args) +TQString SubDialog::handleDCOP(int function, const TQStringList& args) { switch (function) { case DCOP::text: { if (!m_dialog) - return QString(); + return TQString(); KommanderWidget *atw = dynamic_cast<KommanderWidget *>(m_dialog); if(atw) return atw->evalAssociatedText(); @@ -139,7 +139,7 @@ QString SubDialog::handleDCOP(int function, const QStringList& args) default: return KommanderWidget::handleDCOP(function, args); } - return QString(); + return TQString(); } |