Commit Graph

544 Commits

Author SHA1 Message Date
Martchus a1a1984075 Update translations 2021-10-02 19:46:36 +02:00
Martchus 9b559b153c Fix TLS support for static builds when using Qt 6.2.0 or newer
This Qt release "pluginized" the backends for TLS support so we need to
make sure to link against at least one TLS plugin since all of my
applications which use Qt Network expect TLS to work.
2021-10-02 19:39:51 +02:00
Martchus b51ac8c322 Improve comments for configuring Qt style plugins 2021-10-02 19:28:54 +02:00
Martchus 836801fb39 Allow saving/loading the color palette config to/from an external file 2021-09-17 00:22:32 +02:00
Martchus b16caee532 Fix palette editor
* Fix missing signal connection; when renaming slots the auto-connections
  were lost
* Remove handlers which aren't used anyways
2021-09-16 23:23:10 +02:00
Martchus 7c7704e4e5 Add `#include <QtWebEngineWidgetsVersion>` to `webviewincludes.h.in`
Used in Syncthing Tray to distinguish between Qt 5 and Qt 6.
2021-08-07 18:30:01 +02:00
Martchus f4b344bd2b Update translations 2021-07-03 19:17:19 +02:00
Martchus 67e3d8b4af Apply cmake-format 2021-07-03 19:14:24 +02:00
Martchus 7765e6f062 Fix typos found via `codespell --skip .git -w` 2021-07-03 19:14:13 +02:00
Martchus 4e5068900f Do not use a tool window for about dialog
* With the Lightly style (and its default color palette) the about dialog
  background is otherwise transparent
