summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/editors/booledit.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 /lib/koproperty/editors/booledit.cpp
parent03eee956313fe6172f719669a1bd3d5739e023ba (diff)
downloadkoffice-04a12485219f38e113932e8aa20b6bc12d8fa715.tar.gz
koffice-04a12485219f38e113932e8aa20b6bc12d8fa715.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/koproperty/editors/booledit.cpp')
-rw-r--r--lib/koproperty/editors/booledit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/koproperty/editors/booledit.cpp b/lib/koproperty/editors/booledit.cpp
index e34ee5d5..fbeb58d5 100644
--- a/lib/koproperty/editors/booledit.cpp
+++ b/lib/koproperty/editors/booledit.cpp
@@ -60,7 +60,7 @@ BoolEdit::~BoolEdit()
TQVariant
BoolEdit::value() const
{
- return TQVariant(m_toggle->isOn(), 4);
+ return TQVariant(m_toggle->isOn());
}
void
@@ -173,7 +173,7 @@ ThreeStateBoolEdit::value() const
// list items: true, false, NULL
const int idx = m_edit->currentItem();
if (idx==0)
- return TQVariant(true, 1);
+ return TQVariant(true);
else
return idx==1 ? TQVariant(false) : TQVariant();
}