summaryrefslogtreecommitdiffstats
path: root/lib/koproperty
diff options
context:
space:
mode:
Diffstat (limited to 'lib/koproperty')
-rw-r--r--lib/koproperty/editors/booledit.cpp4
-rw-r--r--lib/koproperty/test/test.cpp2
2 files changed, 3 insertions, 3 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();
}
diff --git a/lib/koproperty/test/test.cpp b/lib/koproperty/test/test.cpp
index 59fee246..23bb80f7 100644
--- a/lib/koproperty/test/test.cpp
+++ b/lib/koproperty/test/test.cpp
@@ -62,7 +62,7 @@ Test::Test()
m_set->addProperty(new Property("Int", 2, "Int"), group);
m_set->addProperty(new Property("Double", 3.1415,"Double"), group);
- m_set->addProperty(new Property("Bool", TQVariant(true, 4), "Bool"), group);
+ m_set->addProperty(new Property("Bool", TQVariant(true), "Bool"), group);
m_set->addProperty(p = new Property("3 States", TQVariant(), "3 States", "", Boolean), group);
p->setOption("3rdState", "None");
m_set->addProperty(p = new Property("Date", TQDate::currentDate(),"Date"), group);