Commit Graph

77 Commits

Author SHA1 Message Date
Martchus f0eaf6e230 Fix rendering status icons in file browser under Windows 2024-06-23 22:30:14 +02:00
Martchus 96741945f3 Fix file browser getting stuck in endless loop on empty directories 2024-06-22 22:36:51 +02:00
Martchus 8caf7124fd Cache status icons in file model 2024-06-22 22:32:38 +02:00
Martchus 19a621a357 Fix typos, improve comments 2024-06-22 22:12:48 +02:00
Martchus 4bb23c84c3 Fix lookup of local items in filesystem model so it works on all levels
The local lookup needs to be done using the same depth as the database
lookup; otherwise not all levels are covered.
2024-06-22 21:59:52 +02:00
Martchus 7a47bc3e4f Fix build error under Fedora 38 with 6.4.3
This will hopefully fix:

```
[   56s] /home/abuild/rpmbuild/BUILD/syncthingtray-1718839812.fa5a7b5/redhat-linux-build/syncthingmodel/syncthingmodel-qt6_autogen/EWIEGA46WW/moc_syncthingfilemodel.cpp:177:5:   required from here
[   56s] /usr/include/qt6/QtCore/qmetatype.h:842:23: error: invalid application of 'sizeof' to incomplete type 'QAction'
[   56s]   842 |         static_assert(sizeof(T), "Type argument of Q_PROPERTY or Q_DECLARE_METATYPE(T*) must be fully defined");
```
2024-06-20 14:30:02 +02:00
Martchus dcba030e5d Consider stroke width and render size when using palette-based icon 2024-06-19 21:23:17 +02:00
Martchus f4641f23b5 Fix setting palette of icon manager 2024-06-18 19:30:11 +02:00
Martchus 30b1edbfb1 Use actual foreground color in theme-aware preset 2024-06-18 19:19:43 +02:00
Martchus a33271c293 Update translations 2024-06-17 23:05:20 +02:00
Martchus 250f4bf97d Add option to configure presets with transparent background depending on palette
Implements https://github.com/Martchus/syncthingtray/issues/270
2024-06-17 22:37:34 +02:00
Martchus 669d83f595 Adapt file model tests to recent changes 2024-06-14 23:58:23 +02:00
Martchus d6885624c0 Show where file is present in file browser 2024-06-14 23:46:53 +02:00
Martchus a7b2f0eaa6 Improve behavior of ignore pattern managment via file browser 2024-06-14 22:36:55 +02:00
Martchus 0729e180cb Improve dialog for confirming ignore pattern changes from file browser
* Show diff in proper text view with basic syntax highlighting
* Allow manual edits before applying changes
2024-06-14 21:23:35 +02:00
Martchus 1794bc5c81 Apply clang-format 2024-06-06 23:57:51 +02:00
Martchus f585647f8b Fix compilation against Qt 5 2024-06-03 11:56:41 +02:00
Martchus effb1de0f1 Add actions to specifically ignore/include items selected in file browser 2024-06-02 15:33:44 +02:00
Martchus 3e259bd6cf Allow expanding paths in libsyncthing directory paths
Implements https://github.com/Martchus/syncthingtray/issues/243
2024-06-02 13:28:36 +02:00
Martchus 5a123d9b64 Add tests for diffing and compuation of new ignore patterns in file model 2024-06-01 23:17:08 +02:00
Martchus df6261a9f3 Avoid warnings about getters possibly mismarked as slots 2024-06-01 22:06:27 +02:00
Martchus a48888a062 Extend unit tests of `SyncthingFileModel` 2024-05-31 22:37:16 +02:00
Martchus 062e1107f3 Update translations 2024-05-31 16:13:29 +02:00
Martchus efa406f717 Apply clang-format 2024-05-31 16:13:29 +02:00
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 e9022316f4 Allow selecting single items in file model 2024-05-25 20:05:17 +02:00
Martchus 919c81ea94 Actually deselect all items when discarding selection in file model 2024-05-25 19:42:05 +02:00
Martchus 8cb24216a3 Fix updating partially-checked state after refreshing in file model 2024-05-25 19:35:18 +02:00
Martchus 6c388abac1 Avoid hardcoding the path separator in `SyncthingFileModel` 2024-05-25 19:21:45 +02:00
Martchus ae865087f7 Initialize SyncthingFileModel correctly 2024-05-25 04:56:28 +02:00
Martchus 3ffe62b289 Show relevant ignore pattern for items in file browser 2024-05-25 04:47:53 +02:00
Martchus aef925743e Allow selecting items in file browser
This is the first step to allowing mass actions like ignoring/unignoring
all selected items.
2024-05-18 23:54:46 +02:00
Martchus 4b405a1723 Apply clang- and cmake-format 2024-05-18 13:09:06 +02:00
Martchus cc1fef7365 Show local files in file model 2024-05-18 12:55:03 +02:00
Martchus 0e86549ef0 Avoid code duplication for fetching items in file model 2024-05-14 21:05:56 +02:00
Martchus 744c78f64f Fix compilation against Qt 5 2024-05-08 12:42:28 +02:00
Martchus f55d3431ff Update translations
Translations for experimental/WIP features are still unfinished.
2024-05-08 11:24:24 +02:00
Martchus 3f6f3f631e Insert/delete loading items in file model correctly 2024-05-07 19:40:21 +02:00
Martchus a309926839 Show tooltip for error/loading items in file browser 2024-05-05 13:54:53 +02:00
Martchus c5d3c7745a Add error/loading indications in file browser and simplify path handling 2024-05-05 13:24:37 +02:00
Martchus 506f2a295c Delete QNetworkReply correctly when destroying SyncthingFileModel
When disconnecting the callback we need to destroy the QNetworkReply
manually (as this is no longer done by the usual handler). This will also
close any network connections (if still open).
2024-05-05 12:48:01 +02:00
Martchus 83e1dd6d8a Improve file browser 2024-05-04 22:44:00 +02:00
Martchus 93c9ffe5ca Fix comment about usage of qtutilities in syncthingmodels 2024-05-04 22:36:19 +02:00
Martchus 047a4e461e Allow refreshing root in file browser 2024-05-01 15:58:09 +02:00
Martchus 6b8b782aa0 Extend tests of models 2024-04-27 22:43:44 +02:00
Martchus ecece11df3 Introduce basic test setup for models
This test setup utilizes the "mocked" configuration so far only used for
manual testing. This allows adding unit tests for models without having to
run Syncthing itself. The test is pretty basic itself at this point.
2024-04-26 23:04:47 +02:00
Martchus 5c1b94e9fc Use thick stroke with for status icon presets without background color
It looks better.
2024-04-26 20:24:35 +02:00
Martchus 0ee0dbd10a Update translations 2024-04-19 00:07:28 +02:00
Martchus 96f26e8f37 Fix compilation against Qt 5 2024-04-09 12:05:52 +02:00
Martchus 80e5a0f64c Update translations 2024-04-09 11:36:32 +02:00