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 --- kabc/resourceselectdialog.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kabc/resourceselectdialog.cpp') 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 #include -#include -#include +#include +#include #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 list = ab->resources(); + TQPtrList 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 resources = ab->resources(); + TQPtrList resources = ab->resources(); if ( resources.count() == 1 ) return resources.first(); Resource *found = 0; -- cgit v1.2.3