Commit Graph

12 Commits

Author SHA1 Message Date
Martchus 2ed7f122fe Add basic action to allow removing related ignore patterns
This is probably not a very useful action but a first step to manipulate
ignore patterns based on a selection in the file browser. It has not been
tested very well but the whole feature is behind a feature flag so that is
ok for now.
2024-05-31 16:13:05 +02:00
Martchus 78575c088c Fix very bad contrast of status text on selected view items with Windows styles 2024-05-26 00:55:11 +02:00
Martchus 29251fe422 Avoid ugly vertical lines in dir/dev view with Windows 11 style
This change techically affects all styles but it seems only the Windows 11
style draws these lines so noisily anyway.
2024-05-25 23:56:48 +02:00
Martchus 97f6cfcf76 Remove unused include in `helper.h` 2024-04-12 02:29:24 +02:00
Martchus 15b60102a1 Workaround Qt bug in Windows 11 style
Pass a widget when invoking `QStyle::drawControl()`; the Windows 11 style
uses the widget unconditionally.

Considering the documentation explicitly states `The widget argument is
optional` and the default value for the function argument is `nullptr` this
is supposedly a bug in Qt.
2024-04-12 02:29:02 +02:00
Martchus da3ad3347d Fix remaining problems preventing unity builds to work
* Avoid multiple definitions of `centerObj()`; this was very bad anyway
* Include `c++utilities/tests/testutils.h` upfront so the formatting
  operators are included before CppUnit
2024-01-30 23:11:00 +01:00
Martchus bacca0241a Fix build with Qt 6 (beta1) 2020-10-23 17:04:35 +02:00
Martchus 57e9865ace Sort devices by name 2020-10-20 19:36:02 +02:00
Martchus 3e1beaa11d Sort directories by name/ID
* Use the name as sorting criteria and fall back to the ID if there's no
  name
* Use new SyncthingSortFilterDirectoryModel also for Plasmoid's filtering
* See https://github.com/Martchus/syncthingtray/issues/75
2020-10-18 15:48:02 +02:00
Martchus d0f27bf327 Add missing include for std::invoke 2020-10-13 13:41:03 +02:00
Martchus aac87621dc Streamline context menus of regular tray application and Plasmoid
* Support triggering actions via the context menu in the regular tray like
  it is already possible in the Plasmoid
* Support copying via the context menu in the Plasmoid like it is already
  possible in the regular tray
* Reduce repetition of coding patterns using templates
2020-10-07 21:42:50 +02:00
Martchus 13e0732168 Show context menu on recent changes view 2020-01-23 20:07:11 +01:00