Set windows as Dialogs instead of MainWindows.

This commit is contained in:
Tobias Rundstrom 2006-03-06 18:28:36 -03:00
parent b7d5afc0ca
commit 8fb689d163
4 changed files with 12 additions and 3 deletions

View file

@ -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);