summaryrefslogtreecommitdiffstats
path: root/korn/account_input.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /korn/account_input.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'korn/account_input.cpp')
-rw-r--r--korn/account_input.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/korn/account_input.cpp b/korn/account_input.cpp
index 363e04751..d75848052 100644
--- a/korn/account_input.cpp
+++ b/korn/account_input.cpp
@@ -22,15 +22,15 @@
#include <kurlrequester.h>
#include <klineedit.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvalidator.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvalidator.h>
-AccountInput::AccountInput( const QString& configName )
- : _configName( new QString( configName ) )
+AccountInput::AccountInput( const TQString& configName )
+ : _configName( new TQString( configName ) )
{
}
@@ -39,33 +39,33 @@ AccountInput::~AccountInput()
delete _configName;
}
-QString AccountInput::configName() const
+TQString AccountInput::configName() const
{
return *_configName;
}
-TextInput::TextInput( QWidget *parent, const QString& title, Type type, const QString& defaul, const QString& configName )
+TextInput::TextInput( TQWidget *parent, const TQString& title, Type type, const TQString& defaul, const TQString& configName )
: AccountInput( configName )
{
- _left = new QLabel( title, parent, "label" );
+ _left = new TQLabel( title, parent, "label" );
_right = new KLineEdit( "", parent, "edit" );
switch( type )
{
case text:
break;
case password:
- _right->setEchoMode( QLineEdit::Password );
+ _right->setEchoMode( TQLineEdit::Password );
break;
}
setValue( defaul );
}
-TextInput::TextInput( QWidget *parent, const QString& title, int min, int max, const QString& defaul, const QString& configName )
+TextInput::TextInput( TQWidget *parent, const TQString& title, int min, int max, const TQString& defaul, const TQString& configName )
: AccountInput( configName )
{
- _left = new QLabel( title, parent, "label" );
+ _left = new TQLabel( title, parent, "label" );
_right = new KLineEdit( "", parent, "edit" );
- _right->setValidator( new QIntValidator( min, max, _right, "validator" ) );
+ _right->setValidator( new TQIntValidator( min, max, _right, "validator" ) );
setValue( defaul );
}
@@ -75,20 +75,20 @@ TextInput::~TextInput()
delete _right;
}
-QString TextInput::value() const
+TQString TextInput::value() const
{
return _right->text();
}
-void TextInput::setValue( const QString& value )
+void TextInput::setValue( const TQString& value )
{
return _right->setText( value );
}
-URLInput::URLInput( QWidget *parent, const QString& title, const QString& defaul, const QString& configName )
+URLInput::URLInput( TQWidget *parent, const TQString& title, const TQString& defaul, const TQString& configName )
: AccountInput( configName )
{
- _left = new QLabel( title, parent, "label" );
+ _left = new TQLabel( title, parent, "label" );
_right = new KURLRequester( "", parent, "kurledit" );
setValue( defaul );
}
@@ -99,24 +99,24 @@ URLInput::~URLInput()
delete _right;
}
-QString URLInput::value() const
+TQString URLInput::value() const
{
return _right->url();
}
-void URLInput::setValue( const QString& value )
+void URLInput::setValue( const TQString& value )
{
_right->setURL( value );
}
-ComboInput::ComboInput( QWidget *parent, const QString& title, const QMap<QString, QString>& list,
- const QString& defaul, const QString& configName )
+ComboInput::ComboInput( TQWidget *parent, const TQString& title, const TQMap<TQString, TQString>& list,
+ const TQString& defaul, const TQString& configName )
: AccountInput( configName )
- , _list( new QMap< QString, QString >( list ) )
+ , _list( new TQMap< TQString, TQString >( list ) )
{
- _left = new QLabel( title, parent, "label" );
- _right = new QComboBox( false, parent, "combo" );
- _right->insertStringList( QStringList( _list->values() ) );
+ _left = new TQLabel( title, parent, "label" );
+ _right = new TQComboBox( false, parent, "combo" );
+ _right->insertStringList( TQStringList( _list->values() ) );
setValue( defaul );
}
@@ -126,7 +126,7 @@ ComboInput::~ComboInput()
delete _right;
}
-QString ComboInput::value() const
+TQString ComboInput::value() const
{
if( _right->currentItem() >= 0 )
return _list->keys()[ _right->currentItem() ];
@@ -134,7 +134,7 @@ QString ComboInput::value() const
return "";
}
-void ComboInput::setValue( const QString& value )
+void ComboInput::setValue( const TQString& value )
{
if( _list->contains( value ) )
_right->setCurrentItem( _list->keys().findIndex( value ) );
@@ -142,10 +142,10 @@ void ComboInput::setValue( const QString& value )
_right->setCurrentItem( -1 );
}
-CheckboxInput::CheckboxInput( QWidget *parent, const QString& title, const QString& defaul, const QString& configName )
+CheckboxInput::CheckboxInput( TQWidget *parent, const TQString& title, const TQString& defaul, const TQString& configName )
: AccountInput( configName )
{
- _right = new QCheckBox( title, parent, "checkbox" );
+ _right = new TQCheckBox( title, parent, "checkbox" );
setValue( defaul );
}
@@ -154,7 +154,7 @@ CheckboxInput::~CheckboxInput()
delete _right;
}
-QString CheckboxInput::value() const
+TQString CheckboxInput::value() const
{
if( _right->isChecked() )
return "true";
@@ -162,7 +162,7 @@ QString CheckboxInput::value() const
return "false";
}
-void CheckboxInput::setValue( const QString& value )
+void CheckboxInput::setValue( const TQString& value )
{
if( value == "true" )
_right->setChecked( true );