KeyboardHelper::~KeyboardHelper()
{
- qDebug("destroy keyboard helper");
+ /* do nothing */
}
KeyboardShortcut::~KeyboardShortcut()
{
- qDebug("destroy keyboard shortcut");
-
hwKeyShortcutMap.clear();
}
TouchScreenHelper::~TouchScreenHelper()
{
- qDebug("destroy touch screen helper");
-
if (mtTracker != NULL) {
delete mtTracker;
}
MainForm::~MainForm()
{
- qDebug("destroy main form");
-
if (displayType != NULL) {
delete displayType;
}
AdvancedMenuItem::~AdvancedMenuItem()
{
- qDebug("destroy an advanced menu item");
-
for (int i = 0; i < menuList.count(); i++) {
delete menuList.at(i);
}
ScaleMenuItem::~ScaleMenuItem()
{
- qDebug("destroy a scale menu item");
-
factorMap.clear();
}
ShellOpener::~ShellOpener()
{
- qDebug("destroy shell opener");
+ /* do nothing */
}
{
qDebug("qt5 destroy");
+ mainwindow->terminateDisplaySwapper();
+
/* write most recently used data information */
QString mruPath(
uiInfo->getVmDataPath() + QDir::separator() + GUI_PROPERTIES_FILE);
qt5App->flush();
mainwindow->closeController();
- mainwindow->terminateDisplaySwapper();
qt5App->processEvents(QEventLoop::ExcludeUserInputEvents);
qt5App->quit();
-#if 0
- //FIXME: It causes SIGSEGV now...
- delete mainwindow;
+ delete mainwindow; /* All child widgets will be deleted automatically
+ in accordance with parent-child chain. */
mainwindow = NULL;
-#endif
-
+ delete qt5App;
+ qt5App = NULL;
delete uiInfo;
uiInfo = NULL;
}
SkinBezelItem::~SkinBezelItem()
{
- qDebug("destroy bezel item");
+ /* do nothing */
}