From bbcbad23a1ca50923f454893dfb27aa43248eae5 Mon Sep 17 00:00:00 2001 From: fourtf Date: Thu, 13 Aug 2020 20:48:47 +0200 Subject: [PATCH] keybindings page in settings now scrolls --- src/widgets/settingspages/KeyboardSettingsPage.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/widgets/settingspages/KeyboardSettingsPage.cpp b/src/widgets/settingspages/KeyboardSettingsPage.cpp index b35abdd3f..7e7d479b0 100644 --- a/src/widgets/settingspages/KeyboardSettingsPage.cpp +++ b/src/widgets/settingspages/KeyboardSettingsPage.cpp @@ -12,7 +12,16 @@ KeyboardSettingsPage::KeyboardSettingsPage() auto layout = LayoutCreator(this).setLayoutType(); - auto form = layout.emplace().withoutMargin(); + auto scroll = layout.emplace(); + + this->setStyleSheet("QLabel, #container { background: #333 }"); + + auto form = new QFormLayout(this); + scroll->setWidgetResizable(true); + auto widget = new QWidget(); + widget->setLayout(form); + widget->setObjectName("container"); + scroll->setWidget(widget); form->addRow(new QLabel("Hold Ctrl"), new QLabel("Show resize handles")); form->addRow(new QLabel("Hold Ctrl + Alt"), @@ -28,6 +37,7 @@ KeyboardSettingsPage::KeyboardSettingsPage() form->addRow(new QLabel("Ctrl + W"), new QLabel("Close current split")); form->addRow(new QLabel("Ctrl + N"), new QLabel("Open current split as a popup")); + form->addRow(new QLabel("Ctrl + K"), new QLabel("Jump to split")); form->addRow(new QLabel("Ctrl + G"), new QLabel("Reopen last closed split"));