Set windows as Dialogs instead of MainWindows.
This commit is contained in:
parent
b7d5afc0ca
commit
8fb689d163
4 changed files with 12 additions and 3 deletions
|
@ -18,6 +18,8 @@ MedialibWindow::MedialibWindow (QWidget *parent) : QMainWindow (parent)
|
|||
setWindowIcon (QIcon (":icon.png"));
|
||||
#endif
|
||||
setWindowTitle ("Promoe - Medialib Window");
|
||||
setWindowFlags (Qt::Dialog);
|
||||
setAttribute (Qt::WA_DeleteOnClose);
|
||||
|
||||
XMMSHandler *xmmsh = XMMSHandler::getInstance ();
|
||||
|
||||
|
|
|
@ -86,7 +86,8 @@ PlaylistWindow::PlaylistWindow (QWidget *parent) : QMainWindow (parent)
|
|||
setWindowIcon (QIcon (":icon.png"));
|
||||
#endif
|
||||
|
||||
setWindowFlags (Qt::FramelessWindowHint);
|
||||
setWindowFlags (Qt::Dialog | Qt::FramelessWindowHint);
|
||||
setAttribute (Qt::WA_DeleteOnClose);
|
||||
|
||||
s.beginGroup ("playlist");
|
||||
if (!s.contains ("size")) {
|
||||
|
|
|
@ -10,7 +10,10 @@ SettingsWindow::SettingsWindow (QWidget *parent) : QMainWindow (parent)
|
|||
setWindowIcon (QIcon (":icon.png"));
|
||||
#endif
|
||||
setWindowTitle ("Promoe - Settings window");
|
||||
|
||||
setWindowFlags (Qt::Dialog);
|
||||
setWindowModality (Qt::ApplicationModal);
|
||||
setAttribute (Qt::WA_DeleteOnClose);
|
||||
|
||||
resize (400, 500);
|
||||
|
||||
QWidget *dummy = new QWidget (this);
|
||||
|
|
|
@ -13,7 +13,10 @@ SkinChooser::SkinChooser (QWidget *parent) : QMainWindow (parent)
|
|||
#ifndef _WIN32
|
||||
setWindowIcon (QIcon (":icon.png"));
|
||||
#endif
|
||||
|
||||
setWindowFlags (Qt::Dialog);
|
||||
setWindowModality (Qt::ApplicationModal);
|
||||
setAttribute (Qt::WA_DeleteOnClose);
|
||||
|
||||
m_mw = dynamic_cast<MainWindow *>(parent);
|
||||
m_c = new QWidget (this);
|
||||
setCentralWidget (m_c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue