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/portposdlg.cpp | 56 ++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'arts/builder/portposdlg.cpp') diff --git a/arts/builder/portposdlg.cpp b/arts/builder/portposdlg.cpp index 6d5d0deb..3584de45 100644 --- a/arts/builder/portposdlg.cpp +++ b/arts/builder/portposdlg.cpp @@ -21,42 +21,42 @@ #include "portposdlg.h" #include "structureport.h" -#include -#include -#include +#include +#include +#include #include #include #include -#include -#include +#include +#include #include #include #include -#include +#include #include #include -#include +#include #include using namespace std; -PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"Props", TRUE) +PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,"Props", TRUE) { this->structure = structure; setCaption(i18n("aRts: Structureport View")); - QVBoxLayout *mainlayout = new QVBoxLayout(this); - //QHBoxLayout *contentslayout = new QHBoxLayout; + TQVBoxLayout *mainlayout = new TQVBoxLayout(this); + //TQHBoxLayout *contentslayout = new QHBoxLayout; // object type /* mainlayout->addSpacing(5); - QLabel *objectlabel = new QLabel(this); - QFont labelfont(objectlabel->font()); + TQLabel *objectlabel = new TQLabel(this); + TQFont labelfont(objectlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); objectlabel->setFont(labelfont); - objectlabel->setText(QString(" ")+i18n("Object type: ")+QString(port->owner->name())+QString(" ")); + objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); objectlabel->setAlignment(AlignCenter); min_size(objectlabel); mainlayout->addWidget(objectlabel); @@ -66,7 +66,7 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P /* mainlayout->addSpacing(5); - QLabel *portlabel = new QLabel(this); + TQLabel *portlabel = new TQLabel(this); labelfont.setPointSize(labelfont.pointSize()*4/5); portlabel->setFont(labelfont); portlabel->setText(i18n("Port description: ")+ port->description); @@ -89,7 +89,7 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P */ // list - listbox = new QListBox(this); + listbox = new TQListBox(this); update(); @@ -103,7 +103,7 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P // buttons - QHBoxLayout *buttonlayout = new QHBoxLayout; + TQHBoxLayout *buttonlayout = new QHBoxLayout; mainlayout->addSpacing(5); mainlayout->addLayout(buttonlayout); mainlayout->addSpacing(5); @@ -111,27 +111,27 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P 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); KIconLoader iconloader; - QButton *raise = bbox->addButton(i18n("&Raise")); + TQButton *raise = bbox->addButton(i18n("&Raise")); raise->setPixmap(iconloader.loadIcon("up", KIcon::Small)); - connect( raise, SIGNAL( clicked() ), SLOT( raise() )); + connect( raise, TQT_SIGNAL( clicked() ), TQT_SLOT( raise() )); - QButton *lower = bbox->addButton(i18n("&Lower")); + TQButton *lower = bbox->addButton(i18n("&Lower")); lower->setPixmap(iconloader.loadIcon("down", KIcon::Small)); - connect( lower, SIGNAL( clicked() ), SLOT( lower() )); + connect( lower, TQT_SIGNAL( clicked() ), TQT_SLOT( lower() )); - QButton *rename = bbox->addButton(i18n("R&ename...")); - connect( rename, SIGNAL( clicked() ), SLOT( rename() )); + TQButton *rename = bbox->addButton(i18n("R&ename...")); + connect( rename, TQT_SIGNAL( clicked() ), TQT_SLOT( rename() )); - 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() ) ); /* - QButton *cancelbutton = bbox->addButton(i18n("Cancel")); - connect( cancelbutton, SIGNAL( clicked() ), SLOT(reject() ) ); + TQButton *cancelbutton = bbox->addButton(i18n("Cancel")); + connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); */ bbox->layout(); //min_size(bbox); @@ -188,7 +188,7 @@ void PortPosDlg::rename() assert(port); bool ok; - QString name = KInputDialog::getText( i18n( "Rename Port" ), + TQString name = KInputDialog::getText( i18n( "Rename Port" ), i18n( "Enter port name:" ), port->name(), &ok, this ); if (ok) { -- cgit v1.2.3