summaryrefslogtreecommitdiffstats
path: root/tools/designer/plugins/glade/glade2ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/plugins/glade/glade2ui.cpp')
-rw-r--r--tools/designer/plugins/glade/glade2ui.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/designer/plugins/glade/glade2ui.cpp b/tools/designer/plugins/glade/glade2ui.cpp
index 39ff5e8..00ba9eb 100644
--- a/tools/designer/plugins/glade/glade2ui.cpp
+++ b/tools/designer/plugins/glade/glade2ui.cpp
@@ -839,7 +839,7 @@ void Glade2Ui::emitPushButton( const QString& text, const QString& name )
emitProperty( QString("name"), name.latin1() );
emitProperty( QString("text"), text );
if ( name.contains(QString("ok")) > 0 ) {
- emitProperty( QString("default"), QVariant(TRUE, 0) );
+ emitProperty( QString("default"), QVariant(true) );
} else if ( name.contains(QString("help")) > 0 ) {
emitProperty( QString("accel"), (int) Qt::Key_F1 );
}
@@ -1215,7 +1215,7 @@ void Glade2Ui::emitQListViewColumns( const QDomElement& qlistview )
} else if ( tagName == QString("class") ) {
QString gtkClass = getTextValue( n );
if ( gtkClass.endsWith(QString("Tree")) )
- emitProperty( QString("rootIsDecorated"), QVariant(TRUE, 0) );
+ emitProperty( QString("rootIsDecorated"), QVariant(true) );
} else if ( tagName == QString("selection_mode") ) {
emitProperty( QString("selectionMode"),
gtk2qtSelectionMode(getTextValue(n)) );
@@ -1815,16 +1815,16 @@ QString Glade2Ui::emitWidget( const QDomElement& widget, bool layouted,
if ( !layouted && (x != 0 || y != 0 || width != 0 || height != 0) )
emitProperty( QString("geometry"), QRect(x, y, width, height) );
if ( gtkClass == QString("GtkToggleButton") ) {
- emitProperty( QString("toggleButton"), QVariant(TRUE, 0) );
+ emitProperty( QString("toggleButton"), QVariant(true) );
if ( active )
- emitProperty( QString("on"), QVariant(TRUE, 0) );
+ emitProperty( QString("on"), QVariant(true) );
} else {
if ( active )
- emitProperty( QString("checked"), QVariant(TRUE, 0) );
+ emitProperty( QString("checked"), QVariant(true) );
}
if ( !editable )
- emitProperty( QString("readOnly"), QVariant(TRUE, 0) );
+ emitProperty( QString("readOnly"), QVariant(true) );
if ( !focusTarget.isEmpty() )
emitProperty( QString("buddy"),
fixedName(focusTarget).latin1() );
@@ -1889,7 +1889,7 @@ QString Glade2Ui::emitWidget( const QDomElement& widget, bool layouted,
}
if ( !showText )
emitProperty( QString("percentageVisible"),
- QVariant(FALSE, 0) );
+ QVariant(false) );
if ( step != 1 )
emitProperty( QString("lineStep"), step );
if ( tabPos.endsWith(QString("_BOTTOM")) ||
@@ -1905,12 +1905,12 @@ QString Glade2Ui::emitWidget( const QDomElement& widget, bool layouted,
if ( !tooltip.isEmpty() )
emitProperty( QString("toolTip"), tooltip );
if ( !valueInList )
- emitProperty( QString("editable"), QVariant(TRUE, 0) );
+ emitProperty( QString("editable"), QVariant(true) );
if ( wrap && gtkClass == QString("GtkSpinButton") )
- emitProperty( QString("wrapping"), QVariant(TRUE, 0) );
+ emitProperty( QString("wrapping"), QVariant(true) );
if ( gtkClass.endsWith(QString("Tree")) ) {
- emitProperty( QString("rootIsDecorated"), QVariant(TRUE, 0) );
+ emitProperty( QString("rootIsDecorated"), QVariant(true) );
} else if ( gtkOrientedWidget.exactMatch(gtkClass) ) {
QString s = ( gtkOrientedWidget.cap(1) == QChar('H') ) ?
QString( "Horizontal" ) : QString( "Vertical" );