}
else if(!myNoteBook->isVisible()){
myNoteBook->Init(aStudy);
+ myNoteBook->adjustSize();
+ myNoteBook->move((int)(desktop()->x() + desktop()->width()/2 - myNoteBook->frameGeometry().width()/2),
+ (int)(desktop()->y() + desktop()->height()/2 - myNoteBook->frameGeometry().height()/2));
}
myNoteBook->show();
}
QList<SUIT_Application*> aList = SUIT_Session::session()->applications();
int anIndex = aList.indexOf( app );
+ //Store position and size of the this dialog
+ int aW = width();
+ int aH = height();
+ int aX = x();
+ int aY = y();
// Disconnect dialog from application desktop in case if:
// 1) Application is not the first application in the session
setParent( app->desktop(), Qt::Dialog );
app->setNoteBook(this);
}
+ //Set position and size of the this dialog
+ resize( aW, aH );
+ move( aX, aY );
show();
}