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
d33f315b
Commit
d33f315b
authored
Nov 27, 2020
by
Christoffer Ackelman
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: navigator widgets now grab focus when realized.
parent
975fe7ab
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+6
-0
xtt/lib/flow/qt/flow_scroll_widget_qt.cqt
xtt/lib/flow/qt/flow_scroll_widget_qt.cqt
+2
-0
xtt/lib/glow/qt/glow_scroll_widget_qt.cqt
xtt/lib/glow/qt/glow_scroll_widget_qt.cqt
+2
-0
No files found.
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
d33f315b
...
...
@@ -65,6 +65,7 @@
#include "wb_wpkg_qt.h"
#include "wb_wtt_qt.h"
#include <QApplication>
#include <QCloseEvent>
#include <QDialogButtonBox>
#include <QInputDialog>
...
...
@@ -2294,6 +2295,11 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
pwr_mPrv_DevConfig | pwr_mPrv_DevPlc | pwr_mPrv_DevClass);
}
// setFocus() doesn't work since QApplication has not entered its
// main loop yet. Instead, add an event to the event queue and let
// QApplication process it later when it enters the main loop.
QApplication::sendEvent(toplevel, new QFocusEvent(QEvent::FocusIn));
*status = 1;
}
...
...
xtt/lib/flow/qt/flow_scroll_widget_qt.cqt
View file @
d33f315b
...
...
@@ -291,4 +291,6 @@ void QtScrollWidgetFlow::realize()
client_data, static_cast<flow_eCtxType>(ctxType));
}
}
setFocus();
}
\ No newline at end of file
xtt/lib/glow/qt/glow_scroll_widget_qt.cqt
View file @
d33f315b
...
...
@@ -293,4 +293,6 @@ void QtScrollWidgetGlow::realize()
client_data, static_cast<glow_eCtxType>(ctxType));
}
}
setFocus();
}
\ No newline at end of file
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