Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KCalc
Commits
f4f095a6
Commit
f4f095a6
authored
Jun 24, 2021
by
Ahmad Samir
Browse files
Port to KXMLGUIFactory::showConfigureShortcutsDialog()
parent
945ab22f
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcalc.cpp
View file @
f4f095a6
...
...
@@ -37,6 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QShortcut>
#include <QStyle>
#include <kxmlgui_version.h>
#include <KAboutData>
#include <KAcceleratorManager>
#include <KActionCollection>
...
...
@@ -212,7 +213,12 @@ void KCalculator::setupMainActions()
connect
(
action_bitset_show_
,
&
KToggleAction
::
toggled
,
this
,
&
KCalculator
::
slotBitsetshow
);
KStandardAction
::
preferences
(
this
,
SLOT
(
showSettings
()),
actionCollection
());
#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 84, 0)
KStandardAction
::
keyBindings
(
guiFactory
(),
&
KXMLGUIFactory
::
showConfigureShortcutsDialog
,
actionCollection
());
#else
KStandardAction
::
keyBindings
(
guiFactory
(),
SLOT
(
configureShortcuts
()),
actionCollection
());
#endif
}
//------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment