summaryrefslogtreecommitdiff
path: root/core/launcher/mediummountgui.cpp
Side-by-side diff
Diffstat (limited to 'core/launcher/mediummountgui.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/mediummountgui.cpp24
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
@@ -146,3 +146,3 @@ void MediumMountGui::startGui() {
QVBox* dirBox = new QVBox( this );
- dirBox->setMargin( 4 );
+ dirBox->setMargin( 5 );
@@ -156,2 +156,3 @@ void MediumMountGui::startGui() {
PushButton3->setText( tr( "Add" ) );
+ PushButton3->setFocus();
@@ -173,16 +174,5 @@ void MediumMountGui::startGui() {
- QHBox* buttonBox = new QHBox( this );
- // buttons
- quit = new QPushButton( buttonBox );
- quit->setFocus();
- quit->setText( tr( "Yes" ) );
- quit_2 = new QPushButton( buttonBox );
- quit_2->setText( tr( "No" ) );
-
mainLayout->addWidget( GroupBox1 );
mainLayout->addWidget( dirBox );
- mainLayout->addWidget( buttonBox );
-
- connect( quit, SIGNAL( clicked() ), this, SLOT( yesPressed() ) );
- connect( quit_2, SIGNAL( clicked() ), this, SLOT( noPressed() ) );
+ mainLayout->addStretch( 0 );
}
@@ -198,6 +188,6 @@ void MediumMountGui::deactivateOthers() {
-void MediumMountGui::yesPressed() {
+void MediumMountGui::accept() {
writeConfig( true );
// and do something
- accept();
+ QDialog::accept();
}
@@ -209,5 +199,5 @@ QStringList MediumMountGui::mimeTypes() {
-void MediumMountGui::noPressed() {
+void MediumMountGui::reject() {
writeConfig( false );
- reject();
+ QDialog::reject();
}