diff options
Diffstat (limited to 'kabc/resourceselectdialog.cpp')
-rw-r--r-- | kabc/resourceselectdialog.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kabc/resourceselectdialog.cpp b/kabc/resourceselectdialog.cpp index f34dcaa63..a52754be3 100644 --- a/kabc/resourceselectdialog.cpp +++ b/kabc/resourceselectdialog.cpp @@ -23,8 +23,8 @@ #include <klistbox.h> #include <kstdguiitem.h> -#include <qgroupbox.h> -#include <qlayout.h> +#include <tqgroupbox.h> +#include <tqlayout.h> #include "resource.h" #include "addressbook.h" @@ -33,16 +33,16 @@ using namespace KABC; -ResourceSelectDialog::ResourceSelectDialog( AddressBook *ab, QWidget *parent, const char *name ) +ResourceSelectDialog::ResourceSelectDialog( AddressBook *ab, 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 ); @@ -54,15 +54,15 @@ ResourceSelectDialog::ResourceSelectDialog( AddressBook *ab, QWidget *parent, co 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 ); // setup listbox uint counter = 0; - QPtrList<Resource> list = ab->resources(); + TQPtrList<Resource> list = ab->resources(); for ( uint i = 0; i < list.count(); ++i ) { Resource *resource = list.at( i ); if ( resource && !resource->readOnly() ) { @@ -83,9 +83,9 @@ Resource *ResourceSelectDialog::resource() return 0; } -Resource *ResourceSelectDialog::getResource( AddressBook *ab, QWidget *parent ) +Resource *ResourceSelectDialog::getResource( AddressBook *ab, TQWidget *parent ) { - QPtrList<Resource> resources = ab->resources(); + TQPtrList<Resource> resources = ab->resources(); if ( resources.count() == 1 ) return resources.first(); Resource *found = 0; |