Changeset View
Changeset View
Standalone View
Standalone View
kcms/standard_actions/standard_actions_module.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 54 | StandardActionsModule::StandardActionsModule( | |||
---|---|---|---|---|---|
63 | 63 | | |||
64 | // Configure the KCM | 64 | // Configure the KCM | ||
65 | KCModule::setButtons(KCModule::Buttons(KCModule::Default | KCModule::Apply | KCModule::Help)); | 65 | KCModule::setButtons(KCModule::Buttons(KCModule::Default | KCModule::Apply | KCModule::Help)); | ||
66 | 66 | | |||
67 | // Create and configure the editor | 67 | // Create and configure the editor | ||
68 | m_editor = new KShortcutsEditor(this, KShortcutsEditor::WidgetAction | KShortcutsEditor::WindowAction | KShortcutsEditor::ApplicationAction); // there will be no global actions, so make sure that column is hidden | 68 | m_editor = new KShortcutsEditor(this, KShortcutsEditor::WidgetAction | KShortcutsEditor::WindowAction | KShortcutsEditor::ApplicationAction); // there will be no global actions, so make sure that column is hidden | ||
69 | connect(m_editor, &KShortcutsEditor::keyChange, this, &StandardActionsModule::keyChanged); | 69 | connect(m_editor, &KShortcutsEditor::keyChange, this, &StandardActionsModule::keyChanged); | ||
70 | 70 | | |||
71 | // Give the editor a sane minimum size so that the KCMshell window isn't tiny | ||||
72 | m_editor->setMinimumSize(700, 540); | ||||
73 | | ||||
cfeck: `setMinimumSize()` | |||||
71 | // Make a layout | 74 | // Make a layout | ||
72 | QVBoxLayout *global = new QVBoxLayout; | 75 | QVBoxLayout *global = new QVBoxLayout; | ||
73 | global->addWidget(m_editor); | 76 | global->addWidget(m_editor); | ||
74 | setLayout(global); | 77 | setLayout(global); | ||
75 | } | 78 | } | ||
76 | 79 | | |||
77 | 80 | | |||
78 | StandardActionsModule::~StandardActionsModule() | 81 | StandardActionsModule::~StandardActionsModule() | ||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |
setMinimumSize()