Make configuration check reusable.

Instead of passing a parameter to decide if a dialog box should be shown pass a
pointer to the parent widget and make it static. This allows calling it from
outside while keeping the possibility to not show a warning.

Change-Id: I72fa53a7e8a83d527c22b698dfa434c24100ac29
This commit is contained in:
Dominik Riebeling 2012-02-14 20:51:49 +01:00
parent 9acd70288d
commit 3933afcc09
2 changed files with 19 additions and 19 deletions

View file

@ -40,6 +40,7 @@ class RbUtilQt : public QMainWindow
public:
RbUtilQt(QWidget *parent = 0);
static QList<QTranslator*> translators;
static bool chkConfig(QWidget *parent = 0);
private:
Ui::RbUtilQtFrm ui;
@ -58,7 +59,6 @@ class RbUtilQt : public QMainWindow
ProgressLoggerGui *logger;
ZipInstaller *installer;
QUrl proxy(void);
bool chkConfig(bool);
volatile bool m_installed;
volatile bool m_error;