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:
parent
2e2f92c906
commit
f358d4ad94
4 changed files with 7 additions and 3 deletions
|
@ -53,6 +53,8 @@ Config::Config(QWidget *parent) : QDialog(parent)
|
|||
ui.listLanguages->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
connect(ui.listLanguages, SIGNAL(itemSelectionChanged()), this, SLOT(updateLanguage()));
|
||||
|
||||
this->setModal(true);
|
||||
|
||||
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
|
||||
connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(abort()));
|
||||
connect(ui.radioNoProxy, SIGNAL(toggled(bool)), this, SLOT(setNoProxy(bool)));
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
ProgressLoggerGui::ProgressLoggerGui(QObject* parent): ProgressloggerInterface(parent)
|
||||
{
|
||||
downloadProgress = new QDialog();
|
||||
downloadProgress->setModal(true);
|
||||
dp.setupUi(downloadProgress);
|
||||
connect(dp.buttonAbort, SIGNAL(clicked()), this, SLOT(abort()));
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "progressloggerinterface.h"
|
||||
#include "ui_installprogressfrm.h"
|
||||
|
||||
class ProgressLoggerGui :public ProgressloggerInterface
|
||||
class ProgressLoggerGui :public ProgressloggerInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
|
@ -138,10 +138,11 @@ void RbUtilQt::downloadDone(int id, bool error)
|
|||
|
||||
void RbUtilQt::about()
|
||||
{
|
||||
QDialog *window = new QDialog;
|
||||
QDialog *window = new QDialog(this);
|
||||
Ui::aboutBox about;
|
||||
about.setupUi(window);
|
||||
|
||||
window->setModal(true);
|
||||
|
||||
QFile licence(":/docs/gpl-2.0.html");
|
||||
licence.open(QIODevice::ReadOnly);
|
||||
QTextStream c(&licence);
|
||||
|
|
Loading…
Reference in a new issue