Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
a88c68c0
Unverified
Commit
a88c68c0
authored
3 years ago
by
kirp
Browse files
Options
Downloads
Patches
Plain Diff
add shortcut Escape button for closing images issues 672
parent
6e8adc73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#1561
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dialogs/ImageOverlay.cpp
+2
-0
2 additions, 0 deletions
src/dialogs/ImageOverlay.cpp
src/dialogs/ImageOverlay.h
+2
-0
2 additions, 0 deletions
src/dialogs/ImageOverlay.h
with
4 additions
and
0 deletions
src/dialogs/ImageOverlay.cpp
+
2
−
0
View file @
a88c68c0
...
...
@@ -31,6 +31,8 @@ ImageOverlay::ImageOverlay(QPixmap image, QWidget *parent)
connect
(
this
,
SIGNAL
(
closing
()),
this
,
SLOT
(
close
()));
close_shortcut_
=
new
QShortcut
(
QKeySequence
(
Qt
::
Key_Escape
),
this
,
SLOT
(
close
()));
raise
();
}
...
...
This diff is collapsed.
Click to expand it.
src/dialogs/ImageOverlay.h
+
2
−
0
View file @
a88c68c0
...
...
@@ -8,6 +8,7 @@
#include
<QDialog>
#include
<QMouseEvent>
#include
<QPixmap>
#include
<QShortcut>
namespace
dialogs
{
...
...
@@ -32,5 +33,6 @@ private:
QRect
content_
;
QRect
close_button_
;
QRect
save_button_
;
QShortcut
*
close_shortcut_
;
};
}
// dialogs
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment