From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/addviewdialog.cpp | 44 +++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'kaddressbook/addviewdialog.cpp') diff --git a/kaddressbook/addviewdialog.cpp b/kaddressbook/addviewdialog.cpp index 68046359d..b42729e34 100644 --- a/kaddressbook/addviewdialog.cpp +++ b/kaddressbook/addviewdialog.cpp @@ -21,11 +21,11 @@ without including the source code for Qt in the source distribution. */ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include @@ -33,8 +33,8 @@ #include "addviewdialog.h" -AddViewDialog::AddViewDialog( QDict *viewFactoryDict, - QWidget *parent, const char *name ) +AddViewDialog::AddViewDialog( TQDict *viewFactoryDict, + TQWidget *parent, const char *name ) : KDialogBase( KDialogBase::Plain, i18n( "Add View" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent, name ), @@ -42,33 +42,33 @@ AddViewDialog::AddViewDialog( QDict *viewFactoryDict, { mTypeId = 0; - QWidget *page = plainPage(); + TQWidget *page = plainPage(); - QGridLayout *layout = new QGridLayout( page, 2, 2 ); + TQGridLayout *layout = new TQGridLayout( page, 2, 2 ); layout->setSpacing( spacingHint() ); layout->setRowStretch( 1, 1 ); layout->setColStretch( 1, 1 ); - QLabel *label = new QLabel( i18n( "View name:" ), page ); + TQLabel *label = new TQLabel( i18n( "View name:" ), page ); layout->addWidget( label, 0, 0 ); - mViewNameEdit = new QLineEdit( page ); - connect( mViewNameEdit, SIGNAL( textChanged( const QString& ) ), - SLOT( textChanged( const QString& ) ) ); + mViewNameEdit = new TQLineEdit( page ); + connect( mViewNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ), + TQT_SLOT( textChanged( const TQString& ) ) ); layout->addWidget( mViewNameEdit, 0, 1 ); - mTypeGroup = new QButtonGroup( 0, Qt::Horizontal, i18n( "View Type" ), page ); - connect( mTypeGroup, SIGNAL( clicked( int ) ), this, SLOT( clicked( int ) ) ); + mTypeGroup = new TQButtonGroup( 0, Qt::Horizontal, i18n( "View Type" ), page ); + connect( mTypeGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( clicked( int ) ) ); layout->addMultiCellWidget( mTypeGroup, 1, 1, 0, 1 ); - QGridLayout *groupLayout = new QGridLayout( mTypeGroup->layout(), 3, 2 ); + TQGridLayout *groupLayout = new TQGridLayout( mTypeGroup->layout(), 3, 2 ); groupLayout->setSpacing( spacingHint() ); int row = 0; - QDictIterator iter( *mViewFactoryDict ); + TQDictIterator iter( *mViewFactoryDict ); for ( iter.toFirst(); iter.current(); ++iter ) { - QRadioButton *button = new QRadioButton( i18n((*iter)->type().utf8()), + TQRadioButton *button = new TQRadioButton( i18n((*iter)->type().utf8()), mTypeGroup, (*iter)->type().latin1() ); - label = new QLabel( (*iter)->description(), mTypeGroup ); + label = new TQLabel( (*iter)->description(), mTypeGroup ); label->setAlignment( Qt::WordBreak ); groupLayout->addWidget( button, row, 0, Qt::AlignTop ); @@ -86,12 +86,12 @@ AddViewDialog::~AddViewDialog() { } -QString AddViewDialog::viewName()const +TQString AddViewDialog::viewName()const { return mViewNameEdit->text(); } -QString AddViewDialog::viewType()const +TQString AddViewDialog::viewType()const { // we missuse the name property for storing the type return mTypeGroup->find( mTypeId )->name(); @@ -102,7 +102,7 @@ void AddViewDialog::clicked( int id ) mTypeId = id; } -void AddViewDialog::textChanged( const QString &text ) +void AddViewDialog::textChanged( const TQString &text ) { enableButton( KDialogBase::Ok, !text.isEmpty() ); } -- cgit v1.2.1