diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-12 09:39:46 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-12 09:39:46 +0900 |
commit | 31149c65cca5348dfd890dfb2ffe027f544f6ccb (patch) | |
tree | 1de9f252024c299d2084555a31f6eb5f147d11e5 /style | |
parent | 738600dec8d0539f01b2c9f924f832a9369cd6e7 (diff) | |
download | tde-style-baghira-31149c65cca5348dfd890dfb2ffe027f544f6ccb.tar.gz tde-style-baghira-31149c65cca5348dfd890dfb2ffe027f544f6ccb.zip |
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'style')
-rw-r--r-- | style/eventfilter.cpp | 2 | ||||
-rw-r--r-- | style/polish.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/style/eventfilter.cpp b/style/eventfilter.cpp index ed445d7..a701e60 100644 --- a/style/eventfilter.cpp +++ b/style/eventfilter.cpp @@ -13,7 +13,7 @@ bool LiquidStyle::objectEventHandler( const TQStyleControlElementData &ceData, return true; } - if (!ceData.widgetObjectTypes.contains(TQOBJECT_OBJECT_NAME_STRING)) { + if (!ceData.widgetObjectTypes.contains("TQObject")) { return false; } TQObject* obj = reinterpret_cast<TQObject*>(source); diff --git a/style/polish.cpp b/style/polish.cpp index a810d37..064fcdb 100644 --- a/style/polish.cpp +++ b/style/polish.cpp @@ -206,7 +206,7 @@ void LiquidStyle::polish( TQPalette &pal ) void LiquidStyle::applicationUnPolish( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr ) { - if (ceData.widgetObjectTypes.contains(TQAPPLICATION_OBJECT_NAME_STRING)) { + if (ceData.widgetObjectTypes.contains("TQApplication")) { TQApplication *app = reinterpret_cast<TQApplication*>(ptr); popupBack.resize(0,0); TQPalette pal( app->palette() ); @@ -236,7 +236,7 @@ void LiquidStyle::polish( const TQStyleControlElementData &ceData, ControlElemen // if (w->sizePolicy().horData() == TQSizePolicy::Minimum || w->sizePolicy().horData() == TQSizePolicy::MinimumExpanding) // tqWarning("%s, \"%s\"",w->className(), w->name()); // installObjectEventHandler(ceData, elementFlags, ptr, this); - if (ceData.widgetObjectTypes.contains(TQWIDGET_OBJECT_NAME_STRING)) { + if (ceData.widgetObjectTypes.contains("TQWidget")) { TQWidget *w = reinterpret_cast<TQWidget*>(ptr); bool tmpBool = false; @@ -755,7 +755,7 @@ void LiquidStyle::polish( const TQStyleControlElementData &ceData, ControlElemen void LiquidStyle::unPolish( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr ) { - if (ceData.widgetObjectTypes.contains(TQWIDGET_OBJECT_NAME_STRING)) { + if (ceData.widgetObjectTypes.contains("TQWidget")) { TQWidget *w = reinterpret_cast<TQWidget*>(ptr); bool isViewport; |