|
|
@ -1085,7 +1085,7 @@ PropertyBoolItem::~PropertyBoolItem()
|
|
|
|
void PropertyBoolItem::toggle()
|
|
|
|
void PropertyBoolItem::toggle()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool b = value().toBool();
|
|
|
|
bool b = value().toBool();
|
|
|
|
setValue( TQVariant( !b, 0 ) );
|
|
|
|
setValue( TQVariant( !b ) );
|
|
|
|
setValue();
|
|
|
|
setValue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1139,8 +1139,8 @@ void PropertyBoolItem::setValue()
|
|
|
|
if ( !comb )
|
|
|
|
if ( !comb )
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
setText( 1, combo()->currentText() );
|
|
|
|
setText( 1, combo()->currentText() );
|
|
|
|
bool b = combo()->currentItem() == 0 ? (bool)false : (bool)true;
|
|
|
|
bool b = combo()->currentItem() == 0 ? false : true;
|
|
|
|
PropertyItem::setValue( TQVariant( b, 0 ) );
|
|
|
|
PropertyItem::setValue( TQVariant( b ) );
|
|
|
|
notifyValueChange();
|
|
|
|
notifyValueChange();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1790,13 +1790,13 @@ void PropertyFontItem::initChildren()
|
|
|
|
} else if ( item->name() == i18n("Point Size" ) )
|
|
|
|
} else if ( item->name() == i18n("Point Size" ) )
|
|
|
|
item->setValue( val.toFont().pointSize() );
|
|
|
|
item->setValue( val.toFont().pointSize() );
|
|
|
|
else if ( item->name() == i18n("Bold" ) )
|
|
|
|
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" ) )
|
|
|
|
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" ) )
|
|
|
|
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" ) )
|
|
|
|
else if ( item->name() == i18n("Strikeout" ) )
|
|
|
|
item->setValue( TQVariant( val.toFont().strikeOut(), 0 ) );
|
|
|
|
item->setValue( TQVariant( val.toFont().strikeOut() ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -3081,9 +3081,9 @@ void PropertyList::setPropertyValue( PropertyItem *i )
|
|
|
|
} else if ( i->name() == "wordwrap" ) {
|
|
|
|
} else if ( i->name() == "wordwrap" ) {
|
|
|
|
int align = editor->widget()->property( "alignment" ).toInt();
|
|
|
|
int align = editor->widget()->property( "alignment" ).toInt();
|
|
|
|
if ( align & WordBreak )
|
|
|
|
if ( align & WordBreak )
|
|
|
|
i->setValue( TQVariant( true, 0 ) );
|
|
|
|
i->setValue( TQVariant( true ) );
|
|
|
|
else
|
|
|
|
else
|
|
|
|
i->setValue( TQVariant( false, 0 ) );
|
|
|
|
i->setValue( TQVariant( false) );
|
|
|
|
} else if ( i->name() == "layoutSpacing" ) {
|
|
|
|
} else if ( i->name() == "layoutSpacing" ) {
|
|
|
|
( (PropertyIntItem*)i )->setValue( MetaDataBase::spacing( TQT_TQOBJECT(WidgetFactory::containerOfWidget( (TQWidget*)editor->widget() )) ) );
|
|
|
|
( (PropertyIntItem*)i )->setValue( MetaDataBase::spacing( TQT_TQOBJECT(WidgetFactory::containerOfWidget( (TQWidget*)editor->widget() )) ) );
|
|
|
|
} else if ( i->name() == "layoutMargin" ) {
|
|
|
|
} else if ( i->name() == "layoutMargin" ) {
|
|
|
|