diff options
Diffstat (limited to 'tools/designer/plugins/dlg/dlg2ui.cpp')
-rw-r--r-- | tools/designer/plugins/dlg/dlg2ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/designer/plugins/dlg/dlg2ui.cpp b/tools/designer/plugins/dlg/dlg2ui.cpp index c309eb2..6b23453 100644 --- a/tools/designer/plugins/dlg/dlg2ui.cpp +++ b/tools/designer/plugins/dlg/dlg2ui.cpp @@ -718,7 +718,7 @@ void Dlg2Ui::emitWidgetBody( const QDomElement& e, bool layouted ) if ( tagName == QString("Style") ) { if ( getTextValue(n) == QString("ReadWrite") ) emitProperty( QString("editable"), - QVariant(TRUE, 0) ); + QVariant(true) ); } } else if ( parentTagName == QString("DlgWidget") ) { if ( tagName == QString("Name") ) { @@ -891,7 +891,7 @@ QVariant Dlg2Ui::getValue( const QDomElement& e, const QString& tagName, if ( type == QString("integer") ) { return getTextValue( e ).toInt(); } else if ( type == QString("boolean") ) { - return QVariant( isTrue(getTextValue(e)), 0 ); + return QVariant( isTrue(getTextValue(e)) ); } else if ( type == QString("double") ) { return getTextValue( e ).toDouble(); } else if ( type == QString("qcstring") ) { |