summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/propertyeditor.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-05-26 17:01:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-05-26 17:01:21 +0200
commit5fcb1d91b4f52ab609864968a7320eb276f6c068 (patch)
tree68b06e9aae62d253e11bee1794e440fdff1f2f10 /kdevdesigner/designer/propertyeditor.cpp
parent5c2e2bba886fb5aca2abead9bfc2b1d15216d229 (diff)
downloadtdevelop-5fcb1d91b4f52ab609864968a7320eb276f6c068.tar.gz
tdevelop-5fcb1d91b4f52ab609864968a7320eb276f6c068.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kdevdesigner/designer/propertyeditor.cpp')
-rw-r--r--kdevdesigner/designer/propertyeditor.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdevdesigner/designer/propertyeditor.cpp b/kdevdesigner/designer/propertyeditor.cpp
index 8397fc22..10fd4aaf 100644
--- a/kdevdesigner/designer/propertyeditor.cpp
+++ b/kdevdesigner/designer/propertyeditor.cpp
@@ -1104,7 +1104,7 @@ PropertyBoolItem::~PropertyBoolItem()
void PropertyBoolItem::toggle()
{
bool b = value().toBool();
- setValue( TQVariant( !b, 0 ) );
+ setValue( TQVariant( !b ) );
setValue();
}
@@ -1159,7 +1159,7 @@ void PropertyBoolItem::setValue()
return;
setText( 1, combo()->currentText() );
bool b = combo()->currentItem() == 0 ? (bool)FALSE : (bool)TRUE;
- PropertyItem::setValue( TQVariant( b, 0 ) );
+ PropertyItem::setValue( TQVariant( b ) );
notifyValueChange();
}
@@ -1901,13 +1901,13 @@ void PropertyFontItem::initChildren()
} else if ( item->name() == i18n( "Point Size" ) )
item->setValue( val.toFont().pointSize() );
else if ( item->name() == i18n( "Bold" ) )
- item->setValue( TQVariant( val.toFont().bold(), 0 ) );
+ item->setValue( TQVariant( val.toFont().bold() ) );
else if ( item->name() == i18n( "Italic" ) )
- item->setValue( TQVariant( val.toFont().italic(), 0 ) );
+ item->setValue( TQVariant( val.toFont().italic() ) );
else if ( item->name() == i18n( "Underline" ) )
- item->setValue( TQVariant( val.toFont().underline(), 0 ) );
+ item->setValue( TQVariant( val.toFont().underline() ) );
else if ( item->name() == i18n( "Strikeout" ) )
- item->setValue( TQVariant( val.toFont().strikeOut(), 0 ) );
+ item->setValue( TQVariant( val.toFont().strikeOut() ) );
}
}
@@ -3712,9 +3712,9 @@ void PropertyList::setPropertyValue( PropertyItem *i )
} else if ( i->name() == "wordwrap" ) {
int align = editor->widget()->property( "alignment" ).toInt();
if ( align & WordBreak )
- i->setValue( TQVariant( TRUE, 0 ) );
+ i->setValue( TQVariant( true ) );
else
- i->setValue( TQVariant( FALSE, 0 ) );
+ i->setValue( TQVariant( false ) );
} else if ( i->name() == "layoutSpacing" ) {
( (PropertyLayoutItem*)i )->setValue( MetaDataBase::spacing( TQT_TQOBJECT(WidgetFactory::containerOfWidget( TQT_TQWIDGET(editor->widget()) ) ) ));
} else if ( i->name() == "layoutMargin" ) {