Commit graph

59 commits

Author SHA1 Message Date
John Preston
19193b3c7b Clear last separator in geometry prepare. 2024-05-10 14:09:33 +04:00
Ilya Fedin
476d751251 Let Wayland to use QGuiApplication::screenAt
Looks like it works correctly nowadays
2024-03-28 10:09:09 +04:00
Ilya Fedin
a8b24e6f6f Fix a crash with QHighDpiScaling 2023-12-05 21:06:33 +04:00
John Preston
cd4e9d378c Allow to use ForceFullRepaintSync on Linux. 2023-11-22 12:17:32 +04:00
Ilya Fedin
1d1c524b2c Use setFixedSize for popup menu and tooltip 2023-11-21 09:08:01 +04:00
Ilya Fedin
89d664b6f7 Use setFixedSize instead of set{Minimum,Maximum}Size combo 2023-11-21 09:08:01 +04:00
John Preston
d28afffcb9 Workaround menu click-through on macOS 14.1. 2023-11-07 12:39:17 +04:00
Ilya Fedin
ea4c67408e Revert "Workaround Wayland popup menu bug."
This reverts commit 8db6dcf125.
2023-09-26 12:11:33 +04:00
Ilya Fedin
a33bd4e0a5 Fix QApplicationPrivate::translateRawTouchEvent Qt version check 2023-09-22 08:30:49 +04:00
Ilya Fedin
bcf88b9065 Fix window extents terminology
Extents is a synonym of size but we're setting not window size.
2023-08-29 07:47:50 +02:00
John Preston
8db6dcf125 Workaround Wayland popup menu bug.
When hiding a child popup first the app receives ApplicationDeactivate
event and in a short time (a couple of ms) ApplicationActivate.

But the first event hides all popups, so the parent popup gets closed too.

Delay handling of ApplicationDeactivate event in this specific case.
2023-07-12 22:05:12 +04:00
John Preston
83cab52cd6 Add access to scrollTop[Value] of PopupMenu. 2023-06-01 19:51:28 +04:00
John Preston
57143bfae1 Allow custom rounding radius for PopupMenu. 2023-06-01 19:51:09 +04:00
Ilya Fedin
be0067a8c7 Switch Wayland integration to the new type safe Qt API
This also makes it possible to get a more right seat/serial pair
2023-05-15 12:29:01 +04:00
John Preston
3185e6cd55 Fix possible stack overflow. 2023-03-17 20:46:09 +04:00
John Preston
6c01a81900 Allow opening popup menu shifted to the cursor. 2023-02-03 19:31:57 +04:00
John Preston
43e9128014 Report animate phases from PopupMenu. 2023-01-25 11:22:56 +04:00
John Preston
6e3cc8c769 Fix child geometry for mega-rich popup menus. 2023-01-19 12:32:24 +04:00
23rd
ff821bc3d7 Changed default behavior to trim last separator in popup menu. 2022-12-03 17:14:30 +03:00
23rd
6d7cb504ee Fixed ability of manual resizing of popup menu on macOS. 2022-11-29 14:10:50 +03:00
John Preston
18580e46a1 Handle touch events in PopupMenu. 2022-09-19 17:28:40 +04:00
John Preston
f420e302d7 Support external menu content without enabled compositing. 2022-09-02 16:55:12 +04:00
John Preston
a5766cb1f6 Allow inserting actions in the middle of Menu. 2022-08-31 17:50:54 +04:00
John Preston
eed9293c80 Add general RoundAreaWithShadow helper. 2022-08-18 17:30:59 +03:00
John Preston
a096628b4c Report PopupMenu appearing state. 2022-08-18 10:22:55 +03:00
John Preston
a76cdf7edf Allow arbitrary paddings around PopupMenu. 2022-08-17 21:03:06 +03:00
Ilya Fedin
6732aa70e9 Fix endless hiding state without compositing 2022-08-09 09:39:18 +04:00
Ilya Fedin
f5cdf4bdb8 Provide menu shadow size to the system 2022-08-08 09:14:04 +04:00
John Preston
9b0f4df007 Allow different style for child PopupMenu. 2022-07-27 13:48:32 +03:00
John Preston
8e0f928205 Fix build. 2022-06-21 00:57:35 +04:00
Ilya Fedin
8de2eee8cc Use QWindow::setScreen instead of QWidget::setScreen 2022-06-21 00:05:29 +04:00
John Preston
6abcbf773f Don't destroy PopupMenu non-queued if !_useTransparency. 2022-04-25 15:41:07 +04:00
Ilya Fedin
39176f619e Set screen for popup menu 2022-03-21 10:16:44 +04:00
Ilya Fedin
87c95b8fa7 Don't involve screen geometry for popup menus on Wayland 2022-03-18 20:04:27 +04:00
23rd
bf65a06735 Added ability to set vertical origin to Ui::PopupMenu. 2022-03-16 09:25:20 +03:00
John Preston
6ac846adbb Allow adding submenu actions with icons. 2021-12-09 21:55:35 +04:00
Ilya Fedin
64e40913df Use new Qt 6 adapters 2021-10-19 19:28:45 +04:00
John Preston
52718aa5db Scroll to the item selected by keyboard. 2021-09-09 16:02:26 +03:00
John Preston
40c0a11705 Support scroll inside PopupMenu. Draw shadow over. 2021-09-09 15:36:20 +03:00
23rd
beb09445d1 Appended references to const auto type in loop to prevent copying. 2021-09-08 14:01:07 +03:00
John Preston
f4cf3094c2 Force PopupMenu item selection when submenu is shown. 2021-09-08 13:46:34 +03:00
John Preston
6651d9f9b6 Allow adding submenu to PopupMenu on the fly. 2021-09-07 21:18:43 +03:00
23rd
01d10cbdbf Added workaround for submenu on macOS. 2021-09-06 13:19:32 +03:00
John Preston
b1d5ed4ab5 Always call raise() before activateWindow(). 2021-06-07 11:24:22 +04:00
Ilya Fedin
af41bff7e4 Build with QT_NO_KEYWORDS 2021-03-03 22:34:02 +04:00
23rd
43f09755e5 Moved key press handling from menu to menu item base. 2021-01-20 00:20:39 +03:00
23rd
a6a2a8dde0 Fixed crash in dropdown menu. 2021-01-20 00:20:39 +03:00
23rd
0c5135f671 Added ability to fill menu with custom widgets. 2021-01-20 00:20:39 +03:00
23rd
11a2b0f88d Added ability to check if menu has no items. 2021-01-20 00:20:39 +03:00
23rd
ec988db6c7 Replaced passing of numerous arguments with struct in menu. 2021-01-20 00:20:39 +03:00