Commit graph

44 commits

Author SHA1 Message Date
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
23rd
8d5bdd6b7e Partially replaced code for using widgets as items in Ui::Menu. 2021-01-20 00:20:39 +03:00
23rd
6f097fc571 Removed obsolete ability to fill menu with slots. 2021-01-20 00:20:39 +03:00
John Preston
3a05cdc11e Allow PopupMenu not to reactivate parent window. 2020-11-30 14:13:54 +03:00
John Preston
d4c99701b5 Fix deprecation warnings on Qt 5.15.1. 2020-11-04 18:44:45 +03:00
John Preston
18ba60ec86 Support more options for popup menu. 2020-01-31 15:11:56 +03:00
John Preston
33ea14969e Use StartTranslucentPaint only on OpenGL widgets on macOS. 2020-01-29 18:54:25 +03:00
John Preston
da3b4704bf Fix activating window after popup menu. 2019-12-31 10:29:48 +03:00
John Preston
e6914d4649 Don't activate wrong window after popup menu. 2019-12-30 16:40:14 +03:00
John Preston
85c83003ca Initial commit. 2019-09-17 17:48:58 +03:00