diff options
Diffstat (limited to 'kommander/widgets/wizard.cpp')
-rw-r--r-- | kommander/widgets/wizard.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kommander/widgets/wizard.cpp b/kommander/widgets/wizard.cpp index 7e6a07b4..8cc16933 100644 --- a/kommander/widgets/wizard.cpp +++ b/kommander/widgets/wizard.cpp @@ -17,12 +17,12 @@ #include <kprocess.h> /* QT INCLUDES */ -#include <qstring.h> -#include <qwidget.h> -#include <qstringlist.h> -#include <qevent.h> -#include <qwizard.h> -#include <qdialog.h> +#include <tqstring.h> +#include <tqwidget.h> +#include <tqstringlist.h> +#include <tqevent.h> +#include <tqwizard.h> +#include <tqdialog.h> /* OTHER INCLUDES */ #include <myprocess.h> @@ -31,17 +31,17 @@ #include "wizard.h" -Wizard::Wizard(QWidget *a_parent, const char *a_name, bool a_modal, int a_flags) - : QWizard(a_parent, a_name, a_modal, a_flags), KommanderWidget(this) +Wizard::Wizard(TQWidget *a_parent, const char *a_name, bool a_modal, int a_flags) + : TQWizard(a_parent, a_name, a_modal, a_flags), KommanderWidget(this) { - QStringList states; + TQStringList states; states << "default"; states << "initialization"; states << "destroy"; setStates(states); setDisplayStates(states); - connect(this, SIGNAL(helpClicked()), SLOT(runHelp())); + connect(this, TQT_SIGNAL(helpClicked()), TQT_SLOT(runHelp())); } Wizard::~Wizard() @@ -50,9 +50,9 @@ Wizard::~Wizard() destroy(); } -QString Wizard::currentState() const +TQString Wizard::currentState() const { - return QString("default"); + return TQString("default"); } bool Wizard::isKommanderWidget() const @@ -60,33 +60,33 @@ bool Wizard::isKommanderWidget() const return true; } -QStringList Wizard::associatedText() const +TQStringList Wizard::associatedText() const { return KommanderWidget::associatedText(); } -void Wizard::setAssociatedText(const QStringList& a_at) +void Wizard::setAssociatedText(const TQStringList& a_at) { KommanderWidget::setAssociatedText(a_at); } -void Wizard::setPopulationText(const QString& a_text) +void Wizard::setPopulationText(const TQString& a_text) { KommanderWidget::setPopulationText(a_text); } -QString Wizard::populationText() const +TQString Wizard::populationText() const { return KommanderWidget::populationText(); } void Wizard::populate() { - QString txt = KommanderWidget::evalAssociatedText(populationText()); + TQString txt = KommanderWidget::evalAssociatedText(populationText()); //FIXME: implement me } -void Wizard::setWidgetText(const QString &a_text) +void Wizard::setWidgetText(const TQString &a_text) { setCaption(a_text); emit widgetTextChanged(a_text); @@ -95,7 +95,7 @@ void Wizard::setWidgetText(const QString &a_text) void Wizard::initialize() { setFinishEnabled(page(pageCount() - 1), true); - const QStringList assoc = associatedText(); + const TQStringList assoc = associatedText(); if (assoc.count() > 1 && !assoc[1].isEmpty()) { MyProcess proc(this); @@ -105,7 +105,7 @@ void Wizard::initialize() void Wizard::destroy() { - const QStringList assoc = associatedText(); + const TQStringList assoc = associatedText(); if (assoc.count() > 2 && !assoc[2].isEmpty()) { MyProcess proc(this); @@ -115,13 +115,13 @@ void Wizard::destroy() void Wizard::exec() { - QWizard::exec(); + TQWizard::exec(); emit finished(); } void Wizard::show() { - QWizard::show(); + TQWizard::show(); if (!inEditor) initialize(); } @@ -137,7 +137,7 @@ void Wizard::runHelp() else if (helpAction() == Dialog) { KommanderFactory::loadPlugins(); - QDialog *dialog = (QDialog *)KommanderFactory::create(helpActionText()); + TQDialog *dialog = (TQDialog *)KommanderFactory::create(helpActionText()); dialog->exec(); delete dialog; } @@ -153,31 +153,31 @@ void Wizard::setHelpAction(HelpAction a_helpAction) m_helpAction = a_helpAction; } -QString Wizard::helpActionText() const +TQString Wizard::helpActionText() const { return m_helpActionText; } -void Wizard::setHelpActionText(const QString& a_helpActionText) +void Wizard::setHelpActionText(const TQString& a_helpActionText) { m_helpActionText = a_helpActionText; } -void Wizard::showEvent(QShowEvent *e) +void Wizard::showEvent(TQShowEvent *e) { - QWizard::showEvent(e); + TQWizard::showEvent(e); emit widgetOpened(); } -void Wizard::contextMenuEvent( QContextMenuEvent * e ) +void Wizard::contextMenuEvent( TQContextMenuEvent * e ) { e->accept(); - QPoint p = e->globalPos(); + TQPoint p = e->globalPos(); emit contextMenuRequested(p.x(), p.y()); } -QString Wizard::handleDCOP(int function, const QStringList& args) +TQString Wizard::handleDCOP(int function, const TQStringList& args) { switch (function) { case DCOP::setEnabled: @@ -186,7 +186,7 @@ QString Wizard::handleDCOP(int function, const QStringList& args) default: return KommanderWidget::handleDCOP(function, args); } - return QString(); + return TQString(); } |