summaryrefslogtreecommitdiffstats
path: root/kaddressbook/emaileditwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/emaileditwidget.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-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/emaileditwidget.cpp')
-rw-r--r--kaddressbook/emaileditwidget.cpp22
1 files changed, 11 insertions, 11 deletions
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 <tqcheckbox.h>
@@ -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 )