* The frame doesn't look that nice anymore under Windows 10 anyways
2021-04-13 21:52:40 +02:00
Martchus 7792012916 Avoid error with CMake < 3.12 2021-04-06 18:11:21 +02:00
Martchus 144cec5562 Apply clang-format 2021-04-06 17:50:22 +02:00
Martchus 0c07bdb10c Consider window frame size within centerWidgetAvoidingOverflow() 2021-03-24 21:24:15 +01:00
Martchus 3da940fe5b Add function to center a widget avoiding overflow 2021-03-24 14:42:56 +01:00
Martchus 55341a7305 Prevent memory leaks found via valgrind 2021-03-23 16:46:55 +01:00
Martchus abb9f5790a Add qstringFromStdStringView() 2021-03-20 21:02:37 +01:00
Martchus 25062fcf01 Fix/silence warnings 2021-03-20 21:02:00 +01:00
Martchus 4cadb04b44 Apply CMake format 2021-03-20 21:01:24 +01:00
Martchus 5960c21558 Fix finding linguist tools macro when cross compiling with Qt 5
When cross compiling with Qt 5 the QT_HOST_PATH variable might
be set as well but the module might not be installed within the
host path. So let's do the usual lookup first and fallback to
QT_HOST_PATH only if that doesn't work.
2021-01-06 23:44:09 +01:00
Martchus 955b865e53 Add missing `emit`s in ChecklistModel 2021-01-01 20:45:37 +01:00
Martchus d6ea2ac378 Apply cmake-format and clang-format 2020-12-20 17:56:35 +01:00
Martchus 746615e21e Make loading LinguistTools module work when cross-compiling with Qt 6 2020-12-19 20:58:29 +01:00
Martchus 7183ec501c Disable auto-inclusion of QML plugins
because these seem to pull in unwanted dependencies like PostgreSQL
2020-12-10 19:19:02 +01:00
Martchus 969997b462 Increase version 6.3.2 -> 6.3.3 2020-12-10 19:15:24 +01:00
Martchus b77270eaa7 Update translations 2020-12-01 18:48:47 +01:00
Martchus 9bc3555c99 Resolve QT_INSTALL_TRANSLATIONS via CMAKE_PREFIX_PATH if it is relative
The variables provided by Qt 6 might just contain a relative path. This
change adds an extra function resolve these via CMAKE_PREFIX_PATH and
CMAKE_FIND_ROOT_PATH.
2020-11-11 18:51:19 +01:00
Martchus d80302d20d Make list of Qt's translations even if not available at build time
We shouldn't require translations to be installed at build time to know for
which repositories translations need to be loaded at runtime.
2020-11-11 18:11:43 +01:00
Martchus d61f32a635 Allow to disable built-in translations for Qt's own translations 2020-11-11 18:08:02 +01:00
Martchus b7c3416c37 Add qt6ct to auto-completion of platform theme argument 2020-11-07 22:09:25 +01:00
Martchus 0a67d7dc15 Avoid hard-coding Qt version 2020-11-07 22:05:54 +01:00
Martchus 0f05beebd8 Cope with CMAKE_FIND_ROOT_PATH containing more than one path
According to the documentation CMAKE_FIND_ROOT_PATH is a list.
2020-11-07 22:02:10 +01:00
Martchus f59c2cb643 Fix detecting QXcbIntegrationPlugin
The variable QT5_Gui_STATIC_PREFIX is no longer used.
2020-11-07 21:58:54 +01:00
Martchus 09ff2d00b1 Replace META_QT5_VERSION with version-agnostic META_QT_VERSION 2020-11-07 21:38:18 +01:00
Martchus deb9b4467f Look for Svg plugins within the Gui module's directory as well
In Qt 5  these plugins were loaded as part of the Svg module (at least with
my patches). With Qt 6 (for which I've dropped my patches) we need to
include the plugin's config file manually.
2020-11-07 21:38:18 +01:00
Martchus 62df4284da Update patch version 2020-11-07 21:38:18 +01:00
Martchus 89152bdbe9 Fix passing arguments when configuring Qt plugins 2020-11-03 18:32:35 +01:00
Martchus 75b992bfd1 Don't install translations if built-in anyways 2020-10-30 22:45:56 +01:00
Martchus 4f06492306 Apply cmake-format 2020-10-10 00:50:40 +02:00
Martchus 7d78fb7236 Apply clang-format 2020-10-05 18:37:42 +02:00
Martchus 15c884153a Allow building for Android with latest NDK, Qt 5 and CMake
* Making an Android APK should now generally work with NDK r21.d and
  Qt 5.15.1 and CMake 3.18 although some details might still need tweaking
* It is now supposed to be used within the NDK's toolchain instead of
  CMake's built-in Android support (which makes problems with newer NDK
  versions)
* The old way to lookup/pass variables is preserved so it should still
  work with older Qt versions and CMake's built-in Android support
* Qt's own support for invoking androiddeployqt needed to be disabled
  because it lead to CMake errors (see comment)
2020-10-05 18:37:23 +02:00
Martchus 429ec48a6e Adapt to Qt 6 (757a9c21c1)
* Don't use deprecated QLibraryInfo::path()
* Avoid conflicting QT_FORWARD_DECLARE_CLASS(QStringList)
2020-09-18 18:28:35 +02:00
Martchus 51ca0e895c Avoid using functions and enum items deprecated in Qt 6 2020-09-15 18:10:15 +02:00
Martchus 15075df0ca Remove overspecification of Qt version in documentation and comments 2020-09-04 01:19:20 +02:00
Martchus cb3a4960e7 Support Qt 6 (commit 174154b) 2020-09-04 00:44:48 +02:00
Martchus 4757b0a8b7 Avoid using qEnvironmentVariable() for compat with Qt < 5.10 2020-07-29 11:49:02 +02:00
Martchus 65a532d80c Apply clang-format 2020-07-12 21:18:00 +02:00
Martchus 56cf474231 Enable High-DPI scaling by default in all my Qt applications 2020-07-12 21:15:48 +02:00
Martchus abfcd9f8be Update translations 2020-07-07 12:14:48 +02:00
Martchus 53e55d7054 Add tests for D-Bus notifications 2020-06-23 02:00:00 +02:00
Martchus 37bbad572d Avoid duplicate notifications when show() is called again very fast 2020-06-23 01:59:31 +02:00