From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kresources/selectdialog.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kresources/selectdialog.cpp') diff --git a/kresources/selectdialog.cpp b/kresources/selectdialog.cpp index a36e7ec48..cc1c7e593 100644 --- a/kresources/selectdialog.cpp +++ b/kresources/selectdialog.cpp @@ -26,8 +26,8 @@ #include #include -#include -#include +#include +#include #include "resource.h" @@ -35,17 +35,17 @@ using namespace KRES; -SelectDialog::SelectDialog( QPtrList list, QWidget *parent, +SelectDialog::SelectDialog( TQPtrList list, TQWidget *parent, const char *name ) : KDialog( parent, name, true ) { setCaption( i18n( "Resource Selection" ) ); resize( 300, 200 ); - QVBoxLayout *mainLayout = new QVBoxLayout( this ); + TQVBoxLayout *mainLayout = new TQVBoxLayout( this ); mainLayout->setMargin( marginHint() ); - QGroupBox *groupBox = new QGroupBox( 2, Qt::Horizontal, this ); + TQGroupBox *groupBox = new TQGroupBox( 2, Qt::Horizontal, this ); groupBox->setTitle( i18n( "Resources" ) ); mResourceId = new KListBox( groupBox ); @@ -57,8 +57,8 @@ SelectDialog::SelectDialog( QPtrList list, QWidget *parent, KButtonBox *buttonBox = new KButtonBox( this ); buttonBox->addStretch(); - buttonBox->addButton( KStdGuiItem::ok(), this, SLOT( accept() ) ); - buttonBox->addButton( KStdGuiItem::cancel(), this, SLOT( reject() ) ); + buttonBox->addButton( KStdGuiItem::ok(), this, TQT_SLOT( accept() ) ); + buttonBox->addButton( KStdGuiItem::cancel(), this, TQT_SLOT( reject() ) ); buttonBox->layout(); mainLayout->addWidget( buttonBox ); @@ -75,10 +75,10 @@ SelectDialog::SelectDialog( QPtrList list, QWidget *parent, } mResourceId->setCurrentItem( 0 ); - connect( mResourceId, SIGNAL(returnPressed(QListBoxItem*)), - SLOT(accept()) ); - connect( mResourceId, SIGNAL( executed( QListBoxItem* ) ), - SLOT( accept() ) ); + connect( mResourceId, TQT_SIGNAL(returnPressed(TQListBoxItem*)), + TQT_SLOT(accept()) ); + connect( mResourceId, TQT_SIGNAL( executed( TQListBoxItem* ) ), + TQT_SLOT( accept() ) ); } Resource *SelectDialog::resource() @@ -89,7 +89,7 @@ Resource *SelectDialog::resource() return 0; } -Resource *SelectDialog::getResource( QPtrList list, QWidget *parent ) +Resource *SelectDialog::getResource( TQPtrList list, TQWidget *parent ) { if ( list.count() == 0 ) { KMessageBox::error( parent, i18n( "There is no resource available!" ) ); -- cgit v1.2.1