From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- kaddressbook/emaileditwidget.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kaddressbook/emaileditwidget.cpp') diff --git a/kaddressbook/emaileditwidget.cpp b/kaddressbook/emaileditwidget.cpp index 3cc2de14..21d21e52 100644 --- a/kaddressbook/emaileditwidget.cpp +++ b/kaddressbook/emaileditwidget.cpp @@ -17,8 +17,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 @@ -44,7 +44,7 @@ #include "emaileditwidget.h" -class EmailValidator : public QRegExpValidator +class EmailValidator : public TQRegExpValidator { public: EmailValidator() @@ -55,11 +55,11 @@ class EmailValidator : public QRegExpValidator } }; -class EmailItem : public QListBoxText +class EmailItem : public TQListBoxText { public: - EmailItem( TQListBox *parent, const TQString &text, bool preferred ) - : TQListBoxText( parent, text ), mPreferred( preferred ) + EmailItem( TQListBox *tqparent, const TQString &text, bool preferred ) + : TQListBoxText( tqparent, text ), mPreferred( preferred ) {} void setPreferred( bool preferred ) { mPreferred = preferred; } @@ -86,8 +86,8 @@ class EmailItem : public QListBoxText bool mPreferred; }; -EmailEditWidget::EmailEditWidget( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +EmailEditWidget::EmailEditWidget( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ) { TQGridLayout *topLayout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() ); @@ -171,11 +171,11 @@ void EmailEditWidget::textChanged( const TQString &text ) } -EmailEditDialog::EmailEditDialog( const TQStringList &list, TQWidget *parent, +EmailEditDialog::EmailEditDialog( const TQStringList &list, TQWidget *tqparent, const char *name ) : KDialogBase( KDialogBase::Plain, i18n( "Edit Email Addresses" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Help, - parent, name, true ) + tqparent, name, true ) { TQWidget *page = plainPage(); @@ -254,7 +254,7 @@ void EmailEditDialog::add() bool ok = false; TQString email = KInputDialog::getText( i18n( "Add Email" ), i18n( "New Email:" ), - TQString::null, &ok, this, "EmailEditDialog", + TQString(), &ok, this, "EmailEditDialog", validator ); if ( !ok ) -- cgit v1.2.3