syncthingtray/tray/gui
Martchus 6057b2cb2c Map context menu coordinates to top-level widget
Map context menu coordinates to top-level widget if the top-level
widget is a QMenu. Otherwise the context menu is not displayed at
the right position. Not sure why this workaround is required.

The check for QMenu is required. Otherwise the "windowed" mode
enabled via --windowed CLI argument would not work anymore. In
this mode the top-level window is a regular window.

Adding the window flags Qt::Sheet or Qt::Dialog to the QMenu
would help as well but that prevents closing the menu (see
https://github.com/Martchus/syncthingtray/issues/41).
2019-07-31 22:26:11 +02:00
..
devbuttonsitemdelegate.cpp Apply tidy after updating to clang-format 5.0.0 2017-09-17 21:48:15 +02:00
devbuttonsitemdelegate.h Use override 2018-10-10 21:26:46 +02:00
devview.cpp Map context menu coordinates to top-level widget 2019-07-31 22:26:11 +02:00
devview.h Fix positioning of context menus under Wayland 2019-07-20 18:56:20 +02:00
dirbuttonsitemdelegate.cpp Apply tidy after updating to clang-format 5.0.0 2017-09-17 21:48:15 +02:00
dirbuttonsitemdelegate.h Use override 2018-10-10 21:26:46 +02:00
dirview.cpp Map context menu coordinates to top-level widget 2019-07-31 22:26:11 +02:00
dirview.h Fix positioning of context menus under Wayland 2019-07-20 18:56:20 +02:00
downloaditemdelegate.cpp Don't use functions obsoleted in Qt 5.13.0 2019-06-25 14:37:14 +02:00
downloaditemdelegate.h Use override 2018-10-10 21:26:46 +02:00
downloadview.cpp Map context menu coordinates to top-level widget 2019-07-31 22:26:11 +02:00
downloadview.h Fix positioning of context menus under Wayland 2019-07-20 18:56:20 +02:00
trayicon.cpp Improve behavior under Wayland 2019-07-27 15:04:14 +02:00
trayicon.h Improve behavior under Wayland 2019-07-27 15:04:14 +02:00
traymenu.cpp Use a different parent for dialogs 2019-07-31 20:47:19 +02:00
traymenu.h Improve behavior under Wayland 2019-07-27 15:04:14 +02:00
traywidget.cpp Use a different parent for dialogs 2019-07-31 20:47:19 +02:00
traywidget.h Use a different parent for dialogs 2019-07-31 20:47:19 +02:00
traywidget.ui Show global statistics on widgets-based GUI 2019-02-18 00:35:32 +01:00