diff options
Diffstat (limited to 'kaddressbook/kcmconfigs/addresseewidget.cpp')
-rw-r--r-- | kaddressbook/kcmconfigs/addresseewidget.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/kaddressbook/kcmconfigs/addresseewidget.cpp b/kaddressbook/kcmconfigs/addresseewidget.cpp index 610b94b80..1c074d397 100644 --- a/kaddressbook/kcmconfigs/addresseewidget.cpp +++ b/kaddressbook/kcmconfigs/addresseewidget.cpp @@ -21,12 +21,12 @@ without including the source code for Qt in the source distribution. */ -#include <qcstring.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlistbox.h> -#include <qpushbutton.h> +#include <tqcstring.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlistbox.h> +#include <tqpushbutton.h> #include <dcopclient.h> @@ -40,26 +40,26 @@ #include "addresseewidget.h" -NamePartWidget::NamePartWidget( const QString &title, const QString &label, - QWidget *parent, const char *name ) - : QWidget( parent, name ), mTitle( title ), mLabel( label ) +NamePartWidget::NamePartWidget( const TQString &title, const TQString &label, + TQWidget *parent, const char *name ) + : TQWidget( parent, name ), mTitle( title ), mLabel( label ) { - QHBoxLayout *layout = new QHBoxLayout( this ); + TQHBoxLayout *layout = new TQHBoxLayout( this ); - QGroupBox *group = new QGroupBox( 0, Qt::Vertical, title, this ); - QGridLayout *groupLayout = new QGridLayout( group->layout(), 2, 2, + TQGroupBox *group = new TQGroupBox( 0, Qt::Vertical, title, this ); + TQGridLayout *groupLayout = new TQGridLayout( group->layout(), 2, 2, KDialog::spacingHint() ); - mBox = new QListBox( group ); - connect( mBox, SIGNAL( selectionChanged( QListBoxItem* ) ), - SLOT( selectionChanged( QListBoxItem* ) ) ); + mBox = new TQListBox( group ); + connect( mBox, TQT_SIGNAL( selectionChanged( TQListBoxItem* ) ), + TQT_SLOT( selectionChanged( TQListBoxItem* ) ) ); groupLayout->addWidget( mBox, 0, 0 ); KButtonBox *bbox = new KButtonBox( group, Qt::Vertical ); - mAddButton = bbox->addButton( i18n( "Add..." ), this, SLOT( add() ) ); - mEditButton = bbox->addButton( i18n( "Edit..." ), this, SLOT( edit() ) ); + mAddButton = bbox->addButton( i18n( "Add..." ), this, TQT_SLOT( add() ) ); + mEditButton = bbox->addButton( i18n( "Edit..." ), this, TQT_SLOT( edit() ) ); mEditButton->setEnabled( false ); - mRemoveButton = bbox->addButton( i18n( "Remove" ), this, SLOT( remove() ) ); + mRemoveButton = bbox->addButton( i18n( "Remove" ), this, TQT_SLOT( remove() ) ); mRemoveButton->setEnabled( false ); bbox->layout(); groupLayout->addWidget( bbox, 0, 1 ); @@ -71,15 +71,15 @@ NamePartWidget::~NamePartWidget() { } -void NamePartWidget::setNameParts( const QStringList &list ) +void NamePartWidget::setNameParts( const TQStringList &list ) { mBox->clear(); mBox->insertStringList( list ); } -QStringList NamePartWidget::nameParts() const +TQStringList NamePartWidget::nameParts() const { - QStringList parts; + TQStringList parts; for ( uint i = 0; i < mBox->count(); ++i ) parts.append( mBox->text( i ) ); @@ -90,8 +90,8 @@ void NamePartWidget::add() { bool ok; - QString namePart = KInputDialog::getText( i18n( "New" ), mLabel, - QString::null, &ok ); + TQString namePart = KInputDialog::getText( i18n( "New" ), mLabel, + TQString::null, &ok ); if ( ok && !namePart.isEmpty() ) { mBox->insertItem( namePart ); emit modified(); @@ -106,7 +106,7 @@ void NamePartWidget::edit() if ( index == -1 ) return; - QString namePart = KInputDialog::getText( i18n( "Edit" ), mLabel, + TQString namePart = KInputDialog::getText( i18n( "Edit" ), mLabel, mBox->text( index ), &ok ); if ( ok && !namePart.isEmpty() ) { mBox->changeItem( namePart, index ); @@ -123,7 +123,7 @@ void NamePartWidget::remove() emit modified(); } -void NamePartWidget::selectionChanged( QListBoxItem *item ) +void NamePartWidget::selectionChanged( TQListBoxItem *item ) { mEditButton->setEnabled( item != 0 ); mRemoveButton->setEnabled( item != 0 ); @@ -131,10 +131,10 @@ void NamePartWidget::selectionChanged( QListBoxItem *item ) -AddresseeWidget::AddresseeWidget( QWidget *parent, const char *name ) - : QWidget( parent, name ) +AddresseeWidget::AddresseeWidget( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { - QGridLayout *layout = new QGridLayout( this, 2, 3, KDialog::marginHint(), + TQGridLayout *layout = new TQGridLayout( this, 2, 3, KDialog::marginHint(), KDialog::spacingHint() ); mPrefix = new NamePartWidget( i18n( "Prefixes"), i18n( "Enter prefix:" ), this ); @@ -146,7 +146,7 @@ AddresseeWidget::AddresseeWidget( QWidget *parent, const char *name ) mSuffix = new NamePartWidget( i18n( "Suffixes" ), i18n( "Enter suffix:" ), this ); layout->addWidget( mSuffix, 0, 2 ); - QLabel *label = new QLabel( i18n( "Default formatted name:" ), this ); + TQLabel *label = new TQLabel( i18n( "Default formatted name:" ), this ); layout->addWidget( label, 1, 0 ); mFormattedNameCombo = new KComboBox( this ); @@ -157,10 +157,10 @@ AddresseeWidget::AddresseeWidget( QWidget *parent, const char *name ) mFormattedNameCombo->insertItem( i18n( "Reverse Name" ) ); layout->addMultiCellWidget( mFormattedNameCombo, 1, 1, 1, 2 ); - connect( mPrefix, SIGNAL( modified() ), SIGNAL( modified() ) ); - connect( mInclusion, SIGNAL( modified() ), SIGNAL( modified() ) ); - connect( mSuffix, SIGNAL( modified() ), SIGNAL( modified() ) ); - connect( mFormattedNameCombo, SIGNAL( activated( int ) ), SIGNAL( modified() ) ); + connect( mPrefix, TQT_SIGNAL( modified() ), TQT_SIGNAL( modified() ) ); + connect( mInclusion, TQT_SIGNAL( modified() ), TQT_SIGNAL( modified() ) ); + connect( mSuffix, TQT_SIGNAL( modified() ), TQT_SIGNAL( modified() ) ); + connect( mFormattedNameCombo, TQT_SIGNAL( activated( int ) ), TQT_SIGNAL( modified() ) ); } AddresseeWidget::~AddresseeWidget() @@ -196,7 +196,7 @@ void AddresseeWidget::saveSettings() DCOPClient *client = DCOPClient::mainClient(); if ( client ) - client->emitDCOPSignal( "KABC::AddressBookConfig", "changed()", QByteArray() ); + client->emitDCOPSignal( "KABC::AddressBookConfig", "changed()", TQByteArray() ); } #include "addresseewidget.moc" |