summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Samir <[email protected]>2018-03-24 12:14:21 -0400
committerKurt Hindenburg <[email protected]>2018-03-25 09:59:18 -0400
commitfefd2e56c0875ece23e90de4b77d8e09c3c5577d (patch)
treee171b9d5d455994d393e098e071ce096e61516e8
parent3b79409e17b7d8ea11de3cb385cf9e95e34cf6a3 (diff)
Make the key binding editor dialog bigger
Summary: The first column in the key binding editor dialog usually has long lines of text, to improve usability set a minimum size of 480x430 for that dialog and an initial size of 500x500. Also set the initial width of that column to 300. Reviewers: #konsole, hindenburg Reviewed By: #konsole, hindenburg Subscribers: ngraham, #konsole Tags: #konsole Differential Revision: https://phabricator.kde.org/D11637 (cherry picked from commit bd560c563f16a9d14473607f09dfe7c3a6c490ee)
-rw-r--r--src/EditProfileDialog.cpp3
-rw-r--r--src/KeyBindingEditor.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp
index 974987d..0dd9af6 100644
--- a/src/EditProfileDialog.cpp
+++ b/src/EditProfileDialog.cpp
@@ -1218,6 +1218,9 @@ void EditProfileDialog::showKeyBindingEditor(bool isNewTranslator)
layout->addWidget(editor);
layout->addWidget(buttonBox);
dialog->setLayout(layout);
+ // see also the size set in the KeyBindingEditor constructor
+ dialog->setMinimumSize(480, 430);
+ dialog->resize(500, 500);
if (dialog->exec() == QDialog::Accepted) {
auto newTranslator = new KeyboardTranslator(*editor->translator());
diff --git a/src/KeyBindingEditor.cpp b/src/KeyBindingEditor.cpp
index 3b8f237..413ab18 100644
--- a/src/KeyBindingEditor.cpp
+++ b/src/KeyBindingEditor.cpp
@@ -52,6 +52,10 @@ KeyBindingEditor::KeyBindingEditor(QWidget *parent) :
_ui->keyBindingTable->setHorizontalHeaderLabels(labels);
_ui->keyBindingTable->horizontalHeader()->setStretchLastSection(true);
+
+ // see also the sizes set in EditProfileDialog::showKeyBindingEditor()
+ _ui->keyBindingTable->setColumnWidth(0, 300);
+
_ui->keyBindingTable->verticalHeader()->hide();
_ui->keyBindingTable->setSelectionBehavior(QAbstractItemView::SelectRows);