From b1057f437bf65300831a0ccb45b920787c6b318d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 06:00:15 +0000 Subject: TQt4 port kdemultimedia This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/builder/portposdlg.cpp | 58 ++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'arts/builder/portposdlg.cpp') diff --git a/arts/builder/portposdlg.cpp b/arts/builder/portposdlg.cpp index 72bd4379..ecd877c9 100644 --- a/arts/builder/portposdlg.cpp +++ b/arts/builder/portposdlg.cpp @@ -40,52 +40,52 @@ using namespace std; -PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,"Props", TRUE) +PortPosDlg::PortPosDlg(TQWidget *tqparent, Structure *structure) :TQDialog(tqparent,"Props", TRUE) { this->structure = structure; setCaption(i18n("aRts: Structureport View")); - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); - //TQHBoxLayout *contentslayout = new TQHBoxLayout; + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); + //TQHBoxLayout *contentstqlayout = new TQHBoxLayout; // object type /* - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *objectlabel = new TQLabel(this); TQFont labelfont(objectlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); objectlabel->setFont(labelfont); objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); - objectlabel->setAlignment(AlignCenter); + objectlabel->tqsetAlignment(AlignCenter); min_size(objectlabel); - mainlayout->addWidget(objectlabel); + maintqlayout->addWidget(objectlabel); */ // port description /* - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *portlabel = new TQLabel(this); labelfont.setPointSize(labelfont.pointSize()*4/5); portlabel->setFont(labelfont); portlabel->setText(i18n("Port description: ")+ port->description); min_size(portlabel); - portlabel->setAlignment(AlignCenter); - mainlayout->addWidget(portlabel); + portlabel->tqsetAlignment(AlignCenter); + maintqlayout->addWidget(portlabel); - int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width()); + int labelwidth = imax(portlabel->tqsizeHint().width(),objectlabel->tqsizeHint().width()); portlabel->setMinimumWidth(labelwidth); objectlabel->setMinimumWidth(labelwidth); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); - mainlayout->addLayout(contentslayout); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); + maintqlayout->addLayout(contentstqlayout); */ // list @@ -94,24 +94,24 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent, update(); listbox->setMinimumSize(100,200); - mainlayout->addWidget(listbox); + maintqlayout->addWidget(listbox); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); + maintqlayout->addWidget(ruler2); // buttons - TQHBoxLayout *buttonlayout = new TQHBoxLayout; - mainlayout->addSpacing(5); - mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + maintqlayout->addSpacing(5); + maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); KIconLoader iconloader; @@ -133,14 +133,14 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent, TQButton *cancelbutton = bbox->addButton(i18n("Cancel")); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); */ - bbox->layout(); + bbox->tqlayout(); //min_size(bbox); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - //mainlayout->activate(); - mainlayout->freeze(); + //maintqlayout->activate(); + maintqlayout->freeze(); } void PortPosDlg::raise() @@ -247,7 +247,7 @@ void PortPosDlg::update() } } } - listbox->repaint(); + listbox->tqrepaint(); } void PortPosDlg::help() -- cgit v1.2.1