summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/widgetfactory.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-05-26 17:01:21 +0200
committerSlávek Banko <[email protected]>2019-05-26 17:01:21 +0200
commit5fcb1d91b4f52ab609864968a7320eb276f6c068 (patch)
tree68b06e9aae62d253e11bee1794e440fdff1f2f10 /kdevdesigner/designer/widgetfactory.cpp
parent5c2e2bba886fb5aca2abead9bfc2b1d15216d229 (diff)
downloadtdevelop-5fcb1d91b4f52ab609864968a7320eb276f6c068.tar.gz
tdevelop-5fcb1d91b4f52ab609864968a7320eb276f6c068.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kdevdesigner/designer/widgetfactory.cpp')
-rw-r--r--kdevdesigner/designer/widgetfactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdevdesigner/designer/widgetfactory.cpp b/kdevdesigner/designer/widgetfactory.cpp
index 9d04535a..9423b6a6 100644
--- a/kdevdesigner/designer/widgetfactory.cpp
+++ b/kdevdesigner/designer/widgetfactory.cpp
@@ -1480,13 +1480,13 @@ TQVariant WidgetFactory::defaultValue( TQObject *w, const TQString &propName )
{
if ( propName == "wordwrap" ) {
int v = defaultValue( w, "alignment" ).toInt();
- return TQVariant( ( v & WordBreak ) == WordBreak, 0 );
+ return TQVariant( ( v & WordBreak ) == WordBreak );
} else if ( propName == "toolTip" || propName == "whatsThis" ) {
return TQVariant( TQString::fromLatin1( "" ) );
} else if ( w->inherits( "CustomWidget" ) ) {
return TQVariant();
} else if ( propName == "frameworkCode" ) {
- return TQVariant( TRUE, 0 );
+ return TQVariant( true );
} else if ( propName == "layoutMargin" || propName == "layoutSpacing" ) {
return TQVariant( -1 );
}