summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore 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.cc11
3 files changed, 5 insertions, 10 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
@@ -17,5 +17,5 @@ using namespace MediumMountSetting;
17/* TRANSLATOR MediumMountSetting::MainWindow */ 17/* TRANSLATOR MediumMountSetting::MainWindow */
18 18
19MainWindow::MainWindow( QWidget *parent, const char *name, bool modal, WFlags ) 19MainWindow::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
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
@@ -16,5 +16,5 @@ namespace MediumMountSetting {
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"); }
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
@@ -32,9 +32,4 @@ MediumMountWidget::MediumMountWidget(const QString &path,
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();
@@ -109,5 +104,5 @@ void MediumMountWidget::initGUI()
109 m_box->addWidget( m_lblPath ); 104 m_box->addWidget( m_lblPath );
110 105
111 106
112 m_subList = new QComboBox(FALSE,this,"docFolderList"); 107 m_subList = new QComboBox(FALSE,this,"docFolderList");
113 m_subList->setDuplicatesEnabled(FALSE); 108 m_subList->setDuplicatesEnabled(FALSE);
@@ -120,5 +115,5 @@ void MediumMountWidget::initGUI()
120 m_del = new QPushButton(m_hboxAdd); 115 m_del = new QPushButton(m_hboxAdd);
121 m_del->setText(tr("Remove")); 116 m_del->setText(tr("Remove"));
122 117
123 connect(m_add, SIGNAL(clicked() ), 118 connect(m_add, SIGNAL(clicked() ),
124 this, SLOT(slotAdd() ) ); 119 this, SLOT(slotAdd() ) );
@@ -129,5 +124,5 @@ void MediumMountWidget::initGUI()
129 m_scan_all_check = new QCheckBox( tr("Scan whole media"), this ); 124 m_scan_all_check = new QCheckBox( tr("Scan whole media"), this );
130 connect(m_scan_all_check,SIGNAL(stateChanged(int)),this,SLOT(slotScanAllChanged(int))); 125 connect(m_scan_all_check,SIGNAL(stateChanged(int)),this,SLOT(slotScanAllChanged(int)));
131 126
132 m_box->addWidget(m_scan_all_check); 127 m_box->addWidget(m_scan_all_check);
133 128