Changeset View
Changeset View
Standalone View
Standalone View
app/SettingsBase.cpp
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | |||||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | void SettingsBase::initToolBar() | 136 | void SettingsBase::initToolBar() | ||
137 | { | 137 | { | ||
138 | // Fill the toolbar with default actions | 138 | // Fill the toolbar with default actions | ||
139 | // Exit is the very last action | 139 | // Exit is the very last action | ||
140 | quitAction = actionCollection()->addAction( KStandardAction::Quit, QStringLiteral("quit_action"), this, SLOT(close()) ); | 140 | quitAction = actionCollection()->addAction( KStandardAction::Quit, QStringLiteral("quit_action"), this, SLOT(close()) ); | ||
141 | // Configure goes at the end | 141 | // Configure goes at the end | ||
142 | configureAction = actionCollection()->addAction( KStandardAction::Preferences, QStringLiteral("configure"), this, SLOT(configShow()) ); | 142 | configureAction = actionCollection()->addAction( KStandardAction::Preferences, QStringLiteral("configure"), this, SLOT(configShow()) ); | ||
143 | actionCollection()->setDefaultShortcut(configureAction, QKeySequence(Qt::CTRL + Qt::Key_M)); | 143 | configureAction->setText( i18n("Configure...") ); | ||
ngraham: lolwut
The default shortcut for "Configure" is {key Ctrl Shift comma} these days!
I never… | |||||
144 | configureAction->setText( i18n("Configure") ); | | |||
145 | // Help after it | 144 | // Help after it | ||
146 | initHelpMenu(); | 145 | initHelpMenu(); | ||
147 | configureAction->setIcon(QIcon::fromTheme(QStringLiteral("settings-configure"))); | 146 | configureAction->setIcon(QIcon::fromTheme(QStringLiteral("settings-configure"))); | ||
148 | 147 | | |||
149 | // Then a spacer so the search line-edit is kept separate | 148 | // Then a spacer so the search line-edit is kept separate | ||
150 | spacerAction = new QWidgetAction( this ); | 149 | spacerAction = new QWidgetAction( this ); | ||
151 | spacerAction->setDefaultWidget(spacerWidget); | 150 | spacerAction->setDefaultWidget(spacerWidget); | ||
152 | actionCollection()->addAction( QStringLiteral("spacer"), spacerAction ); | 151 | actionCollection()->addAction( QStringLiteral("spacer"), spacerAction ); | ||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |
lolwut
The default shortcut for "Configure" is Ctrl+⇧+comma these days!
I never even new this had a shortcut because only with your patch does it become visible. :)