Commit fefd2e56 authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg

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 bd560c56)
parent 3b79409e
......@@ -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());
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment