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
0ff83e88
Commit
0ff83e88
authored
Jun 07, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Added missing shortcuts to the ge widget.
parent
dfc95d5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
wb/lib/wb/qt/wb_wge_qt.cqt
wb/lib/wb/qt/wb_wge_qt.cqt
+7
-1
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 @
0ff83e88
...
...
@@ -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,
"system-help");
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);
...
...
@@ -264,4 +270,4 @@ WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename,
graph->set_nav_background_color();
}
}
\ No newline at end of file
}
xtt/lib/xtt/qt/xtt_ge_qt.cqt
View file @
0ff83e88
...
...
@@ -46,6 +46,7 @@
#include <QMenuBar>
#include <QResizeEvent>
#include <QShortcut>
#include <QVBoxLayout>
void XttGeQtWidget::focusInEvent(QFocusEvent* event)
...
...
@@ -390,6 +391,11 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
"system-help");
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