summaryrefslogtreecommitdiffstats
path: root/kolf/kcomboboxdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kolf/kcomboboxdialog.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolf/kcomboboxdialog.cpp')
-rw-r--r--kolf/kcomboboxdialog.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kolf/kcomboboxdialog.cpp b/kolf/kcomboboxdialog.cpp
index 1e18e0b2..133edb01 100644
--- a/kolf/kcomboboxdialog.cpp
+++ b/kolf/kcomboboxdialog.cpp
@@ -34,8 +34,8 @@
#include "kcomboboxdialog.h"
-KComboBoxDialog::KComboBoxDialog( const TQString &_text, const TQStringList &_items, const TQString& _value, bool showDontAskAgain, TQWidget *parent )
- : KDialogBase( Plain, TQString::null, Ok, Ok, parent, 0L, true, true )
+KComboBoxDialog::KComboBoxDialog( const TQString &_text, const TQStringList &_items, const TQString& _value, bool showDontAskAgain, TQWidget *tqparent )
+ : KDialogBase( Plain, TQString(), Ok, Ok, tqparent, 0L, true, true )
{
TQVBoxLayout *topLayout = new TQVBoxLayout( plainPage(), marginHint(), spacingHint() );
TQLabel *label = new TQLabel(_text, plainPage() );
@@ -76,12 +76,12 @@ bool KComboBoxDialog::dontAskAgainChecked()
return false;
}
-TQString KComboBoxDialog::getItem( const TQString &_text, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *parent )
+TQString KComboBoxDialog::getItem( const TQString &_text, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *tqparent )
{
- return getItem( _text, TQString::null, _items, _value, dontAskAgainName, parent );
+ return getItem( _text, TQString(), _items, _value, dontAskAgainName, tqparent );
}
-TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_caption, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *parent )
+TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_caption, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *tqparent )
{
TQString prevAnswer;
if ( !dontAskAgainName.isEmpty() )
@@ -90,11 +90,11 @@ TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_capti
config->setGroup( "Notification Messages" );
prevAnswer = config->readEntry( dontAskAgainName );
if ( !prevAnswer.isEmpty() )
- if ( _items.contains( prevAnswer ) > 0 )
+ if ( _items.tqcontains( prevAnswer ) > 0 )
return prevAnswer;
}
- KComboBoxDialog dlg( _text, _items, _value, !dontAskAgainName.isNull(), parent );
+ KComboBoxDialog dlg( _text, _items, _value, !dontAskAgainName.isNull(), tqparent );
if ( !_caption.isNull() )
dlg.setCaption( _caption );
@@ -115,17 +115,17 @@ TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_capti
return text;
}
-TQString KComboBoxDialog::getText(const TQString &_caption, const TQString &_text, const TQString &_value, bool *ok, TQWidget *parent, const TQString &configName, KConfig *config)
+TQString KComboBoxDialog::getText(const TQString &_caption, const TQString &_text, const TQString &_value, bool *ok, TQWidget *tqparent, const TQString &configName, KConfig *config)
{
- KComboBoxDialog dlg(_text, TQStringList(), _value, false, parent);
+ KComboBoxDialog dlg(_text, TQStringList(), _value, false, tqparent);
if ( !_caption.isNull() )
dlg.setCaption( _caption );
KHistoryCombo * const box = dlg.comboBox();
box->setEditable(true);
- const TQString historyItem = TQString("%1History").arg(configName);
- const TQString completionItem = TQString("%1Completion").arg(configName);
+ const TQString historyItem = TQString("%1History").tqarg(configName);
+ const TQString completionItem = TQString("%1Completion").tqarg(configName);
if(!configName.isNull())
{