|
|
|
@ -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);
|
|
|
|
|