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/propertypanel.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'arts/builder/propertypanel.cpp') diff --git a/arts/builder/propertypanel.cpp b/arts/builder/propertypanel.cpp index cca2ee5d..8e543a5f 100644 --- a/arts/builder/propertypanel.cpp +++ b/arts/builder/propertypanel.cpp @@ -36,8 +36,8 @@ #include -PropertyPanel::PropertyPanel( TQWidget* parent, const char* name, WFlags fl ) - : PropertyPanelBase( parent, name, fl ), +PropertyPanel::PropertyPanel( TQWidget* tqparent, const char* name, WFlags fl ) + : PropertyPanelBase( tqparent, name, fl ), component(0L), port(0L) { @@ -115,7 +115,7 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component ) if(component->pixmap()) { moduleIconLabel->setPixmap( *component->pixmap() ); - moduleIconLabel->setMinimumSize( moduleIconLabel->sizeHint() ); + moduleIconLabel->setMinimumSize( moduleIconLabel->tqsizeHint() ); moduleIconLabel->show(); } else @@ -128,11 +128,11 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component ) it != modulePorts.end(); it++) { TQString portTitle = (*it)->description - + TQString(" (%1)").arg( (*it)->PortDesc.type().direction == Arts::output ? + + TQString(" (%1)").tqarg( (*it)->PortDesc.type().direction == Arts::output ? i18n("OUTPUT") : i18n("INPUT") ); portCombo->insertItem( portTitle ); } - //portCombo->setMinimumSize( portCombo->sizeHint() ); + //portCombo->setMinimumSize( portCombo->tqsizeHint() ); setEnabled(true); } } @@ -156,7 +156,7 @@ void PropertyPanel::setSelectedPort( ModulePort *port ) // select port in combobox - bah, should be easier ;-) portCombo->setCurrentItem( portCombo->listBox()->index( - portCombo->listBox()->findItem( port->description + " (" ) ) ); + portCombo->listBox()->tqfindItem( port->description + " (" ) ) ); } else { @@ -341,10 +341,10 @@ bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e ) { if( port && !constantValueEdit->hasFocus() && (e->type() == TQEvent::KeyPress) ) { // kdDebug() << TQString(" ..is KeyPress") << endl; - TQString entered = static_cast(e)->text(); + TQString entered = TQT_TQKEYEVENT(e)->text(); bool goodString = entered.length() > 0; -// kdDebug() << TQString("pressed '%1'").arg(entered) << endl; +// kdDebug() << TQString("pressed '%1'").tqarg(entered) << endl; for( unsigned int i = 0; i < entered.length(); i++) goodString = goodString && entered[i].isLetterOrNumber(); -- cgit v1.2.1