diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-03-07 20:24:08 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-03-12 00:35:39 +0100 |
commit | 369d8455ac39aa9f5328b855bd5f456e3f384a63 (patch) | |
tree | ea0e74835bcc4c1ca9245316ffebf9a439828dd3 /kommander/editor/widgetfactory.cpp | |
parent | eea71ca9ecdfbd4682054a86cc9bbf954af94693 (diff) | |
download | tdewebdev-369d8455ac39aa9f5328b855bd5f456e3f384a63.tar.gz tdewebdev-369d8455ac39aa9f5328b855bd5f456e3f384a63.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 <slavek.banko@axis.cz>
(cherry picked from commit 70defe5e6d9498c5c6011eee50c4dc506abebd61)
Diffstat (limited to 'kommander/editor/widgetfactory.cpp')
-rw-r--r-- | kommander/editor/widgetfactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kommander/editor/widgetfactory.cpp b/kommander/editor/widgetfactory.cpp index 76ec00d9..339e78d0 100644 --- a/kommander/editor/widgetfactory.cpp +++ b/kommander/editor/widgetfactory.cpp @@ -1673,7 +1673,7 @@ bool WidgetFactory::canResetProperty( TQObject *w, const TQString &propName ) bool WidgetFactory::resetProperty( TQObject *w, const TQString &propName ) { const TQMetaProperty *p = w->metaObject()->property( w->metaObject()-> - findProperty( propName, true ), true ); + findProperty( propName.latin1(), true ), true ); if (!p ) return false; return p->reset( w ); @@ -1706,7 +1706,7 @@ TQVariant WidgetFactory::defaultValue( TQObject *w, const TQString &propName ) TQString WidgetFactory::defaultCurrentItem( TQObject *w, const TQString &propName ) { const TQMetaProperty *p = w->metaObject()-> - property( w->metaObject()->findProperty( propName, true ), true ); + property( w->metaObject()->findProperty( propName.latin1(), true ), true ); if ( !p ) { int v = defaultValue( w, "alignment" ).toInt(); if ( propName == "hAlign" ) { |