summaryrefslogtreecommitdiffstats
path: root/tools/designer/shared
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-27 00:31:56 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-27 00:31:56 +0900
commita2fa7ca9838e204ec41c39fcb80ee82ec93d084f (patch)
tree667608ea9bc8d1e4827077c1321ad6fa02bf8cc3 /tools/designer/shared
parent2c29133f7ee2a270da8d8504345390a1d60e80fa (diff)
downloadqt3-a2fa7ca9838e204ec41c39fcb80ee82ec93d084f.tar.gz
qt3-a2fa7ca9838e204ec41c39fcb80ee82ec93d084f.zip
Adjusted to latest QVariant::QVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/designer/shared')
-rw-r--r--tools/designer/shared/domtool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/designer/shared/domtool.cpp b/tools/designer/shared/domtool.cpp
index 51796e1..2b75dc7 100644
--- a/tools/designer/shared/domtool.cpp
+++ b/tools/designer/shared/domtool.cpp
@@ -199,7 +199,7 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
v = QVariant( e.firstChild().toText().data().toDouble() );
} else if ( e.tagName() == "bool" ) {
QString t = e.firstChild().toText().data();
- v = QVariant( t == "true" || t == "1", 0 );
+ v = QVariant( t == "true" || t == "1" );
} else if ( e.tagName() == "pixmap" ) {
v = QVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "iconset" ) {