John Preston
3698eb5382
Allow settings selected menu item.
2023-10-05 10:34:16 +04:00
23rd
aaa88be9d7
Fixed minimal height of menu item with multiline text.
2023-09-11 13:39:58 +03:00
John Preston
b3580f7987
Use FlatLabel::textMaxWidth.
2023-08-17 13:54:01 +02:00
23rd
db4419eb30
Switched preferred width of multiline menu item to fit icon height.
2023-03-22 21:42:16 +03:00
23rd
2996fb7030
Moved out menu item with multiline text to separated file.
2023-03-01 21:13:53 +03:00
John Preston
6c01a81900
Allow opening popup menu shifted to the cursor.
2023-02-03 19:31:57 +04:00
23rd
ff821bc3d7
Changed default behavior to trim last separator in popup menu.
2022-12-03 17:14:30 +03:00
John Preston
c3616927eb
Add CreateAddActionCallback for non-owned menu.
2022-11-01 19:28:06 +04:00
John Preston
89ae115a87
Add customized rounded ripple mask generators.
2022-10-03 15:10:49 +04:00
John Preston
73b6bc5e13
Implement animated spoilers.
2022-09-17 00:22:08 +04:00
John Preston
a5766cb1f6
Allow inserting actions in the middle of Menu.
2022-08-31 17:50:54 +04:00
John Preston
a76cdf7edf
Allow arbitrary paddings around PopupMenu.
2022-08-17 21:03:06 +03:00
John Preston
9b0f4df007
Allow different style for child PopupMenu.
2022-07-27 13:48:32 +03:00
John Preston
4ff70e7dff
Fix popup menu with variable item height.
2022-07-26 18:31:20 +03:00
John Preston
6ae122f1b2
Move Ui::Menu::MenuCallback and st::menuWithIcons here.
2022-06-03 18:05:09 +04:00
John Preston
2d7532bddd
Revert "Don't attach menu callback to QAction lifetime."
...
This reverts commit 4093d6605a .
2022-04-25 15:46:52 +04:00
John Preston
f128bd6d50
Revert "Fix repeated menu callback invocation."
...
This reverts commit 3a6708cdc5 .
2022-04-25 15:46:42 +04:00
John Preston
3a6708cdc5
Fix repeated menu callback invocation.
2022-04-21 15:18:18 +04:00
John Preston
4093d6605a
Don't attach menu callback to QAction lifetime.
2022-04-20 11:41:10 +04:00
23rd
e94d77847c
Added ability to override painting of action menu items.
2022-04-17 02:11:24 +03:00
23rd
1c14306aba
Revert "Added ability to set text color of menu item via QAction."
...
This reverts commit 8d181e53c5 .
2022-04-04 17:15:36 +03:00
23rd
8d181e53c5
Added ability to set text color of action menu item via QAction.
2022-03-31 00:43:29 +03:00
23rd
bc85f7baf3
Decomposed painting of text in Ui::Menu::Action.
2022-03-27 15:22:28 +03:00
23rd
8618812fd6
Added ability to disable menu hiding from items in easy way.
2022-02-03 01:01:31 +03:00
23rd
b81b9371e6
Removed TextParseRichText.
2022-01-08 08:24:06 +03:00
John Preston
a3b3745d7c
Allow click on a submenu-creating item.
2021-12-29 17:53:27 +03:00
John Preston
6ac846adbb
Allow adding submenu actions with icons.
2021-12-09 21:55:35 +04:00
John Preston
725654654d
Allow changing menu action icons in realtime.
2021-11-25 17:22:46 +04:00
Ilya Fedin
8e5d35229a
Simple replacements for Qt 6
...
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +04:00
John Preston
52718aa5db
Scroll to the item selected by keyboard.
2021-09-09 16:02:26 +03:00
John Preston
02c1bd5674
Allow enabling + selecting menu item under cursor.
2021-09-08 14:37:19 +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
372c576127
Fix build with some headers includes.
2021-04-23 21:36:08 +04:00
John Preston
d805dca4c7
Allow menu items to update height.
2021-03-11 19:17:01 +04:00
23rd
9d57ba47b0
Fixed adjustment of menu with single item.
2021-02-18 07:58:53 +03:00
John Preston
e2c940dcdc
Expose menu and menu style in PopupMenu.
2021-02-11 20:09:31 +04:00
23rd
e2633c4b6f
Fixed updating selected item when menu is moved.
2021-02-02 21:56:43 +03:00
23rd
4748986bf4
Returned ability to use right click for menu actions.
2021-01-30 10:55:17 +03:00
23rd
d94cb34219
Fixed adjustment of menu items by largest width.
2021-01-29 21:28:15 +03:00
John Preston
315a0457cf
Improve menu selection tracking.
2021-01-27 23:08:27 +04:00
23rd
bda12f2bec
Fixed resizing menu with wide items.
2021-01-25 17:21:26 +03:00
23rd
912f0b48a6
Fixed mouse selecting of menu item when it was deselected via keyboard.
2021-01-20 00:20:39 +03:00
23rd
70aa4833b7
Removed redundant property of mouse selection item from menu.
2021-01-20 00:20:39 +03:00
23rd
fedeac3f08
Removed redundant property of current selected item from menu.
2021-01-20 00:20:39 +03:00
23rd
0ce0766b5e
Removed redundant hasSubmenu property from menu item base.
2021-01-20 00:20:39 +03:00
23rd
43f09755e5
Moved key press handling from menu to menu item base.
2021-01-20 00:20:39 +03:00
23rd
5d74463bc9
Renamed contentWidth property to minWidth in menu items.
2021-01-20 00:20:39 +03:00
23rd
0d6a0d9cef
Moved mouse selecting of menu items to menu base item.
2021-01-20 00:20:39 +03:00
23rd
4325eb2f1b
Wrapped raw QAction pointers with not_null in menu items.
2021-01-20 00:20:39 +03:00