summaryrefslogtreecommitdiff
path: root/src/editexecutablesdialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-07 19:55:41 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-15 14:40:40 -0400
commit840dba26bacd044164d3236218e42f441433252c (patch)
tree37ed7b36535fce3820db517587247445ae9d4839 /src/editexecutablesdialog.cpp
parentfafdb146004401355db5245cc1f7c241c00cf991 (diff)
rework of the executables dialog to have a horizontal splitter and use a standard QDialogButtonBox
Diffstat (limited to 'src/editexecutablesdialog.cpp')
-rw-r--r--src/editexecutablesdialog.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/editexecutablesdialog.cpp b/src/editexecutablesdialog.cpp
index a3b2808a..559bc8f0 100644
--- a/src/editexecutablesdialog.cpp
+++ b/src/editexecutablesdialog.cpp
@@ -42,6 +42,9 @@ EditExecutablesDialog::EditExecutablesDialog(
, m_GamePlugin(game)
{
ui->setupUi(this);
+ ui->splitter->setSizes({200, 1});
+ ui->splitter->setStretchFactor(0, 0);
+ ui->splitter->setStretchFactor(1, 1);
refreshExecutablesWidget();
@@ -367,8 +370,10 @@ void EditExecutablesDialog::on_overwriteAppIDBox_toggled(bool checked)
ui->appIDOverwriteEdit->setEnabled(checked);
}
-void EditExecutablesDialog::on_closeButton_clicked()
+void EditExecutablesDialog::on_buttonBox_clicked(QAbstractButton*)
{
+ // there's only a close button for now, so the actual button doesn't matter
+
if (executableChanged()) {
QMessageBox::StandardButton res = QMessageBox::question(this, tr("Save Changes?"),
tr("You made changes to the current executable, do you want to save them?"),
@@ -382,7 +387,8 @@ void EditExecutablesDialog::on_closeButton_clicked()
refreshExecutablesWidget();
}
}
- this->accept();
+
+ accept();
}
void EditExecutablesDialog::on_executablesListBox_clicked(const QModelIndex &current)