From 6713ac1b169287c7c6c0572ef9951a66b796b9cf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 12 Jul 2023 09:38:13 +0900 Subject: Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3. Signed-off-by: Michele Calgaro (cherry picked from commit 6a57fe022a5669d12195eda34c08d7b8870ca0c1) --- tests/test-painter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test-painter.cpp') diff --git a/tests/test-painter.cpp b/tests/test-painter.cpp index ad3eb36..9f5ba89 100644 --- a/tests/test-painter.cpp +++ b/tests/test-painter.cpp @@ -288,7 +288,7 @@ void runTests(TQPaintDevice* pd) { TQRect boundingRect(0, 0, width, height); TQStringList objectTypes; - objectTypes.append(TQTABBAR_OBJECT_NAME_STRING); + objectTypes.append("TQTabBar"); TQPalette objectPalette = tqApp->palette(objectTypes); TQStyleControlElementData ceData; @@ -301,7 +301,7 @@ void runTests(TQPaintDevice* pd) { TQStyleOption tabOpt(&tqt3Tab, (TQTab*)NULL); elementFlags = elementFlags | TQStyle::CEF_HasParentWidget; - ceData.parentWidgetData.widgetObjectTypes.append(TQTABBAR_OBJECT_NAME_STRING); + ceData.parentWidgetData.widgetObjectTypes.append("TQTabBar"); int tab_overlap = tqApp->style().pixelMetric(TQStyle::PM_TabBarTabOverlap); x = x + width + tab_overlap; @@ -332,7 +332,7 @@ void runTests(TQPaintDevice* pd) { TQRect boundingRect(0, 0, width, height); TQStringList objectTypes; - objectTypes.append(TQTABBAR_OBJECT_NAME_STRING); + objectTypes.append("TQTabBar"); TQPalette objectPalette = tqApp->palette(objectTypes); TQStyleControlElementData ceData; @@ -345,7 +345,7 @@ void runTests(TQPaintDevice* pd) { TQStyleOption tabOpt(&tqt3Tab, (TQTab*)NULL); elementFlags = elementFlags | TQStyle::CEF_HasParentWidget; - ceData.parentWidgetData.widgetObjectTypes.append(TQTABBAR_OBJECT_NAME_STRING); + ceData.parentWidgetData.widgetObjectTypes.append("TQTabBar"); int tab_overlap = tqApp->style().pixelMetric(TQStyle::PM_TabBarTabOverlap); x = x - width - tab_overlap; -- cgit v1.2.3