summaryrefslogtreecommitdiffstats
path: root/arts/builder/portposdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/builder/portposdlg.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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/portposdlg.cpp')
-rw-r--r--arts/builder/portposdlg.cpp56
1 files changed, 28 insertions, 28 deletions
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 <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
#include <kbuttonbox.h>
#include <klocale.h>
#include <kinputdialog.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <kseparator.h>
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include <stdio.h>
#include <arts/debug.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kstdguiitem.h>
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)
{