summaryrefslogtreecommitdiffstats
path: root/kommander/editor/propertyeditor.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-03-07 20:24:08 +0100
committergregory guy <[email protected]>2021-03-11 15:04:46 +0100
commit70defe5e6d9498c5c6011eee50c4dc506abebd61 (patch)
treec2d269ffeaf389637607efa6547ff8eb2d41cd45 /kommander/editor/propertyeditor.cpp
parent4c43d1fbb66a296958ed1d0dbddf3f8ac4466130 (diff)
downloadtdewebdev-70defe5e6d9498c5c6011eee50c4dc506abebd61.tar.gz
tdewebdev-70defe5e6d9498c5c6011eee50c4dc506abebd61.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kommander/editor/propertyeditor.cpp')
-rw-r--r--kommander/editor/propertyeditor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kommander/editor/propertyeditor.cpp b/kommander/editor/propertyeditor.cpp
index 00511834..24ce0949 100644
--- a/kommander/editor/propertyeditor.cpp
+++ b/kommander/editor/propertyeditor.cpp
@@ -2885,7 +2885,7 @@ void PropertyList::valueChanged( PropertyItem *i )
TQString pn( i18n("Set '%1' of '%2'" ).arg( i->name() ).arg( editor->widget()->name() ) );
SetPropertyCommand *cmd = new SetPropertyCommand( pn, editor->formWindow(),
editor->widget(), editor,
- i->name(), WidgetFactory::property( editor->widget(), i->name() ),
+ i->name(), WidgetFactory::property( editor->widget(), i->name().latin1() ),
i->value(), i->currentItem(), i->currentItemFromObject() );
cmd->execute();
editor->formWindow()->commandHistory()->addCommand( cmd, true );
@@ -3062,7 +3062,7 @@ void PropertyList::setPropertyValue( PropertyItem *i )
{
const TQMetaProperty *p =
editor->widget()->metaObject()->
- property( editor->widget()->metaObject()->findProperty( i->name(), true), true );
+ property( editor->widget()->metaObject()->findProperty( i->name().latin1(), true), true );
if ( !p ) {
if ( i->name() == "hAlign" ) {
int align = editor->widget()->property( "alignment" ).toInt();
@@ -3101,9 +3101,9 @@ void PropertyList::setPropertyValue( PropertyItem *i )
if ( p->isSetType() )
;
else if ( p->isEnumType() )
- ( (PropertyListItem*)i )->setCurrentItem( p->valueToKey( editor->widget()->property( i->name() ).toInt() ) );
+ ( (PropertyListItem*)i )->setCurrentItem( p->valueToKey( editor->widget()->property( i->name().latin1() ).toInt() ) );
else
- i->setValue( editor->widget()->property( i->name() ) );
+ i->setValue( editor->widget()->property( i->name().latin1() ) );
}
void PropertyList::setCurrentProperty( const TQString &n )