summaryrefslogtreecommitdiff
path: root/noncore/settings/mediummount/mediumwidget.cc
Unidiff
Diffstat (limited to 'noncore/settings/mediummount/mediumwidget.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/mediummount/mediumwidget.cc11
1 files changed, 3 insertions, 8 deletions
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 );
@@ -108,7 +103,7 @@ void MediumMountWidget::initGUI()
108 m_lblPath = new QLabel(tr("Limit search to:"), this ); 103 m_lblPath = new QLabel(tr("Limit search to:"), this );
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);
114 m_subList->setEditable(TRUE); 109 m_subList->setEditable(TRUE);
@@ -119,7 +114,7 @@ void MediumMountWidget::initGUI()
119 m_add->setText( tr("Add") ); 114 m_add->setText( tr("Add") );
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() ) );
125 connect(m_del, SIGNAL(clicked() ), 120 connect(m_del, SIGNAL(clicked() ),
@@ -128,7 +123,7 @@ void MediumMountWidget::initGUI()
128 m_box->addWidget(m_hboxAdd ); 123 m_box->addWidget(m_hboxAdd );
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
134 m_always = new QCheckBox( tr("Always check this medium"), this ); 129 m_always = new QCheckBox( tr("Always check this medium"), this );