summaryrefslogtreecommitdiffstats
path: root/kexi/widget/kexiqueryparameters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/kexiqueryparameters.cpp')
-rw-r--r--kexi/widget/kexiqueryparameters.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kexi/widget/kexiqueryparameters.cpp b/kexi/widget/kexiqueryparameters.cpp
index bcef819f..04257ec2 100644
--- a/kexi/widget/kexiqueryparameters.cpp
+++ b/kexi/widget/kexiqueryparameters.cpp
@@ -29,7 +29,7 @@
#include "utils/kexidatetimeformatter.h"
//static
-TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
+TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *parent,
const KexiDB::Driver &driver, KexiDB::QuerySchema& querySchema, bool &ok)
{
Q_UNUSED(driver);
@@ -48,7 +48,7 @@ TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
//! @todo add support for unsigned parameter here
KexiDB::getLimitsForType((*it).type, minValue, maxValue);
const int result = KInputDialog::getInteger(
- caption, (*it).message, 0, minValue, maxValue, 1/*step*/, 10/*base*/, &ok, tqparent);
+ caption, (*it).message, 0, minValue, maxValue, 1/*step*/, 10/*base*/, &ok, parent);
if (!ok)
return TQValueList<TQVariant>(); //cancelled
values.append(result);
@@ -58,7 +58,7 @@ TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
TQStringList list;
list << i18n("Boolean True - Yes", "Yes") << i18n("Boolean False - No", "No");
const TQString result = KInputDialog::getItem(
- caption, (*it).message, list, 0/*current*/, false /*!editable*/, &ok, tqparent);
+ caption, (*it).message, list, 0/*current*/, false /*!editable*/, &ok, parent);
if (!ok || result.isEmpty())
return TQValueList<TQVariant>(); //cancelled
values.append( TQVariant( result==list.first(), 1 ) );
@@ -67,7 +67,7 @@ TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
case KexiDB::Field::Date: {
KexiDateFormatter df;
const TQString result = KInputDialog::getText(
- caption, (*it).message, TQString(), &ok, tqparent, 0/*name*/,
+ caption, (*it).message, TQString(), &ok, parent, 0/*name*/,
//! @todo add validator
0/*validator*/, df.inputMask() );
if (!ok)
@@ -79,7 +79,7 @@ TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
KexiDateFormatter df;
KexiTimeFormatter tf;
const TQString result = KInputDialog::getText(
- caption, (*it).message, TQString(), &ok, tqparent, 0/*name*/,
+ caption, (*it).message, TQString(), &ok, parent, 0/*name*/,
//! @todo add validator
0/*validator*/, dateTimeInputMask(df, tf) );
if (!ok)
@@ -90,7 +90,7 @@ TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
case KexiDB::Field::Time: {
KexiTimeFormatter tf;
const TQString result = KInputDialog::getText(
- caption, (*it).message, TQString(), &ok, tqparent, 0/*name*/,
+ caption, (*it).message, TQString(), &ok, parent, 0/*name*/,
//! @todo add validator
0/*validator*/, tf.inputMask() );
if (!ok)
@@ -103,7 +103,7 @@ TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
// KInputDialog::getDouble() does not work well, use getText and double validator
KDoubleValidator validator(0);
const TQString textResult = KInputDialog::getText( caption, (*it).message, TQString(), &ok,
- tqparent, 0, &validator);
+ parent, 0, &validator);
if (!ok || textResult.isEmpty())
return TQValueList<TQVariant>(); //cancelled
//! @todo this value will be still rounded: consider storing them as a decimal type
@@ -117,7 +117,7 @@ TQValueList<TQVariant> KexiQueryParameters::getParameters(TQWidget *tqparent,
case KexiDB::Field::Text:
case KexiDB::Field::LongText: {
const TQString result = KInputDialog::getText(
- caption, (*it).message, TQString(), &ok, tqparent);
+ caption, (*it).message, TQString(), &ok, parent);
if (!ok)
return TQValueList<TQVariant>(); //cancelled
values.append( result );