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
ba96fda8
Commit
ba96fda8
authored
Oct 24, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed WTT popup location.
parent
33d596bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+2
-2
xtt/lib/cow/qt/cow_wow_qt.cqt
xtt/lib/cow/qt/cow_wow_qt.cqt
+1
-5
No files found.
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
ba96fda8
...
@@ -578,10 +578,10 @@ int WttQt::create_popup_menu(pwr_sAttrRef aref, int x, int y)
...
@@ -578,10 +578,10 @@ int WttQt::create_popup_menu(pwr_sAttrRef aref, int x, int y)
int sts;
int sts;
// Calculate position
// Calculate position
if (((WNavQt*)wnavnode)->brow_widget->
window()->isActiveWindow
()) {
if (((WNavQt*)wnavnode)->brow_widget->
hasFocus
()) {
CoWowQt::PopupPosition(
CoWowQt::PopupPosition(
((WNavQt*)wnavnode)->brow_widget, x, y, &popupmenu_x, &popupmenu_y);
((WNavQt*)wnavnode)->brow_widget, x, y, &popupmenu_x, &popupmenu_y);
} else if (((WNavQt*)wnav)->brow_widget->
window()->isActiveWindow
()) {
} else if (((WNavQt*)wnav)->brow_widget->
hasFocus
()) {
CoWowQt::PopupPosition(
CoWowQt::PopupPosition(
((WNavQt*)wnav)->brow_widget, x, y, &popupmenu_x, &popupmenu_y);
((WNavQt*)wnav)->brow_widget, x, y, &popupmenu_x, &popupmenu_y);
} else {
} else {
...
...
xtt/lib/cow/qt/cow_wow_qt.cqt
View file @
ba96fda8
...
@@ -571,16 +571,12 @@ void CoWowQt::PopupPosition(
...
@@ -571,16 +571,12 @@ void CoWowQt::PopupPosition(
QWidget* parent, int x_event, int y_event, int* x, int* y)
QWidget* parent, int x_event, int y_event, int* x, int* y)
{
{
QWidget* grandparent;
QWidget* grandparent;
int x1 = 0;
int y1 = 0;
QPoint p0((int)x_event, (int)y_event);
QPoint p0((int)x_event, (int)y_event);
grandparent = parent->parentWidget();
grandparent = parent->parentWidget();
while (!grandparent->isWindow()) {
while (!grandparent->isWindow()) {
if (!x1 && !y1 && (parent->geometry().x() || parent->geometry().y())) {
if (parent->geometry().x() || parent->geometry().y()) {
x1 = parent->geometry().x();
y1 = parent->geometry().y();
p0 = parent->mapToParent(p0);
p0 = parent->mapToParent(p0);
}
}
parent = grandparent;
parent = grandparent;
...
...
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