author | zecke <zecke> | 2004-09-19 19:11:07 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-19 19:11:07 (UTC) |
commit | 13fb1f618aef9c51918a72b6fe998aa4f09f2500 (patch) (unidiff) | |
tree | 30834690c490b11406d560181d595fec4e86b279 /noncore | |
parent | 4564befecf3df38911d48f216ab216faf93b9c1d (diff) | |
download | opie-13fb1f618aef9c51918a72b6fe998aa4f09f2500.zip opie-13fb1f618aef9c51918a72b6fe998aa4f09f2500.tar.gz opie-13fb1f618aef9c51918a72b6fe998aa4f09f2500.tar.bz2 |
Change the order of arguments on MainWindow c'tor
-rw-r--r-- | noncore/settings/mediummount/mainwindow.cc | 2 | ||||
-rw-r--r-- | noncore/settings/mediummount/mainwindow.h | 2 | ||||
-rw-r--r-- | noncore/settings/mediummount/mediumwidget.cc | 5 |
3 files changed, 2 insertions, 7 deletions
diff --git a/noncore/settings/mediummount/mainwindow.cc b/noncore/settings/mediummount/mainwindow.cc index eec786c..ebe1c94 100644 --- a/noncore/settings/mediummount/mainwindow.cc +++ b/noncore/settings/mediummount/mainwindow.cc | |||
@@ -16,7 +16,7 @@ using namespace MediumMountSetting; | |||
16 | 16 | ||
17 | /* TRANSLATOR MediumMountSetting::MainWindow */ | 17 | /* TRANSLATOR MediumMountSetting::MainWindow */ |
18 | 18 | ||
19 | MainWindow::MainWindow( QWidget *parent, const char *name, bool modal, WFlags ) | 19 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags, bool modal ) |
20 | : QDialog( parent, name, modal, WStyle_ContextHelp ) | 20 | : QDialog( parent, name, modal, WStyle_ContextHelp ) |
21 | 21 | ||
22 | { | 22 | { |
diff --git a/noncore/settings/mediummount/mainwindow.h b/noncore/settings/mediummount/mainwindow.h index 9649863..7bcb7f5 100644 --- a/noncore/settings/mediummount/mainwindow.h +++ b/noncore/settings/mediummount/mainwindow.h | |||
@@ -15,7 +15,7 @@ namespace MediumMountSetting { | |||
15 | class MainWindow : public QDialog { | 15 | class MainWindow : public QDialog { |
16 | Q_OBJECT | 16 | Q_OBJECT |
17 | public: | 17 | public: |
18 | MainWindow(QWidget *parent = 0, const char *name = 0 , bool modal = FALSE, WFlags = 0); | 18 | MainWindow(QWidget *parent = 0, const char *name = 0 , WFlags = 0, bool modal=true); |
19 | ~MainWindow(); | 19 | ~MainWindow(); |
20 | static QString appName() { return QString::fromLatin1("mediummount"); } | 20 | static QString appName() { return QString::fromLatin1("mediummount"); } |
21 | 21 | ||
diff --git a/noncore/settings/mediummount/mediumwidget.cc b/noncore/settings/mediummount/mediumwidget.cc index f39a6ed..ec5b9d5 100644 --- a/noncore/settings/mediummount/mediumwidget.cc +++ b/noncore/settings/mediummount/mediumwidget.cc | |||
@@ -31,11 +31,6 @@ MediumMountWidget::MediumMountWidget(const QString &path, | |||
31 | const char *name ) | 31 | const char *name ) |
32 | : QWidget( parent, name ) | 32 | : QWidget( parent, name ) |
33 | { | 33 | { |
34 | if(parent == 0){ | ||
35 | resize(QApplication::desktop()->width(), QApplication::desktop()->height() ); | ||
36 | }else{ | ||
37 | resize(parent->width(), parent->height() ); | ||
38 | } | ||
39 | m_path = path; | 34 | m_path = path; |
40 | initGUI(); | 35 | initGUI(); |
41 | m_label->setPixmap(pix ); | 36 | m_label->setPixmap(pix ); |