summaryrefslogtreecommitdiffstats
path: root/kolf/kcomboboxdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kolf/kcomboboxdialog.cpp')
-rw-r--r--kolf/kcomboboxdialog.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kolf/kcomboboxdialog.cpp b/kolf/kcomboboxdialog.cpp
index 03e0701b..1e18e0b2 100644
--- a/kolf/kcomboboxdialog.cpp
+++ b/kolf/kcomboboxdialog.cpp
@@ -22,9 +22,9 @@
// used in advertising or otherwise to promote the sale, use or other dealings
// in this Software without prior written authorization from the author(s).
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kcombobox.h>
@@ -34,11 +34,11 @@
#include "kcomboboxdialog.h"
-KComboBoxDialog::KComboBoxDialog( const QString &_text, const QStringList &_items, const QString& _value, bool showDontAskAgain, QWidget *parent )
- : KDialogBase( Plain, QString::null, Ok, Ok, parent, 0L, true, true )
+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 )
{
- QVBoxLayout *topLayout = new QVBoxLayout( plainPage(), marginHint(), spacingHint() );
- QLabel *label = new QLabel(_text, plainPage() );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( plainPage(), marginHint(), spacingHint() );
+ TQLabel *label = new TQLabel(_text, plainPage() );
topLayout->addWidget( label, 1 );
combo = new KHistoryCombo( plainPage() );
@@ -48,7 +48,7 @@ KComboBoxDialog::KComboBoxDialog( const QString &_text, const QStringList &_item
if (showDontAskAgain)
{
- dontAskAgainCheckBox = new QCheckBox( i18n("&Do not ask again"), plainPage() );
+ dontAskAgainCheckBox = new TQCheckBox( i18n("&Do not ask again"), plainPage() );
topLayout->addWidget( dontAskAgainCheckBox, 1 );
}
else
@@ -63,7 +63,7 @@ KComboBoxDialog::~KComboBoxDialog()
{
}
-QString KComboBoxDialog::text() const
+TQString KComboBoxDialog::text() const
{
return combo->currentText();
}
@@ -76,14 +76,14 @@ bool KComboBoxDialog::dontAskAgainChecked()
return false;
}
-QString KComboBoxDialog::getItem( const QString &_text, const QStringList &_items, const QString& _value, const QString &dontAskAgainName, QWidget *parent )
+TQString KComboBoxDialog::getItem( const TQString &_text, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *parent )
{
- return getItem( _text, QString::null, _items, _value, dontAskAgainName, parent );
+ return getItem( _text, TQString::null, _items, _value, dontAskAgainName, parent );
}
-QString KComboBoxDialog::getItem( const QString &_text, const QString &_caption, const QStringList &_items, const QString& _value, const QString &dontAskAgainName, QWidget *parent )
+TQString KComboBoxDialog::getItem( const TQString &_text, const TQString &_caption, const TQStringList &_items, const TQString& _value, const TQString &dontAskAgainName, TQWidget *parent )
{
- QString prevAnswer;
+ TQString prevAnswer;
if ( !dontAskAgainName.isEmpty() )
{
KConfig *config = KGlobal::config();
@@ -100,7 +100,7 @@ QString KComboBoxDialog::getItem( const QString &_text, const QString &_caption,
dlg.exec();
- const QString text = dlg.text();
+ const TQString text = dlg.text();
if (dlg.dontAskAgainChecked())
{
@@ -115,17 +115,17 @@ QString KComboBoxDialog::getItem( const QString &_text, const QString &_caption,
return text;
}
-QString KComboBoxDialog::getText(const QString &_caption, const QString &_text, const QString &_value, bool *ok, QWidget *parent, const QString &configName, KConfig *config)
+TQString KComboBoxDialog::getText(const TQString &_caption, const TQString &_text, const TQString &_value, bool *ok, TQWidget *parent, const TQString &configName, KConfig *config)
{
- KComboBoxDialog dlg(_text, QStringList(), _value, false, parent);
+ KComboBoxDialog dlg(_text, TQStringList(), _value, false, parent);
if ( !_caption.isNull() )
dlg.setCaption( _caption );
KHistoryCombo * const box = dlg.comboBox();
box->setEditable(true);
- const QString historyItem = QString("%1History").arg(configName);
- const QString completionItem = QString("%1Completion").arg(configName);
+ const TQString historyItem = TQString("%1History").arg(configName);
+ const TQString completionItem = TQString("%1Completion").arg(configName);
if(!configName.isNull())
{