diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/builder/execdlg.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/builder/execdlg.cpp')
-rw-r--r-- | arts/builder/execdlg.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/arts/builder/execdlg.cpp b/arts/builder/execdlg.cpp index 4ed8bac9..ccd1ae40 100644 --- a/arts/builder/execdlg.cpp +++ b/arts/builder/execdlg.cpp @@ -19,12 +19,12 @@ */ -#include <qfile.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qlineedit.h> +#include <tqfile.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqlineedit.h> #include <kbuttonbox.h> #include <kfiledialog.h> @@ -37,44 +37,44 @@ #include "execdlg.h" #include "dirmanager.h" #include <arts/debug.h> -#include <qpushbutton.h> +#include <tqpushbutton.h> #ifndef KDE_USE_FINAL -static void min_size(QWidget *w) { +static void min_size(TQWidget *w) { w->setMinimumSize(w->sizeHint()); } #endif -ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure) - :QDialog(parent,"X") +ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure) + :TQDialog(parent,"X") /*, TRUE)*/ { this->structure = structure; setCaption(i18n("aRts Module Execution")); - mainlayout = new QVBoxLayout(this); + mainlayout = new TQVBoxLayout(this); // caption label: "Synthesis running..." mainlayout->addSpacing(5); - QLabel *captionlabel = new QLabel(this); - QFont labelfont(captionlabel->font()); + TQLabel *captionlabel = new TQLabel(this); + TQFont labelfont(captionlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); captionlabel->setFont(labelfont); - captionlabel->setText(QString(" ")+i18n("Synthesis running...")+QString(" ")); + captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" ")); captionlabel->setAlignment(AlignCenter); min_size(captionlabel); mainlayout->addWidget(captionlabel); - cpuusagelabel = new QLabel(this); + cpuusagelabel = new TQLabel(this); cpuusagelabel->setText(i18n("CPU usage: unknown")); - cpuusagetimer = new QTimer( this ); - connect( cpuusagetimer, SIGNAL(timeout()), - this, SLOT(updateCpuUsage()) ); - connect( cpuusagetimer, SIGNAL(timeout()), - this, SLOT(guiServerTick()) ); + cpuusagetimer = new TQTimer( this ); + connect( cpuusagetimer, TQT_SIGNAL(timeout()), + this, TQT_SLOT(updateCpuUsage()) ); + connect( cpuusagetimer, TQT_SIGNAL(timeout()), + this, TQT_SLOT(guiServerTick()) ); cpuusagetimer->start( 2000, false ); min_size(cpuusagelabel); @@ -107,7 +107,7 @@ ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure) // buttons - QHBoxLayout *buttonlayout = new QHBoxLayout; + TQHBoxLayout *buttonlayout = new QHBoxLayout; mainlayout->addSpacing(5); mainlayout->addLayout(buttonlayout); mainlayout->addSpacing(5); @@ -115,15 +115,15 @@ ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure) buttonlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); bbox->addStretch(1); - QButton *savebutton = bbox->addButton(KStdGuiItem::saveAs()); - connect( savebutton, SIGNAL( clicked() ), SLOT(saveSession() ) ); + TQButton *savebutton = bbox->addButton(KStdGuiItem::saveAs()); + connect( savebutton, TQT_SIGNAL( clicked() ), TQT_SLOT(saveSession() ) ); - QButton *okbutton = bbox->addButton(KStdGuiItem::ok()); - connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) ); + TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); + connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); bbox->layout(); //min_size(bbox); @@ -178,7 +178,7 @@ void ExecDlg::updateCpuUsage() void ExecDlg::done( int r ) { structure->stopExecute(); - QDialog::done(r); + TQDialog::done(r); emit ready(); } @@ -186,11 +186,11 @@ void ExecDlg::saveSession() { chdir(DirManager::sessionDir()); - QString filename = KFileDialog::getSaveFileName(0,"*.arts-session",this); + TQString filename = KFileDialog::getSaveFileName(0,"*.arts-session",this); if(!filename.isEmpty()) { arts_debug("save... %s",filename.local8Bit().data()); - structure->saveSession(QFile::encodeName(filename)); + structure->saveSession(TQFile::encodeName(filename)); } } |