diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/addresseditwidget.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/addresseditwidget.cpp')
-rw-r--r-- | kaddressbook/addresseditwidget.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kaddressbook/addresseditwidget.cpp b/kaddressbook/addresseditwidget.cpp index ac70cbaa9..4f6168446 100644 --- a/kaddressbook/addresseditwidget.cpp +++ b/kaddressbook/addresseditwidget.cpp @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include <tqbuttongroup.h> @@ -54,11 +54,11 @@ #include "addresseditwidget.h" -class TabPressEater : public QObject +class TabPressEater : public TQObject { public: - TabPressEater( TQObject *parent ) - : TQObject( parent, "TabPressEater" ) + TabPressEater( TQObject *tqparent ) + : TQObject( tqparent, "TabPressEater" ) { } @@ -67,8 +67,8 @@ class TabPressEater : public QObject { if ( event->type() == TQEvent::KeyPress ) { TQKeyEvent *keyEvent = (TQKeyEvent*)event; - if ( keyEvent->key() == Qt::Key_Tab ) { - TQApplication::sendEvent( parent(), event ); + if ( keyEvent->key() == TQt::Key_Tab ) { + TQApplication::sendEvent( tqparent(), event ); return true; } else return false; @@ -79,8 +79,8 @@ class TabPressEater : public QObject }; -AddressEditWidget::AddressEditWidget( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +AddressEditWidget::AddressEditWidget( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ) { TQBoxLayout *tqlayout = new TQVBoxLayout( this, 4, 2 ); tqlayout->setSpacing( KDialog::spacingHint() ); @@ -93,8 +93,8 @@ AddressEditWidget::AddressEditWidget( TQWidget *parent, const char *name ) mAddressField = new KActiveLabel( this ); mAddressField->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); mAddressField->setMinimumHeight( 20 ); - mAddressField->tqsetAlignment( Qt::AlignTop ); - mAddressField->setTextFormat( Qt::PlainText ); + mAddressField->tqsetAlignment( TQt::AlignTop ); + mAddressField->setTextFormat( TQt::PlainText ); tqlayout->addWidget( mAddressField ); mEditButton = new TQPushButton( i18n( "street/postal", "&Edit Addresses..." ), this ); @@ -257,10 +257,10 @@ void AddressEditWidget::updateAddressEdit() } AddressEditDialog::AddressEditDialog( const KABC::Address::List &list, - int selected, TQWidget *parent, + int selected, TQWidget *tqparent, const char *name ) : KDialogBase( Plain, i18n( "street/postal", "Edit Address" ), Ok | Cancel, Ok, - parent, name, true, true ), + tqparent, name, true, true ), mPreviousAddress( 0 ) { mAddressList = list; @@ -274,10 +274,10 @@ AddressEditDialog::AddressEditDialog( const KABC::Address::List &list, topLayout->addMultiCellWidget( mTypeCombo, 0, 0, 0, 1 ); TQLabel *label = new TQLabel( i18n( "<streetLabel>:", "%1:" ).arg( KABC::Address::streetLabel() ), page ); - label->tqsetAlignment( Qt::AlignTop | Qt::AlignLeft ); + label->tqsetAlignment( TQt::AlignTop | TQt::AlignLeft ); topLayout->addWidget( label, 1, 0 ); mStreetTextEdit = new TQTextEdit( page ); - mStreetTextEdit->setTextFormat( Qt::PlainText ); + mStreetTextEdit->setTextFormat( TQt::PlainText ); label->setBuddy( mStreetTextEdit ); topLayout->addWidget( mStreetTextEdit, 1, 1 ); @@ -599,9 +599,9 @@ void AddressEditDialog::fillCountryCombo() } -AddressTypeDialog::AddressTypeDialog( int type, TQWidget *parent ) +AddressTypeDialog::AddressTypeDialog( int type, TQWidget *tqparent ) : KDialogBase( Plain, i18n( "street/postal", "Edit Address Type" ), Ok | Cancel, Ok, - parent, "AddressTypeDialog" ) + tqparent, "AddressTypeDialog" ) { TQWidget *page = plainPage(); TQVBoxLayout *tqlayout = new TQVBoxLayout( page ); @@ -617,7 +617,7 @@ AddressTypeDialog::AddressTypeDialog( int type, TQWidget *parent ) new TQCheckBox( KABC::Address::typeLabel( *it ), mGroup ); for ( int i = 0; i < mGroup->count(); ++i ) { - TQCheckBox *box = (TQCheckBox*)mGroup->find( i ); + TQCheckBox *box = (TQCheckBox*)mGroup->tqfind( i ); box->setChecked( type & mTypeList[ i ] ); } } @@ -630,7 +630,7 @@ int AddressTypeDialog::type() const { int type = 0; for ( int i = 0; i < mGroup->count(); ++i ) { - TQCheckBox *box = (TQCheckBox*)mGroup->find( i ); + TQCheckBox *box = (TQCheckBox*)mGroup->tqfind( i ); if ( box->isChecked() ) type += mTypeList[ i ]; } @@ -642,7 +642,7 @@ int AddressTypeDialog::type() const Small helper class, I hope we can remove it as soon as a general solution has been committed to kdelibs */ -class LocaleAwareString : public QString +class LocaleAwareString : public TQString { public: LocaleAwareString() : TQString() |