summaryrefslogtreecommitdiffstats
path: root/kmail/simplestringlisteditor.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 /kmail/simplestringlisteditor.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 'kmail/simplestringlisteditor.cpp')
-rw-r--r--kmail/simplestringlisteditor.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kmail/simplestringlisteditor.cpp b/kmail/simplestringlisteditor.cpp
index 4d42f4d4..4ab24f69 100644
--- a/kmail/simplestringlisteditor.cpp
+++ b/kmail/simplestringlisteditor.cpp
@@ -19,11 +19,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -56,14 +56,14 @@ static inline TQListBoxItem * findSelectedItem( TQListBox * lb ) {
return item;
}
-SimpleStringListEditor::SimpleStringListEditor( TQWidget * parent,
+SimpleStringListEditor::SimpleStringListEditor( TQWidget * tqparent,
const char * name,
ButtonCode buttons,
const TQString & addLabel,
const TQString & removeLabel,
const TQString & modifyLabel,
const TQString & addDialogLabel )
- : TQWidget( parent, name ),
+ : TQWidget( tqparent, name ),
mAddButton(0), mRemoveButton(0), mModifyButton(0),
mUpButton(0), mDownButton(0),
mAddDialogLabel( addDialogLabel.isEmpty() ?
@@ -121,7 +121,7 @@ SimpleStringListEditor::SimpleStringListEditor( TQWidget * parent,
if ( !(buttons & Down) )
kdDebug(5006) << "Are you sure you want to use an Up button "
"without a Down button??" << endl;
- mUpButton = new KPushButton( TQString::null, this );
+ mUpButton = new KPushButton( TQString(), this );
mUpButton->setIconSet( BarIconSet( "up", KIcon::SizeSmall ) );
mUpButton->setAutoDefault( false );
mUpButton->setEnabled( false ); // no selection yet
@@ -134,7 +134,7 @@ SimpleStringListEditor::SimpleStringListEditor( TQWidget * parent,
if ( !(buttons & Up) )
kdDebug(5006) << "Are you sure you want to use a Down button "
"without an Up button??" << endl;
- mDownButton = new KPushButton( TQString::null, this );
+ mDownButton = new KPushButton( TQString(), this );
mDownButton->setIconSet( BarIconSet( "down", KIcon::SizeSmall ) );
mDownButton->setAutoDefault( false );
mDownButton->setEnabled( false ); // no selection yet
@@ -166,7 +166,7 @@ TQStringList SimpleStringListEditor::stringList() const {
return result;
}
-bool SimpleStringListEditor::tqcontainsString( const TQString & str ) {
+bool SimpleStringListEditor::containsString( const TQString & str ) {
for ( TQListBoxItem * item = mListBox->firstItem() ;
item ; item = item->next() ) {
if ( item->text() == str )
@@ -193,7 +193,7 @@ void SimpleStringListEditor::setButtonText( ButtonCode button,
case Up:
case Down:
kdDebug(5006) << "SimpleStringListEditor: Cannot change text of "
- "Up and Down buttons: they don't tqcontains text!" << endl;
+ "Up and Down buttons: they don't contains text!" << endl;
return;
default:
if ( button & All )
@@ -212,11 +212,11 @@ void SimpleStringListEditor::setButtonText( ButtonCode button,
void SimpleStringListEditor::slotAdd() {
bool ok = false;
TQString newEntry = KInputDialog::getText( i18n("New Value"),
- mAddDialogLabel, TQString::null,
+ mAddDialogLabel, TQString(),
&ok, this );
// let the user verify the string before adding
emit aboutToAdd( newEntry );
- if ( ok && !newEntry.isEmpty() && !tqcontainsString( newEntry )) {
+ if ( ok && !newEntry.isEmpty() && !containsString( newEntry )) {
mListBox->insertItem( newEntry );
emit changed();
}