Diffstat (limited to 'core/launcher/mediummountgui.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/launcher/mediummountgui.cpp | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp index 6d60ce4..b0a1b10 100644 --- a/core/launcher/mediummountgui.cpp +++ b/core/launcher/mediummountgui.cpp | |||
@@ -144,7 +144,7 @@ void MediumMountGui::startGui() { | |||
144 | connect( CheckBoxAll, SIGNAL( clicked() ), this, SLOT( deactivateOthers() ) ); | 144 | connect( CheckBoxAll, SIGNAL( clicked() ), this, SLOT( deactivateOthers() ) ); |
145 | 145 | ||
146 | QVBox* dirBox = new QVBox( this ); | 146 | QVBox* dirBox = new QVBox( this ); |
147 | dirBox->setMargin( 4 ); | 147 | dirBox->setMargin( 5 ); |
148 | 148 | ||
149 | // select dirs | 149 | // select dirs |
150 | DirSelectText = new QLabel( dirBox, "DirSelectText" ); | 150 | DirSelectText = new QLabel( dirBox, "DirSelectText" ); |
@@ -154,6 +154,7 @@ void MediumMountGui::startGui() { | |||
154 | LineEdit1 = new QLineEdit( dirLineBox ); | 154 | LineEdit1 = new QLineEdit( dirLineBox ); |
155 | PushButton3 = new QPushButton( dirLineBox ); | 155 | PushButton3 = new QPushButton( dirLineBox ); |
156 | PushButton3->setText( tr( "Add" ) ); | 156 | PushButton3->setText( tr( "Add" ) ); |
157 | PushButton3->setFocus(); | ||
157 | 158 | ||
158 | // decision | 159 | // decision |
159 | DirSelectText_2 = new QLabel( dirBox ); | 160 | DirSelectText_2 = new QLabel( dirBox ); |
@@ -171,20 +172,9 @@ void MediumMountGui::startGui() { | |||
171 | CheckBoxAll->setChecked( checkmimeall ); | 172 | CheckBoxAll->setChecked( checkmimeall ); |
172 | deactivateOthers(); | 173 | deactivateOthers(); |
173 | 174 | ||
174 | QHBox* buttonBox = new QHBox( this ); | ||
175 | // buttons | ||
176 | quit = new QPushButton( buttonBox ); | ||
177 | quit->setFocus(); | ||
178 | quit->setText( tr( "Yes" ) ); | ||
179 | quit_2 = new QPushButton( buttonBox ); | ||
180 | quit_2->setText( tr( "No" ) ); | ||
181 | |||
182 | mainLayout->addWidget( GroupBox1 ); | 175 | mainLayout->addWidget( GroupBox1 ); |
183 | mainLayout->addWidget( dirBox ); | 176 | mainLayout->addWidget( dirBox ); |
184 | mainLayout->addWidget( buttonBox ); | 177 | mainLayout->addStretch( 0 ); |
185 | |||
186 | connect( quit, SIGNAL( clicked() ), this, SLOT( yesPressed() ) ); | ||
187 | connect( quit_2, SIGNAL( clicked() ), this, SLOT( noPressed() ) ); | ||
188 | } | 178 | } |
189 | 179 | ||
190 | 180 | ||
@@ -196,10 +186,10 @@ void MediumMountGui::deactivateOthers() { | |||
196 | CheckBoxImage->setEnabled( mod ); | 186 | CheckBoxImage->setEnabled( mod ); |
197 | } | 187 | } |
198 | 188 | ||
199 | void MediumMountGui::yesPressed() { | 189 | void MediumMountGui::accept() { |
200 | writeConfig( true ); | 190 | writeConfig( true ); |
201 | // and do something | 191 | // and do something |
202 | accept(); | 192 | QDialog::accept(); |
203 | } | 193 | } |
204 | 194 | ||
205 | 195 | ||
@@ -207,9 +197,9 @@ QStringList MediumMountGui::mimeTypes() { | |||
207 | return mimeTypeList; | 197 | return mimeTypeList; |
208 | } | 198 | } |
209 | 199 | ||
210 | void MediumMountGui::noPressed() { | 200 | void MediumMountGui::reject() { |
211 | writeConfig( false ); | 201 | writeConfig( false ); |
212 | reject(); | 202 | QDialog::reject(); |
213 | } | 203 | } |
214 | 204 | ||
215 | MediumMountGui::~MediumMountGui() { | 205 | MediumMountGui::~MediumMountGui() { |