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"));
|
setWindowIcon (QIcon (":icon.png"));
|
||||||
#endif
|
#endif
|
||||||
setWindowTitle ("Promoe - Medialib Window");
|
setWindowTitle ("Promoe - Medialib Window");
|
||||||
|
setWindowFlags (Qt::Dialog);
|
||||||
|
setAttribute (Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
XMMSHandler *xmmsh = XMMSHandler::getInstance ();
|
XMMSHandler *xmmsh = XMMSHandler::getInstance ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,8 @@ PlaylistWindow::PlaylistWindow (QWidget *parent) : QMainWindow (parent)
|
||||||
setWindowIcon (QIcon (":icon.png"));
|
setWindowIcon (QIcon (":icon.png"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setWindowFlags (Qt::FramelessWindowHint);
|
setWindowFlags (Qt::Dialog | Qt::FramelessWindowHint);
|
||||||
|
setAttribute (Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
s.beginGroup ("playlist");
|
s.beginGroup ("playlist");
|
||||||
if (!s.contains ("size")) {
|
if (!s.contains ("size")) {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@ SettingsWindow::SettingsWindow (QWidget *parent) : QMainWindow (parent)
|
||||||
setWindowIcon (QIcon (":icon.png"));
|
setWindowIcon (QIcon (":icon.png"));
|
||||||
#endif
|
#endif
|
||||||
setWindowTitle ("Promoe - Settings window");
|
setWindowTitle ("Promoe - Settings window");
|
||||||
|
setWindowFlags (Qt::Dialog);
|
||||||
|
setWindowModality (Qt::ApplicationModal);
|
||||||
|
setAttribute (Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
resize (400, 500);
|
resize (400, 500);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@ SkinChooser::SkinChooser (QWidget *parent) : QMainWindow (parent)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
setWindowIcon (QIcon (":icon.png"));
|
setWindowIcon (QIcon (":icon.png"));
|
||||||
#endif
|
#endif
|
||||||
|
setWindowFlags (Qt::Dialog);
|
||||||
|
setWindowModality (Qt::ApplicationModal);
|
||||||
|
setAttribute (Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
m_mw = dynamic_cast<MainWindow *>(parent);
|
m_mw = dynamic_cast<MainWindow *>(parent);
|
||||||
m_c = new QWidget (this);
|
m_c = new QWidget (this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue