diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/kcmconfigs/kabconfigwidget.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/kcmconfigs/kabconfigwidget.cpp')
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.cpp | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.cpp b/kaddressbook/kcmconfigs/kabconfigwidget.cpp index 7c57a926c..e4fea7409 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.cpp +++ b/kaddressbook/kcmconfigs/kabconfigwidget.cpp @@ -21,16 +21,16 @@ without including the source code for Qt in the source distribution. */ -#include <qcheckbox.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qtabwidget.h> -#include <qtooltip.h> -#include <qcombobox.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqtabwidget.h> +#include <tqtooltip.h> +#include <tqcombobox.h> #include <kconfig.h> #include <kdebug.h> @@ -45,31 +45,31 @@ #include "kabconfigwidget.h" -KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) - : QWidget( parent, name ) +KABConfigWidget::KABConfigWidget( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { - QVBoxLayout *topLayout = new QVBoxLayout( this, 0, + TQVBoxLayout *topLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - QTabWidget *tabWidget = new QTabWidget( this ); + TQTabWidget *tabWidget = new TQTabWidget( this ); topLayout->addWidget( tabWidget ); // General page - QWidget *generalPage = new QWidget( this ); - QVBoxLayout *layout = new QVBoxLayout( generalPage, KDialog::marginHint(), + TQWidget *generalPage = new TQWidget( this ); + TQVBoxLayout *layout = new TQVBoxLayout( generalPage, KDialog::marginHint(), KDialog::spacingHint() ); - QGroupBox *groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "General" ), generalPage ); - QBoxLayout *boxLayout = new QVBoxLayout( groupBox->layout() ); + TQGroupBox *groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "General" ), generalPage ); + TQBoxLayout *boxLayout = new TQVBoxLayout( groupBox->layout() ); boxLayout->setAlignment( Qt::AlignTop ); - mViewsSingleClickBox = new QCheckBox( i18n( "Honor KDE single click" ), groupBox, "msingle" ); + mViewsSingleClickBox = new TQCheckBox( i18n( "Honor KDE single click" ), groupBox, "msingle" ); boxLayout->addWidget( mViewsSingleClickBox ); - mNameParsing = new QCheckBox( i18n( "Automatic name parsing for new addressees" ), groupBox, "mparse" ); + mNameParsing = new TQCheckBox( i18n( "Automatic name parsing for new addressees" ), groupBox, "mparse" ); boxLayout->addWidget( mNameParsing ); - mTradeAsFamilyName = new QCheckBox( i18n( "Trade single name component as family name" ), groupBox, "mtrade" ); + mTradeAsFamilyName = new TQCheckBox( i18n( "Trade single name component as family name" ), groupBox, "mtrade" ); boxLayout->addWidget( mTradeAsFamilyName ); /** TODO: show the checkbox when we can compile agains kdelibs from HEAD, atm it @@ -77,15 +77,15 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) */ mTradeAsFamilyName->hide(); - mLimitContactDisplay = new QCheckBox( i18n( "Limit unfiltered display to 100 contacts" ), groupBox, "mlimit" ); + mLimitContactDisplay = new TQCheckBox( i18n( "Limit unfiltered display to 100 contacts" ), groupBox, "mlimit" ); boxLayout->addWidget( mLimitContactDisplay ); - QBoxLayout *editorLayout = new QHBoxLayout( boxLayout, KDialog::spacingHint() ); + TQBoxLayout *editorLayout = new TQHBoxLayout( boxLayout, KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "Addressee editor type:" ), groupBox ); + TQLabel *label = new TQLabel( i18n( "Addressee editor type:" ), groupBox ); editorLayout->addWidget( label ); - mEditorCombo = new QComboBox( groupBox ); + mEditorCombo = new TQComboBox( groupBox ); mEditorCombo->insertItem( i18n( "Full Editor" ) ); mEditorCombo->insertItem( i18n( "Simple Editor" ) ); label->setBuddy( mEditorCombo ); @@ -96,29 +96,29 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) layout->addWidget( groupBox ); - groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Script-Hooks" ), generalPage ); - QGridLayout *grid = new QGridLayout( groupBox->layout(), 3, 2, + groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Script-Hooks" ), generalPage ); + TQGridLayout *grid = new TQGridLayout( groupBox->layout(), 3, 2, KDialog::spacingHint() ); - label = new QLabel( i18n( "Phone:" ), groupBox ); + label = new TQLabel( i18n( "Phone:" ), groupBox ); grid->addWidget( label, 0, 0 ); - mPhoneHook = new QLineEdit( groupBox ); - QToolTip::add( mPhoneHook, i18n( "<ul><li>%N: Phone Number</li></ul>" ) ); + mPhoneHook = new TQLineEdit( groupBox ); + TQToolTip::add( mPhoneHook, i18n( "<ul><li>%N: Phone Number</li></ul>" ) ); grid->addWidget( mPhoneHook, 0, 1 ); - label = new QLabel( i18n( "Fax:" ), groupBox ); + label = new TQLabel( i18n( "Fax:" ), groupBox ); grid->addWidget( label, 1, 0 ); - mFaxHook = new QLineEdit( groupBox ); - QToolTip::add( mFaxHook, i18n( "<ul><li>%N: Fax Number</li></ul>" ) ); + mFaxHook = new TQLineEdit( groupBox ); + TQToolTip::add( mFaxHook, i18n( "<ul><li>%N: Fax Number</li></ul>" ) ); grid->addWidget( mFaxHook, 1, 1 ); - label = new QLabel( i18n( "SMS Text:" ), groupBox ); + label = new TQLabel( i18n( "SMS Text:" ), groupBox ); grid->addWidget( label, 2, 0 ); - mSMSHook = new QLineEdit( groupBox ); - QToolTip::add( mSMSHook, i18n( "<ul><li>%N: Phone Number</li><li>%F: File containing the text message(s)</li></ul>" ) ); + mSMSHook = new TQLineEdit( groupBox ); + TQToolTip::add( mSMSHook, i18n( "<ul><li>%N: Phone Number</li><li>%F: File containing the text message(s)</li></ul>" ) ); grid->addWidget( mSMSHook, 2, 1 ); @@ -126,13 +126,13 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) layout->addWidget( groupBox ); - groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Location Map" ), generalPage ); - boxLayout = new QVBoxLayout( groupBox->layout(), KDialog::spacingHint() ); + groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Location Map" ), generalPage ); + boxLayout = new TQVBoxLayout( groupBox->layout(), KDialog::spacingHint() ); boxLayout->setAlignment( Qt::AlignTop ); - mLocationMapURL = new QComboBox( true, groupBox ); - mLocationMapURL->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed ) ); - QToolTip::add( mLocationMapURL, i18n( "<ul> <li>%s: Street</li>" + mLocationMapURL = new TQComboBox( true, groupBox ); + mLocationMapURL->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Fixed ) ); + TQToolTip::add( mLocationMapURL, i18n( "<ul> <li>%s: Street</li>" "<li>%r: Region</li>" "<li>%l: Location</li>" "<li>%z: Zip Code</li>" @@ -141,22 +141,22 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) boxLayout->addWidget( mLocationMapURL ); layout->addWidget( groupBox ); - connect( mNameParsing, SIGNAL( toggled( bool ) ), SLOT( modified() ) ); - connect( mViewsSingleClickBox, SIGNAL( toggled( bool ) ), SLOT( modified() ) ); - connect( mTradeAsFamilyName, SIGNAL( toggled( bool ) ), SLOT( modified() ) ); - connect( mLimitContactDisplay, SIGNAL( toggled( bool ) ), SLOT( modified() ) ); - connect( mPhoneHook, SIGNAL( textChanged( const QString& ) ), SLOT( modified() ) ); - connect( mSMSHook, SIGNAL( textChanged( const QString& ) ), SLOT( modified() ) ); - connect( mFaxHook, SIGNAL( textChanged( const QString& ) ), SLOT( modified() ) ); - connect( mLocationMapURL, SIGNAL( textChanged( const QString& ) ), SLOT( modified() ) ); - connect( mEditorCombo, SIGNAL( activated( int ) ), SLOT( modified() ) ); + connect( mNameParsing, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( modified() ) ); + connect( mViewsSingleClickBox, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( modified() ) ); + connect( mTradeAsFamilyName, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( modified() ) ); + connect( mLimitContactDisplay, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( modified() ) ); + connect( mPhoneHook, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( modified() ) ); + connect( mSMSHook, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( modified() ) ); + connect( mFaxHook, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( modified() ) ); + connect( mLocationMapURL, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( modified() ) ); + connect( mEditorCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( modified() ) ); tabWidget->addTab( generalPage, i18n( "General" ) ); // Addressee page mAddresseeWidget = new AddresseeWidget( this ); tabWidget->addTab( mAddresseeWidget, i18n( "Contact" ) ); - connect( mAddresseeWidget, SIGNAL( modified() ), SLOT( modified() ) ); + connect( mAddresseeWidget, TQT_SIGNAL( modified() ), TQT_SLOT( modified() ) ); } void KABConfigWidget::restoreSettings() |