summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/mediummount/mainwindow.cc2
-rw-r--r--noncore/settings/mediummount/mainwindow.h2
-rw-r--r--noncore/settings/mediummount/mediumwidget.cc5
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;
/* TRANSLATOR MediumMountSetting::MainWindow */
-MainWindow::MainWindow( QWidget *parent, const char *name, bool modal, WFlags )
+MainWindow::MainWindow( QWidget *parent, const char *name, WFlags, bool modal )
: QDialog( parent, name, modal, WStyle_ContextHelp )
{
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 {
class MainWindow : public QDialog {
Q_OBJECT
public:
- MainWindow(QWidget *parent = 0, const char *name = 0 , bool modal = FALSE, WFlags = 0);
+ MainWindow(QWidget *parent = 0, const char *name = 0 , WFlags = 0, bool modal=true);
~MainWindow();
static QString appName() { return QString::fromLatin1("mediummount"); }
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,
const char *name )
: QWidget( parent, name )
{
- if(parent == 0){
- resize(QApplication::desktop()->width(), QApplication::desktop()->height() );
- }else{
- resize(parent->width(), parent->height() );
- }
m_path = path;
initGUI();
m_label->setPixmap(pix );