From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/builder/execdlg.cpp | 58 ++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'arts/builder/execdlg.cpp') 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 -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -37,44 +37,44 @@ #include "execdlg.h" #include "dirmanager.h" #include -#include +#include #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)); } } -- cgit v1.2.1