Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
8d79bbf6
Commit
8d79bbf6
authored
Nov 30, 2020
by
Christoffer Ackelman
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Shortcuts in the GE widget should work even if the widget has no menubar.
parent
0a5ead5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
wb/lib/wb/qt/wb_wge_qt.cqt
wb/lib/wb/qt/wb_wge_qt.cqt
+6
-0
xtt/lib/xtt/qt/xtt_ge_qt.cqt
xtt/lib/xtt/qt/xtt_ge_qt.cqt
+6
-0
No files found.
wb/lib/wb/qt/wb_wge_qt.cqt
View file @
8d79bbf6
...
...
@@ -45,6 +45,7 @@
#include <QApplication>
#include <QMenuBar>
#include <QMessageBox>
#include <QShortcut>
#include <QVBoxLayout>
void WGeQtWidget::focusInEvent(QFocusEvent* event)
...
...
@@ -246,6 +247,11 @@ WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename,
"$pwr_exe/xtt_help.png");
graph_form->setMenuBar(menu_bar);
} else {
new QShortcut(QKeySequence("CTRL+W"), toplevel, SLOT(close()));
new QShortcut(QKeySequence("CTRL+I"), toplevel, SLOT(activate_zoom_in()));
new QShortcut(QKeySequence("CTRL+O"), toplevel, SLOT(activate_zoom_out()));
new QShortcut(QKeySequence("CTRL+H"), toplevel, SLOT(activate_help()));
}
add_expanding(graph_form, grow_widget);
...
...
xtt/lib/xtt/qt/xtt_ge_qt.cqt
View file @
8d79bbf6
...
...
@@ -45,6 +45,7 @@
#include "xtt_xnav.h"
#include <QMenuBar>
#include <QShortcut>
#include <QVBoxLayout>
void XttGeQtWidget::focusInEvent(QFocusEvent* event)
...
...
@@ -326,6 +327,11 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
"$pwr_exe/xtt_help.png");
graph_form->setMenuBar(menu_bar);
} else {
new QShortcut(QKeySequence("CTRL+W"), toplevel, SLOT(close()));
new QShortcut(QKeySequence("CTRL+I"), toplevel, SLOT(activate_zoom_in()));
new QShortcut(QKeySequence("CTRL+O"), toplevel, SLOT(activate_zoom_out()));
new QShortcut(QKeySequence("CTRL+H"), toplevel, SLOT(activate_help()));
}
add_expanding(graph_form, grow_widget);
...
...
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