diff options
author | Michele Calgaro <[email protected]> | 2023-12-14 21:19:12 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-15 00:43:41 +0900 |
commit | 3aab8aa05b954b80e336517f93463a9b5f50f3d6 (patch) | |
tree | be6bb581b1cb695d388cb4be10282514bb067401 /kexi/formeditor/utils.cpp | |
parent | fb6b4d204d1155fa3a1bc7a128873340db1524f7 (diff) | |
download | koffice-3aab8aa05b954b80e336517f93463a9b5f50f3d6.tar.gz koffice-3aab8aa05b954b80e336517f93463a9b5f50f3d6.zip |
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kexi/formeditor/utils.cpp')
-rw-r--r-- | kexi/formeditor/utils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kexi/formeditor/utils.cpp b/kexi/formeditor/utils.cpp index b04222f3..a55f121d 100644 --- a/kexi/formeditor/utils.cpp +++ b/kexi/formeditor/utils.cpp @@ -131,8 +131,8 @@ HorWidgetList::~HorWidgetList() int HorWidgetList::compareItems(TQPtrCollection::Item item1, TQPtrCollection::Item item2) { - TQWidget *w1 = TQT_TQWIDGET(item1); - TQWidget *w2 = TQT_TQWIDGET(item2); + TQWidget *w1 = static_cast<TQWidget*>(item1); + TQWidget *w2 = static_cast<TQWidget*>(item2); return w1->mapTo(m_topLevelWidget, TQPoint(0,0)).x() - w2->mapTo(m_topLevelWidget, TQPoint(0,0)).x(); } @@ -150,8 +150,8 @@ VerWidgetList::~VerWidgetList() int VerWidgetList::compareItems(TQPtrCollection::Item item1, TQPtrCollection::Item item2) { - TQWidget *w1 = TQT_TQWIDGET(item1); - TQWidget *w2 = TQT_TQWIDGET(item2); + TQWidget *w1 = static_cast<TQWidget*>(item1); + TQWidget *w2 = static_cast<TQWidget*>(item2); int y1, y2; TQObject *page1 = 0; @@ -165,7 +165,7 @@ int VerWidgetList::compareItems(TQPtrCollection::Item item1, TQPtrCollection::It TabWidget *tw2 = KFormDesigner::findParent<KFormDesigner::TabWidget>(w2, "KFormDesigner::TabWidget", page2); if (tw1 && tw2 && tw1 == tw2 && page1 != page2) { // this sorts widgets by tabs there're put in - return tw1->indexOf(TQT_TQWIDGET(page1)) - tw2->indexOf(TQT_TQWIDGET(page2)); + return tw1->indexOf(static_cast<TQWidget*>(page1)) - tw2->indexOf(static_cast<TQWidget*>(page2)); } if (tw2) // special case |