Let Qt keep track of top-level windows.

This commit is contained in:
Jim Evins
2016-05-15 16:33:02 -04:00
parent 1819a02d50
commit f920965668
3 changed files with 5 additions and 23 deletions
-17
View File
@@ -52,12 +52,6 @@
#include "Help.h"
///
/// Static window list
///
QList<MainWindow*> MainWindow::smWindowList;
///
/// Constructor
///
@@ -146,8 +140,6 @@ MainWindow::MainWindow()
#endif
readSettings();
smWindowList.push_back( this );
}
@@ -156,7 +148,6 @@ MainWindow::MainWindow()
///
MainWindow::~MainWindow()
{
smWindowList.removeOne( this );
}
@@ -208,14 +199,6 @@ bool MainWindow::isEmpty() const
return mModel == 0;
}
///
/// Get window list
///
QList<MainWindow*> MainWindow::windowList()
{
return smWindowList;
}
///
/// Close Event Handler