summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 09:38:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 09:38:13 +0900
commit6a57fe022a5669d12195eda34c08d7b8870ca0c1 (patch)
treea47cd8f50ed8746094b51c443cd6405e8a6d317b /tests
parent3f443ffec4612fb265e7a54986adebf1f7dee5d8 (diff)
downloadgtk3-tqt-engine-6a57fe022a5669d12195eda34c08d7b8870ca0c1.tar.gz
gtk3-tqt-engine-6a57fe022a5669d12195eda34c08d7b8870ca0c1.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 'tests')
-rw-r--r--tests/test-painter.cpp8
1 files changed, 4 insertions, 4 deletions
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;