summaryrefslogtreecommitdiffstats
path: root/kommander/factory
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-27 14:39:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-27 14:39:31 +0900
commit845e845efe87d0f1d3ecb60a42a0b8e33bc873b1 (patch)
tree8015e65a5d56e511d267f69b96c2cde22070f070 /kommander/factory
parent6f7662c399472627dbc7e3dc719e77beba8a140f (diff)
downloadtdewebdev-845e845efe87d0f1d3ecb60a42a0b8e33bc873b1.tar.gz
tdewebdev-845e845efe87d0f1d3ecb60a42a0b8e33bc873b1.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kommander/factory')
-rw-r--r--kommander/factory/domtool.cpp2
-rw-r--r--kommander/factory/kommanderfactory.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/kommander/factory/domtool.cpp b/kommander/factory/domtool.cpp
index 40190ff1..56a98a69 100644
--- a/kommander/factory/domtool.cpp
+++ b/kommander/factory/domtool.cpp
@@ -177,7 +177,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def
v = TQVariant( e.firstChild().toText().data().toDouble() );
} else if ( e.tagName() == "bool" ) {
TQString t = e.firstChild().toText().data();
- v = TQVariant( t == "true" || t == "1", 0 );
+ v = TQVariant( t == "true" || t == "1" );
} else if ( e.tagName() == "pixmap" ) {
v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "iconset" ) {
diff --git a/kommander/factory/kommanderfactory.cpp b/kommander/factory/kommanderfactory.cpp
index eee18d4a..81549438 100644
--- a/kommander/factory/kommanderfactory.cpp
+++ b/kommander/factory/kommanderfactory.cpp
@@ -788,7 +788,7 @@ void KommanderFactory::setProperty( TQObject* obj, const TQString &prop, const T
if ( prop == "buddy" ) {
buddies.insert( obj->name(), v.toCString() );
} else if ( prop == "frameworkCode" ) {
- if ( !DomTool::elementToVariant( e, TQVariant( true, 0 ) ).toBool() ) {
+ if ( !DomTool::elementToVariant( e, TQVariant( true ) ).toBool() ) {
noDatabaseWidgets << obj->name();
}
} else if ( prop == "buttonGroupId" ) {