summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-29 15:14:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-29 15:14:42 +0900
commit4f6b41af1b4c85a1241d6760f43b8f103f5b2df7 (patch)
treedc8f2d33799f99f8e18f3c866b4cf54b6b59d8a7 /src/common
parent49ec11d70278c774c77543423ea1e29093c0c78d (diff)
downloadpiklab-4f6b41af1b4c85a1241d6760f43b8f103f5b2df7.tar.gz
piklab-4f6b41af1b4c85a1241d6760f43b8f103f5b2df7.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/global/generic_config.cpp2
-rw-r--r--src/common/gui/config_widget.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/global/generic_config.cpp b/src/common/global/generic_config.cpp
index 63f3f08..a4a8827 100644
--- a/src/common/global/generic_config.cpp
+++ b/src/common/global/generic_config.cpp
@@ -223,7 +223,7 @@ void GenericConfig::deleteGroup(const TQString &group)
TQVariant GenericConfig::readVariantEntry(const TQString &key, const TQVariant &defValue) const
{
switch (defValue.type()) {
- case TQVariant::Bool: return TQVariant(readBoolEntry(key, defValue.toBool()), 0);
+ case TQVariant::Bool: return TQVariant(readBoolEntry(key, defValue.toBool()));
case TQVariant::UInt: return readUIntEntry(key, defValue.toUInt());
default: break;
}
diff --git a/src/common/gui/config_widget.h b/src/common/gui/config_widget.h
index 28fc4eb..e981aac 100644
--- a/src/common/gui/config_widget.h
+++ b/src/common/gui/config_widget.h
@@ -78,7 +78,7 @@ private:
void save(Type type, TQWidget *widget) {
switch (type.data().defValue.type()) {
case TQVariant::Bool:
- writeConfigEntry(type, TQVariant(static_cast<TQCheckBox *>(widget)->isChecked(), 0));
+ writeConfigEntry(type, TQVariant(static_cast<TQCheckBox *>(widget)->isChecked()));
break;
default: Q_ASSERT(false); break;
}