summaryrefslogtreecommitdiffstats
path: root/kaddressbook/nameeditdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/nameeditdialog.cpp')
-rw-r--r--kaddressbook/nameeditdialog.cpp110
1 files changed, 55 insertions, 55 deletions
diff --git a/kaddressbook/nameeditdialog.cpp b/kaddressbook/nameeditdialog.cpp
index fc29eda8..3e2191ff 100644
--- a/kaddressbook/nameeditdialog.cpp
+++ b/kaddressbook/nameeditdialog.cpp
@@ -21,15 +21,15 @@
without including the source code for Qt in the source distribution.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qlistview.h>
-#include <qtooltip.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qstring.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqlistview.h>
+#include <tqtooltip.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqstring.h>
+#include <tqwhatsthis.h>
#include <kaccelmanager.h>
#include <kapplication.h>
@@ -46,17 +46,17 @@
#include "nameeditdialog.h"
NameEditDialog::NameEditDialog( const KABC::Addressee &addr, int type,
- bool readOnly, QWidget *parent, const char *name )
+ bool readOnly, TQWidget *parent, const char *name )
: KDialogBase( Plain, i18n( "Edit Contact Name" ), Help | Ok | Cancel,
Ok, parent, name, true ), mAddressee( addr )
{
- QWidget *page = plainPage();
- QGridLayout *layout = new QGridLayout( page );
+ TQWidget *page = plainPage();
+ TQGridLayout *layout = new TQGridLayout( page );
layout->setSpacing( spacingHint() );
layout->addColSpacing( 2, 100 );
- QLabel *label;
+ TQLabel *label;
- label = new QLabel( i18n( "Honorific prefixes:" ), page );
+ label = new TQLabel( i18n( "Honorific prefixes:" ), page );
layout->addWidget( label, 0, 0 );
mPrefixCombo = new KComboBox( page );
mPrefixCombo->setDuplicatesEnabled( false );
@@ -65,30 +65,30 @@ NameEditDialog::NameEditDialog( const KABC::Addressee &addr, int type,
label->setBuddy( mPrefixCombo );
layout->addMultiCellWidget( mPrefixCombo, 0, 0, 1, 2 );
- QWhatsThis::add( mPrefixCombo, i18n( "The predefined honorific prefixes can be extended in the settings dialog." ) );
+ TQWhatsThis::add( mPrefixCombo, i18n( "The predefined honorific prefixes can be extended in the settings dialog." ) );
- label = new QLabel( i18n( "Given name:" ), page );
+ label = new TQLabel( i18n( "Given name:" ), page );
layout->addWidget( label, 1, 0 );
mGivenNameEdit = new KLineEdit( page );
mGivenNameEdit->setReadOnly( readOnly );
label->setBuddy( mGivenNameEdit );
layout->addMultiCellWidget( mGivenNameEdit, 1, 1, 1, 2 );
- label = new QLabel( i18n( "Additional names:" ), page );
+ label = new TQLabel( i18n( "Additional names:" ), page );
layout->addWidget( label, 2, 0 );
mAdditionalNameEdit = new KLineEdit( page );
mAdditionalNameEdit->setReadOnly( readOnly );
label->setBuddy( mAdditionalNameEdit );
layout->addMultiCellWidget( mAdditionalNameEdit, 2, 2, 1, 2 );
- label = new QLabel( i18n( "Family names:" ), page );
+ label = new TQLabel( i18n( "Family names:" ), page );
layout->addWidget( label, 3, 0 );
mFamilyNameEdit = new KLineEdit( page );
mFamilyNameEdit->setReadOnly( readOnly );
label->setBuddy( mFamilyNameEdit );
layout->addMultiCellWidget( mFamilyNameEdit, 3, 3, 1, 2 );
- label = new QLabel( i18n( "Honorific suffixes:" ), page );
+ label = new TQLabel( i18n( "Honorific suffixes:" ), page );
layout->addWidget( label, 4, 0 );
mSuffixCombo = new KComboBox( page );
mSuffixCombo->setDuplicatesEnabled( false );
@@ -97,24 +97,24 @@ NameEditDialog::NameEditDialog( const KABC::Addressee &addr, int type,
label->setBuddy( mSuffixCombo );
layout->addMultiCellWidget( mSuffixCombo, 4, 4, 1, 2 );
- QWhatsThis::add( mSuffixCombo, i18n( "The predefined honorific suffixes can be extended in the settings dialog." ) );
+ TQWhatsThis::add( mSuffixCombo, i18n( "The predefined honorific suffixes can be extended in the settings dialog." ) );
- label = new QLabel( i18n( "Formatted name:" ), page );
+ label = new TQLabel( i18n( "Formatted name:" ), page );
layout->addWidget( label, 5, 0 );
mFormattedNameCombo = new KComboBox( page );
mFormattedNameCombo->setEnabled( !readOnly );
layout->addWidget( mFormattedNameCombo, 5, 1 );
- connect( mFormattedNameCombo, SIGNAL( activated( int ) ), SLOT( typeChanged( int ) ) );
+ connect( mFormattedNameCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( typeChanged( int ) ) );
mFormattedNameEdit = new KLineEdit( page );
mFormattedNameEdit->setEnabled( type == CustomName && !readOnly );
layout->addWidget( mFormattedNameEdit, 5, 2 );
- mParseBox = new QCheckBox( i18n( "Parse name automatically" ), page );
+ mParseBox = new TQCheckBox( i18n( "Parse name automatically" ), page );
mParseBox->setEnabled( !readOnly );
- connect( mParseBox, SIGNAL( toggled(bool) ), SLOT( parseBoxChanged(bool) ) );
- connect( mParseBox, SIGNAL( toggled(bool) ), SLOT( modified() ) );
+ connect( mParseBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( parseBoxChanged(bool) ) );
+ connect( mParseBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( modified() ) );
layout->addMultiCellWidget( mParseBox, 6, 6, 0, 1 );
// Fill in the values
@@ -127,7 +127,7 @@ NameEditDialog::NameEditDialog( const KABC::Addressee &addr, int type,
KConfig config( "kabcrc" );
config.setGroup( "General" );
- QStringList sTitle;
+ TQStringList sTitle;
sTitle += "";
sTitle += i18n( "Dr." );
sTitle += i18n( "Miss" );
@@ -138,7 +138,7 @@ NameEditDialog::NameEditDialog( const KABC::Addressee &addr, int type,
sTitle += config.readListEntry( "Prefixes" );
sTitle.sort();
- QStringList sSuffix;
+ TQStringList sSuffix;
sSuffix += "";
sSuffix += i18n( "I" );
sSuffix += i18n( "II" );
@@ -159,24 +159,24 @@ NameEditDialog::NameEditDialog( const KABC::Addressee &addr, int type,
KAcceleratorManager::manage( this );
- connect( mPrefixCombo, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( modified() ) );
- connect( mGivenNameEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( modified() ) );
- connect( mAdditionalNameEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( modified() ) );
- connect( mFamilyNameEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( modified() ) );
- connect( mSuffixCombo, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( modified() ) );
- connect( mFormattedNameCombo, SIGNAL( activated( int ) ),
- this, SLOT( modified() ) );
- connect( mFormattedNameCombo, SIGNAL( activated( int ) ),
- this, SLOT( formattedNameTypeChanged() ) );
- connect( mFormattedNameEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( modified() ) );
- connect( mFormattedNameEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( formattedNameChanged( const QString& ) ) );
+ connect( mPrefixCombo, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( modified() ) );
+ connect( mGivenNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( modified() ) );
+ connect( mAdditionalNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( modified() ) );
+ connect( mFamilyNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( modified() ) );
+ connect( mSuffixCombo, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( modified() ) );
+ connect( mFormattedNameCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( modified() ) );
+ connect( mFormattedNameCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( formattedNameTypeChanged() ) );
+ connect( mFormattedNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( modified() ) );
+ connect( mFormattedNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( formattedNameChanged( const TQString& ) ) );
initTypeCombo();
mFormattedNameCombo->setCurrentItem( type );
@@ -188,32 +188,32 @@ NameEditDialog::~NameEditDialog()
{
}
-QString NameEditDialog::familyName() const
+TQString NameEditDialog::familyName() const
{
return mFamilyNameEdit->text();
}
-QString NameEditDialog::givenName() const
+TQString NameEditDialog::givenName() const
{
return mGivenNameEdit->text();
}
-QString NameEditDialog::prefix() const
+TQString NameEditDialog::prefix() const
{
return mPrefixCombo->currentText();
}
-QString NameEditDialog::suffix() const
+TQString NameEditDialog::suffix() const
{
return mSuffixCombo->currentText();
}
-QString NameEditDialog::additionalName() const
+TQString NameEditDialog::additionalName() const
{
return mAdditionalNameEdit->text();
}
-QString NameEditDialog::customFormattedName() const
+TQString NameEditDialog::customFormattedName() const
{
return mFormattedNameEdit->text();
}
@@ -230,7 +230,7 @@ bool NameEditDialog::changed() const
void NameEditDialog::formattedNameTypeChanged()
{
- QString name;
+ TQString name;
if ( formattedNameType() == CustomName )
name = mCustomFormattedName;
@@ -249,9 +249,9 @@ void NameEditDialog::formattedNameTypeChanged()
mFormattedNameEdit->setText( name );
}
-QString NameEditDialog::formattedName( const KABC::Addressee &addr, int type )
+TQString NameEditDialog::formattedName( const KABC::Addressee &addr, int type )
{
- QString name;
+ TQString name;
switch ( type ) {
case SimpleName:
@@ -287,7 +287,7 @@ void NameEditDialog::typeChanged( int pos )
mFormattedNameEdit->setEnabled( pos == 0 );
}
-void NameEditDialog::formattedNameChanged( const QString &name )
+void NameEditDialog::formattedNameChanged( const TQString &name )
{
if ( formattedNameType() == CustomName )
mCustomFormattedName = name;