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
SDK
KCacheGrind
Commits
838331d1
Commit
838331d1
authored
Sep 16, 2020
by
Calvin Buckley
🤔
Browse files
Close in menu so ^W works as expected
parent
9135ad7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
qcachegrind/qcgtoplevel.cpp
View file @
838331d1
...
...
@@ -353,6 +353,11 @@ void QCGTopLevel::createActions()
_openAction
->
setStatusTip
(
tr
(
"Open profile data file"
));
connect
(
_openAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
load
()));
_closeAction
=
new
QAction
(
tr
(
"&Close"
),
this
);
_closeAction
->
setShortcuts
(
QKeySequence
::
Close
);
_closeAction
->
setStatusTip
(
tr
(
"Close the current window"
));
connect
(
_closeAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
close
()));
_addAction
=
new
QAction
(
tr
(
"&Add..."
),
this
);
_addAction
->
setStatusTip
(
tr
(
"Add profile data to current window"
));
connect
(
_addAction
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
add
()));
...
...
@@ -582,6 +587,8 @@ void QCGTopLevel::createMenu()
fileMenu
->
addSeparator
();
fileMenu
->
addAction
(
_exportAction
);
fileMenu
->
addSeparator
();
fileMenu
->
addAction
(
_closeAction
);
fileMenu
->
addSeparator
();
fileMenu
->
addAction
(
_exitAction
);
QMenu
*
layoutMenu
=
new
QMenu
(
tr
(
"&Layout"
),
this
);
...
...
qcachegrind/qcgtoplevel.h
View file @
838331d1
...
...
@@ -224,7 +224,7 @@ private:
QAction
*
_cyclesToggleAction
,
*
_percentageToggleAction
;
QAction
*
_expandedToggleAction
,
*
_hideTemplatesToggleAction
;
QAction
*
_primaryMenuAction
,
*
_secondaryMenuAction
;
QAction
*
_groupingMenuAction
;
QAction
*
_groupingMenuAction
,
*
_closeAction
;
QAction
*
_splittedToggleAction
,
*
_splitDirectionToggleAction
;
QAction
*
_layoutNext
,
*
_layoutPrev
,
*
_layoutRemove
,
*
_layoutDup
;
QAction
*
_layoutRestore
,
*
_layoutSave
;
...
...
Write
Preview
Supports
Markdown
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