diff options
author | Michele Calgaro <[email protected]> | 2019-05-28 23:09:09 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-05-28 23:09:09 +0900 |
commit | 04a12485219f38e113932e8aa20b6bc12d8fa715 (patch) | |
tree | 68ee6acef9dfadc11fe8bd4d94f52d020cd8b7a1 /kexi/plugins/forms | |
parent | 03eee956313fe6172f719669a1bd3d5739e023ba (diff) | |
download | koffice-04a12485219f38e113932e8aa20b6bc12d8fa715.tar.gz koffice-04a12485219f38e113932e8aa20b6bc12d8fa715.zip |
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kexi/plugins/forms')
-rw-r--r-- | kexi/plugins/forms/kexiformpart.cpp | 2 | ||||
-rw-r--r-- | kexi/plugins/forms/widgets/kexidbcheckbox.cpp | 2 | ||||
-rw-r--r-- | kexi/plugins/forms/widgets/kexidblineedit.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/kexi/plugins/forms/kexiformpart.cpp b/kexi/plugins/forms/kexiformpart.cpp index c53212fb..0b5f83ef 100644 --- a/kexi/plugins/forms/kexiformpart.cpp +++ b/kexi/plugins/forms/kexiformpart.cpp @@ -400,7 +400,7 @@ void KexiFormPart::slotAutoTabStopsSet(KFormDesigner::Form *form, bool set) KoProperty::Property &p = (*KFormDesigner::FormManager::self()->propertySet())["autoTabStops"]; if (!p.isNull()) - p.setValue(TQVariant(set, 4)); + p.setValue(TQVariant(set)); } void KexiFormPart::slotAssignAction() diff --git a/kexi/plugins/forms/widgets/kexidbcheckbox.cpp b/kexi/plugins/forms/widgets/kexidbcheckbox.cpp index c1a8f5d4..5d123d4d 100644 --- a/kexi/plugins/forms/widgets/kexidbcheckbox.cpp +++ b/kexi/plugins/forms/widgets/kexidbcheckbox.cpp @@ -78,7 +78,7 @@ KexiDBCheckBox::value() { if (state()==NoChange) return TQVariant(); - return TQVariant(state()==On, 1); + return TQVariant(state()==On); } void KexiDBCheckBox::slotStateChanged(int ) diff --git a/kexi/plugins/forms/widgets/kexidblineedit.cpp b/kexi/plugins/forms/widgets/kexidblineedit.cpp index 815adca9..8e74324a 100644 --- a/kexi/plugins/forms/widgets/kexidblineedit.cpp +++ b/kexi/plugins/forms/widgets/kexidblineedit.cpp @@ -163,7 +163,7 @@ TQVariant KexiDBLineEdit::value() return text().toLongLong(); case KexiDB::Field::Boolean: //! @todo temporary solution for booleans! - return text() == "1" ? TQVariant(true,1) : TQVariant(false,0); + return text() == "1" ? TQVariant(true) : TQVariant(false); case KexiDB::Field::Date: return dateFormatter()->stringToVariant( text() ); case KexiDB::Field::Time: |