Martchus
0f1bcae534
Fix build with c++utilities change to add header for compile definitions
...
* Add include directory for testhelper library manually as using the
imported target was not possibly
* Fix visibility when using libsyncthing in syncthingwidgets
* Update changed global headers along the way
2024-01-30 22:35:47 +01:00
Martchus
01fe57492c
Add and update tab-stops explicitly where default order is wrong
2024-01-07 22:30:48 +01:00
Martchus
939594aea6
Update translations
2024-01-02 15:22:15 +01:00
Martchus
26f468471a
Revert "Use `QWizard::AeroStyle` also with Qt 6.7's `windows11` style"
...
This reverts commit 8cac56c246
and extends
the related comment as the new Windows 11 style actually supports custom
palettes and then wizard's aero style breaks in the same way as with
Fusion.
2023-12-23 23:51:44 +01:00
Martchus
549be45b55
Mock setting the autostart path in the wizard test
...
This test would keep the autostart disabled but override an existing
autostart entry (see https://github.com/Martchus/syncthingtray/issues/221 ).
With this change it will no longer override an existing entry. Reading and
writing the autostart entry is now mocked and properly checked.
2023-12-22 17:33:21 +01:00
Martchus
8cac56c246
Use `QWizard::AeroStyle` also with Qt 6.7's `windows11` style
...
This is likely going to work as the `windows11` style seems to be a
continuation of the `windowsvista` so let's give it a try.
2023-12-15 15:50:08 +01:00
Martchus
81e9221cfb
Update translations
2023-12-11 21:21:37 +01:00
Martchus
c3a426a264
Fix compatibility with Qt 5 in web view code
2023-12-05 12:34:22 +01:00
Martchus
a125ac46e4
Update translations
2023-12-05 11:48:27 +01:00
Martchus
134aa448f7
Always customize scrollbars in built-in web view
...
* Use colors from palette; with this the custom scrollbars should always
be a plus (and not only when the Breeze style is used)
* React to palette changes at runtime
2023-12-03 21:15:29 +01:00
Martchus
01dceb588a
Allow configuring web view console logging via environment variable
2023-12-03 21:02:34 +01:00
Martchus
2ceb9a31b0
Fix clazy warning about usage of `arg()`
2023-12-03 18:56:43 +01:00
Martchus
6d81d33174
Style scroll bars of built-in web view according to Breeze style if used
...
* The code is disabled under many platforms where the Breeze style is
unlikely to be used anyways.
* The code is disabled if Qt is older than 6.1 because only then the name
of the current style can be determined.
2023-12-02 19:19:18 +01:00
Martchus
a6f0c2f5e1
Improve logging JavaScript messages of built-in web view
...
* Don't show configuration warning when enabled
* Log messages of all levels and log level when using Qt WebEngine
2023-12-02 19:07:00 +01:00
Martchus
04a8905a83
Allow opening Syncthing directly when clicking on tray icon
...
This might be useful if minimalism is desired or to avoid positioning
issues on Wayland.
2023-11-10 14:33:03 +01:00
Martchus
9360bf8bc8
Fix grammar mistakes in German translation after replacing "Verzeichnis" with "Ordner"
2023-11-10 13:17:16 +01:00
Martchus
7c932fdb31
Update translations
2023-11-07 11:58:55 +01:00
Martchus
b4879bb23e
Hide/show advanced configuration properly using `setRowVisible()`
...
This makes the code simpler and avoids inconsistent spacing. Unfortunately
this function has only been introduced in Qt 6.4 so the old code has to
stay for older Qt versions.
2023-11-06 16:02:12 +01:00
Martchus
a9eb8e3237
Update translations
2023-11-06 15:16:49 +01:00
Martchus
fada3c98dd
Allow configuring long-polling timeout
2023-11-06 15:06:40 +01:00
Martchus
2b58266d8b
Update translations
2023-11-06 12:47:32 +01:00
Martchus
c8b4c1e435
Hide advanced connection config by default
...
The configuration page is getting too big otherwise.
2023-11-06 12:47:32 +01:00
Martchus
4e61f77932
Fix guiUrl property of SyncthingLauncher
2023-11-01 21:16:04 +01:00
Martchus
d58b328f40
Revert accidental "Ordner" replacements by 230532d1
2023-10-20 16:15:38 +02:00
Martchus
784630104d
Save position and size of window after is has been moved/resized
...
* Remember new size after user resized the window
* Remember new position after user repositioned window and using explicit
coordinates has been configured in the appearance settings
2023-10-06 21:03:40 +02:00
Martchus
230532d15e
Do the directory/folder replacement also in German translation
2023-09-18 22:34:30 +02:00
John Veness
c2a0eee029
Change Directory to Folder in user-facing strings
2023-09-17 19:33:31 +01:00
Martchus
c811b06d6b
Configure HTTPS certificate via wizard
2023-09-04 20:34:38 +02:00
Martchus
e4bbe852bd
Avoid CMake deprecation warning by bumping version
2023-07-23 21:05:22 +02:00
Martchus
00f444484c
Update translations
2023-07-14 02:14:32 +02:00
Martchus
7e651be694
Fix compilation against Qt < 5.15 for Leap 15.3 builds
2023-07-11 11:55:39 +02:00
Martchus
218037a951
Fix compilation without systemd support
2023-07-04 20:01:12 +02:00
Martchus
8f481b0168
Update translations
2023-07-04 19:38:52 +02:00
Martchus
46d84a0f64
Allow configuring transfer timeout for requests in UI
2023-07-04 19:18:18 +02:00
Martchus
690804be5c
Add the request timeout to SyncthingConnectionSettings
2023-07-04 19:01:08 +02:00
Martchus
4effd6045b
Dynamically retranslate some aspects of the UI
...
There are still many places missing but this is a first step.
2023-07-03 00:56:19 +02:00
Martchus
10aafceb68
Update translations
2023-06-30 12:47:30 +02:00
Martchus
13730ab933
Ignore "Forbidden" errors shortly after Syncthing start
...
Not sure why I'm getting
```
Fehler beim Abfragen der Syncthing-Konfiguration: Error transferring http://127.0.0.1:8384/rest/system/config - server replied: Forbidden
URL der Anfrage: http://127.0.0.1:8384/rest/system/config
```
one one of my setups but this kind of error can likely be ignored shortly
after the start similar to other types of errors.
2023-06-30 12:43:06 +02:00
Martchus
b8b7986086
Fix build error with Qt < 5.14
2023-06-20 11:09:46 +02:00
Martchus
091ec35580
Stop built-in Syncthing instance synchronously
...
So `Launcher::terminate()` exits when really everything has terminated and
not just sub processes. It may nevertheless be worthwhile to implement a
timeout.
This may help with
https://github.com/Martchus/syncthingtray/issues/180#issuecomment-1582465960 .
2023-06-09 13:13:55 +02:00
Martchus
dd936b4a81
Workaround lupdate not understanding "enum class" in some cases
...
Apparently this is still problematic leading to errors like
`Qualifying with unknown namespace/class`. It seems that moving the enum to
a different header file works. The trick to use a macro to define
`enum class` ceased to work on the other hand.
Specifying a function with the namespace like
`void QtGui::FinalWizardPage::showResults()` leads to the same problem and
also needs to be avoided.
2023-06-07 23:14:48 +02:00
Martchus
925ce383f0
Fix condition and code in `supposedAutostartPath()`
...
The `1 || ` was just a debugging leftover.
2023-06-07 22:08:53 +02:00
Martchus
2e3c92cec9
Update translations
2023-05-18 23:57:54 +02:00
Martchus
cca3a8b364
Show "Points to …" in setup detection only if autostart is enabled
...
Otherwise the path will just be empty.
2023-05-18 23:52:23 +02:00
Martchus
bc736214dd
Allow keeping existing autostart entry in wizard
2023-05-18 23:50:27 +02:00
Martchus
f1bcd20a83
Update translations
2023-05-11 17:57:46 +02:00
Martchus
d3a559446f
Apply clang-format
2023-05-11 17:57:22 +02:00
Martchus
0240f2a9a3
Improve recent autostart-related changes further
...
* Improve function documentation
* Improve regex to better handle quoting
* Avoid using function only available as of Qt 6.3
2023-05-11 17:50:16 +02:00
Martchus
e94f2c3bcc
Update translations
2023-05-11 01:16:26 +02:00
Martchus
eb1b81a8d4
Enable auto-connect via the wizard
...
This setting should normally not hurt and is likely a better default.
2023-05-11 01:13:05 +02:00
Martchus
603ba1206e
Avoid warnings about unused variables when compiling without systemd support
2023-05-11 00:55:12 +02:00
Martchus
29ada0f040
Override existing startup entry in wizard; show remark about it in summary
2023-05-11 00:54:42 +02:00
Martchus
878e973c9d
Improve auto start setting
...
* Do not blindly override existing auto start entry
* Warn if an auto start entry exists but points to a different executable
* Allow removing such an entry explicitly
2023-05-11 00:11:34 +02:00
Martchus
d510b34abb
Update translations
2023-04-15 20:36:18 +02:00
Martchus
d2bbbab4f2
Remove remark about default browser when built-in web view disabled
...
This is now misleading as it depends on the general web settings. The
presence of this new settings tab alone should make it clear what will
happen instead so the sentence can just be dropped.
2023-04-15 20:35:24 +02:00
Martchus
fc8ab2e845
Improve coding style
...
Improve coding style, mainly in SynctingConnection, for better
consistency with more recently added code.
2023-04-15 20:28:51 +02:00
Martchus
e8e8d7ca33
Update translations
2023-04-06 01:05:44 +02:00
Martchus
a5f1ffd439
Never check option for built-in web view when disabled
...
Even if configured in the settings, check the option to
use a browser tab as this will be used as fallback.
2023-04-06 01:03:13 +02:00
Martchus
c08d6e54be
Save general web view settings persistently also when built-in web view disabled
2023-04-06 00:58:58 +02:00
Martchus
4c808a098d
Fix typo in German translation
2023-04-05 18:10:28 +02:00
Martchus
4b77c313eb
Fix compilation with Qt < 6.1.0 on Windows
2023-04-04 22:59:40 +02:00
Martchus
1c9e9affe3
Format code in `InternalError::isRelevant()` according to current coding style
2023-04-04 17:14:16 +02:00
Martchus
4fb50526bd
Suppress "connection refused" errors when stopping Syncthing ourselves
...
When stopping the Syncthing service ourselves we can apparently also
get "connection refused" and not just "remote host closed". So this
kind of error should be supressed as well.
2023-04-04 17:13:27 +02:00
Martchus
7b9870aefd
Update translations
2023-03-31 22:50:07 +02:00
Martchus
1d221120fe
Apply clang-format
2023-03-31 22:46:48 +02:00
Martchus
3fd45accde
Allow configuring custom command for launching Chromium-based browser
2023-03-31 22:46:25 +02:00
Martchus
2767c9484a
Fix size of wizard's window icon when using Aero-style
...
Apparently `wizardStyle()` does not return `QWizard::AeroStyle` at this
point of construction, even if that style will be used.
2023-03-28 23:56:23 +02:00
Martchus
7c93c21356
Document `chromiumBasedBrowserBinaries()`
2023-03-28 22:43:59 +02:00
Martchus
033cd21d83
Improve lookup of Chromium-based browser binary
...
* Consider Edge and Chrome as well
* Read the binary path from the "Application Registration" under Windows
(see https://learn.microsoft.com/en-us/windows/win32/shell/app-registration )
2023-03-28 22:32:03 +02:00
Martchus
db657bb1aa
Use QByteArrayLiteral for such literals
2023-03-28 17:20:59 +02:00
Martchus
55360b2563
Fix grammar in German translation of web view settings
2023-03-28 00:20:06 +02:00
Martchus
71a4f188eb
Add window icon in error dialog of `openBrowserInAppMode()`
2023-03-28 00:05:03 +02:00
Martchus
58b8a4e540
Allow showing Syncthing UI in Chromium-based browser in "app mode"
...
See https://github.com/Martchus/syncthingtray/issues/178
2023-03-27 20:28:52 +02:00
Martchus
e71a928ae2
Avoid unusable wizard when dark mode is enabled on Windows
2023-03-23 22:59:25 +01:00
Martchus
96e92f13a3
Avoid relying on symlink for include directories
...
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:27:33 +01:00