Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
02d0ede3
Commit
02d0ede3
authored
Apr 17, 2009
by
con
Browse files
Two-keystroke menu shortcuts do not work on Mac.
parent
85f340e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
02d0ede3
...
...
@@ -334,31 +334,41 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) :
m_d
->
m_splitAction
=
new
QAction
(
tr
(
"Split"
),
this
);
cmd
=
am
->
registerAction
(
m_d
->
m_splitAction
,
Constants
::
SPLIT
,
editManagerContext
);
#ifndef Q_OS_MAC
cmd
->
setDefaultKeySequence
(
QKeySequence
(
tr
(
"Ctrl+E,2"
)));
#endif
mwindow
->
addAction
(
cmd
,
Constants
::
G_WINDOW_SPLIT
);
connect
(
m_d
->
m_splitAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
split
()));
m_d
->
m_splitSideBySideAction
=
new
QAction
(
tr
(
"Split Side by Side"
),
this
);
cmd
=
am
->
registerAction
(
m_d
->
m_splitSideBySideAction
,
Constants
::
SPLIT_SIDE_BY_SIDE
,
editManagerContext
);
#ifndef Q_OS_MAC
cmd
->
setDefaultKeySequence
(
QKeySequence
(
tr
(
"Ctrl+E,3"
)));
#endif
mwindow
->
addAction
(
cmd
,
Constants
::
G_WINDOW_SPLIT
);
connect
(
m_d
->
m_splitSideBySideAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
splitSideBySide
()));
m_d
->
m_removeCurrentSplitAction
=
new
QAction
(
tr
(
"Remove Current Split"
),
this
);
cmd
=
am
->
registerAction
(
m_d
->
m_removeCurrentSplitAction
,
Constants
::
REMOVE_CURRENT_SPLIT
,
editManagerContext
);
#ifndef Q_OS_MAC
cmd
->
setDefaultKeySequence
(
QKeySequence
(
tr
(
"Ctrl+E,0"
)));
#endif
mwindow
->
addAction
(
cmd
,
Constants
::
G_WINDOW_SPLIT
);
connect
(
m_d
->
m_removeCurrentSplitAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
removeCurrentSplit
()));
m_d
->
m_removeAllSplitsAction
=
new
QAction
(
tr
(
"Remove All Splits"
),
this
);
cmd
=
am
->
registerAction
(
m_d
->
m_removeAllSplitsAction
,
Constants
::
REMOVE_ALL_SPLITS
,
editManagerContext
);
#ifndef Q_OS_MAC
cmd
->
setDefaultKeySequence
(
QKeySequence
(
tr
(
"Ctrl+E,1"
)));
#endif
mwindow
->
addAction
(
cmd
,
Constants
::
G_WINDOW_SPLIT
);
connect
(
m_d
->
m_removeAllSplitsAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
removeAllSplits
()));
m_d
->
m_gotoOtherSplitAction
=
new
QAction
(
tr
(
"Goto Other Split"
),
this
);
cmd
=
am
->
registerAction
(
m_d
->
m_gotoOtherSplitAction
,
Constants
::
GOTO_OTHER_SPLIT
,
editManagerContext
);
#ifndef Q_OS_MAC
cmd
->
setDefaultKeySequence
(
QKeySequence
(
tr
(
"Ctrl+E,o"
)));
#endif
mwindow
->
addAction
(
cmd
,
Constants
::
G_WINDOW_SPLIT
);
connect
(
m_d
->
m_gotoOtherSplitAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
gotoOtherSplit
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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