diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:42:03 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-15 20:38:03 +0900 |
commit | 3ec2ac7ee5d10c5bbc2d4d1af67c5be874f985a5 (patch) | |
tree | e9a8c6f5ad24556b5c2bc95ccc83dca76d2f19d1 /src/modules/options/instances.cpp | |
parent | 0130e6d75affbd5fb76eb3fde0f5a7a0e986c830 (diff) | |
download | kvirc-3ec2ac7ee5d10c5bbc2d4d1af67c5be874f985a5.tar.gz kvirc-3ec2ac7ee5d10c5bbc2d4d1af67c5be874f985a5.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/options/instances.cpp')
-rw-r--r-- | src/modules/options/instances.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/options/instances.cpp b/src/modules/options/instances.cpp index 5a4eba38..a91cf149 100644 --- a/src/modules/options/instances.cpp +++ b/src/modules/options/instances.cpp @@ -3489,7 +3489,7 @@ void KviOptionsInstanceManager::cleanup(KviModule * m) void KviOptionsInstanceManager::widgetDestroyed() { - KviOptionsWidgetInstanceEntry * e = findInstanceEntry(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())),m_pInstanceTree); + KviOptionsWidgetInstanceEntry * e = findInstanceEntry(TQT_TQOBJECT(sender()),m_pInstanceTree); if(e)e->pWidget = 0; if(g_iOptionWidgetInstances > 0)g_iOptionWidgetInstances--; @@ -3504,7 +3504,7 @@ KviOptionsWidget * KviOptionsInstanceManager::getInstance(KviOptionsWidgetInstan g_iOptionWidgetInstances++; connect(e->pWidget,TQT_SIGNAL(destroyed()),this,TQT_SLOT(widgetDestroyed())); } - if(TQT_BASE_OBJECT(e->pWidget->parent()) != TQT_BASE_OBJECT(par)) + if(e->pWidget->parent() != par) { TQWidget * oldPar = (TQWidget *)e->pWidget->parent(); e->pWidget->reparent(par,TQPoint(0,0)); @@ -3552,7 +3552,7 @@ KviOptionsWidgetInstanceEntry * KviOptionsInstanceManager::findInstanceEntry(con { for(KviOptionsWidgetInstanceEntry * e = l->first();e;e = l->next()) { - if(TQT_BASE_OBJECT_CONST(ptr) == TQT_BASE_OBJECT(e->pWidget))return e; + if(ptr == e->pWidget)return e; if(e->pChildList) { KviOptionsWidgetInstanceEntry * e2 = findInstanceEntry(ptr,e->pChildList); |