summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview/kexitextformatter.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-28 23:09:09 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-28 23:09:09 +0900
commit04a12485219f38e113932e8aa20b6bc12d8fa715 (patch)
tree68ee6acef9dfadc11fe8bd4d94f52d020cd8b7a1 /kexi/widget/tableview/kexitextformatter.cpp
parent03eee956313fe6172f719669a1bd3d5739e023ba (diff)
downloadkoffice-04a12485.tar.gz
koffice-04a12485.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kexi/widget/tableview/kexitextformatter.cpp')
-rw-r--r--kexi/widget/tableview/kexitextformatter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexi/widget/tableview/kexitextformatter.cpp b/kexi/widget/tableview/kexitextformatter.cpp
index 5ff289206..b9208d431 100644
--- a/kexi/widget/tableview/kexitextformatter.cpp
+++ b/kexi/widget/tableview/kexitextformatter.cpp
@@ -157,7 +157,7 @@ TQVariant KexiTextFormatter::textToValue(const TQString& text) const
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 d->dateFormatter->stringToVariant( text );
case KexiDB::Field::Time: