rbutilQt: fix Dialogs, so they are modal.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14080 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2007-07-30 19:35:48 +00:00
parent 2e2f92c906
commit f358d4ad94
4 changed files with 7 additions and 3 deletions

View file

@ -53,6 +53,8 @@ Config::Config(QWidget *parent) : QDialog(parent)
ui.listLanguages->setSelectionMode(QAbstractItemView::SingleSelection); ui.listLanguages->setSelectionMode(QAbstractItemView::SingleSelection);
connect(ui.listLanguages, SIGNAL(itemSelectionChanged()), this, SLOT(updateLanguage())); connect(ui.listLanguages, SIGNAL(itemSelectionChanged()), this, SLOT(updateLanguage()));
this->setModal(true);
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept())); connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(abort())); connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(abort()));
connect(ui.radioNoProxy, SIGNAL(toggled(bool)), this, SLOT(setNoProxy(bool))); connect(ui.radioNoProxy, SIGNAL(toggled(bool)), this, SLOT(setNoProxy(bool)));

View file

@ -22,6 +22,7 @@
ProgressLoggerGui::ProgressLoggerGui(QObject* parent): ProgressloggerInterface(parent) ProgressLoggerGui::ProgressLoggerGui(QObject* parent): ProgressloggerInterface(parent)
{ {
downloadProgress = new QDialog(); downloadProgress = new QDialog();
downloadProgress->setModal(true);
dp.setupUi(downloadProgress); dp.setupUi(downloadProgress);
connect(dp.buttonAbort, SIGNAL(clicked()), this, SLOT(abort())); connect(dp.buttonAbort, SIGNAL(clicked()), this, SLOT(abort()));
} }

View file

@ -138,9 +138,10 @@ void RbUtilQt::downloadDone(int id, bool error)
void RbUtilQt::about() void RbUtilQt::about()
{ {
QDialog *window = new QDialog; QDialog *window = new QDialog(this);
Ui::aboutBox about; Ui::aboutBox about;
about.setupUi(window); about.setupUi(window);
window->setModal(true);
QFile licence(":/docs/gpl-2.0.html"); QFile licence(":/docs/gpl-2.0.html");
licence.open(QIODevice::ReadOnly); licence.open(QIODevice::ReadOnly);