Commit Graph

88 Commits

Author SHA1 Message Date
Martchus 55341a7305 Prevent memory leaks found via valgrind 2021-03-23 16:46:55 +01:00
Martchus 25062fcf01 Fix/silence warnings 2021-03-20 21:02:00 +01:00
Martchus d6ea2ac378 Apply cmake-format and clang-format 2020-12-20 17:56:35 +01:00
Martchus b7c3416c37 Add qt6ct to auto-completion of platform theme argument 2020-11-07 22:09:25 +01:00
Martchus 7d78fb7236 Apply clang-format 2020-10-05 18:37:42 +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 56cf474231 Enable High-DPI scaling by default in all my Qt applications 2020-07-12 21:15:48 +02:00
Martchus 1f08721dda Remove ConfigFile::locateConfigFile()
Needed adjustments to support the config suffix feature. Since it
is only used by videodownloader it can be dropped.
2019-08-20 22:16:38 +02:00
Martchus 6b510b21e7 Add missing quote when logging translation lookup 2019-08-10 00:10:16 +02:00
Martchus 8cbe2da2a2 Remove own icons for button overlay
* Use "edit-clear" from icon theme instead
* Other icons were only used by the tag editor but it now uses
  icons from the icon theme instead
2019-08-08 22:54:13 +02:00
Martchus a40d2974e0 Fix translation lookup if config name is set
In this case the config name must only be appended to the applications
config directory but *not* to the name of the translation file itself.
2019-08-07 22:57:17 +02:00
Martchus 8de2d7f7c8 Don't set organization domain to application URL
Otherwise window icons are not shown correctly under Wayland.
2019-07-20 20:59:13 +02:00
Martchus 2dc2e6f4c2 Prevent crash by instantiating QString explicitely 2019-06-17 00:43:44 +02:00
Martchus 7e8766cdb6 Allow to debug locating of translations 2019-06-16 16:56:38 +02:00
Martchus 18e3a907af Adapt to changes in c++utilities 2019-06-12 20:39:02 +02:00
Martchus b3e7c390d9 Have everything in one top-level namespace 2019-06-10 21:57:46 +02:00
Martchus 72d0e9e6e0 Adapt search path for translations to new config system 2019-05-05 18:37:24 +02:00
Martchus 8c9d834b68 Split style arguments 2019-05-04 23:34:19 +02:00
Martchus df120f4b73 Add CLI argument to set Qt scene graph renderer 2019-05-04 23:25:33 +02:00
Martchus 4de0685c84 Apply clang-format 2019-05-04 21:01:18 +02:00
Martchus 850101dce6 Support installing multiple configurations within the same prefix 2019-05-03 01:03:41 +02:00
Martchus 3a1af588ce Fix condition to apply qqc2 style 2018-12-15 23:54:00 +01:00
Martchus 4ed713e6a0 Simplify code for setting widgets style 2018-12-15 23:53:20 +01:00
Martchus b7b4467326 Use braces for #if defined(...) 2018-12-08 19:08:42 +01:00
Martchus d607cb046e Apply default QQC2 style also when quick-gui arg not present
So it works also under Android (where the usual argument parsing
might not be applied).
2018-09-18 21:49:20 +02:00
Martchus c6af8c762e Fix setting default QQC2 style 2018-07-15 19:44:35 +02:00
Martchus d0e81c6a4a Improve coding style in QtConfigArguments 2018-06-16 13:20:14 +02:00
Martchus 17a99c7bd7 Set default QQ2 style for Android and Windows 2018-06-16 13:19:00 +02:00
Martchus 5c6938ff14 Set default 2018-06-16 13:18:05 +02:00
Martchus 5d490ed908 Document environment variables and style examples for Qt config 2018-06-16 13:17:05 +02:00
Martchus b7f2ce0f10 Allow to overriding Qt Quick Controls 2 style
Make it an extra function in the header so the utilities
don't depend on the Qt Quick Controls 2 library (just for
one function call).
2018-06-16 13:10:19 +02:00
Martchus 6be2f87988 Use Argument::varValueCount to prevent warning 2018-06-05 22:49:45 +02:00
Martchus 571c2f8a26 Fix missing #includes 2018-06-05 22:49:17 +02:00
Martchus ac0e8967e4 Allow passing '-qmljsdebugger'
This is a bit hacky because the arg parser
will read it as argument '-q' with the specified
value 'mljsdebugger...'. Shouldn't be a problem
though because we don't really read the value on
our own.
2018-05-23 23:24:56 +02:00
Martchus c8f55a72b3 Apply clang-format from LLVM 6 2018-03-24 17:03:46 +01:00
Martchus 0409b77831 Split Qt-specific config from other config
So adding Qt-specific config does not require a change
in c++utilities anymore.
2018-03-07 18:22:53 +01:00
Martchus 29a2f993a3 Configure static Qt Widget style plugins
* Fix missing "Vista style" in static, Qt 5.10 based
  Windows build
* Required since the platform styles have been
  "pluginized" in Qt 5.10
* See 4f3249f32d
2017-12-15 20:22:29 +01:00
Martchus afe3373896 Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:45:49 +02:00
Martchus 39cb21b5a9 Use QStringBuilder consistently in resources.cpp 2017-09-07 17:32:07 +02:00
Martchus bf1519d357 Improve handling static Qt plugins
* Only link targets using static Qt Gui/Widgets/Quick
  against static plugins since currently only GUI-related
  plugins are relevant
* Don't require to link explicitely against the related
  module (eg. Qt Svg for the Svg icon engine) because the
  imported target of the plugin should pull all required
  dependencies
* Add option for linking against static Qt image format
  plugins
* Link GUI applications using static Qt Gui/Widgets/Quick
  against the static X11 platform integration plugin if it
  is available
2017-09-03 18:03:41 +02:00
Martchus cdd84520da Prevent warnings when English translations can not be load
English translation files are built-in and usually only used
for plural forms. Hence the files are often empty and the
warnings about them are more misleading than helpful most of
the time.

TODO: Find a way to distinguish between translations
which are supposed to be empty and missing/invalid
translations.
2017-08-15 01:08:08 +02:00
Martchus 7c6483f5a6 Link GUI apps against Cocoa integration plugin under MacOS 2017-08-06 00:44:20 +02:00
Martchus 0599eb354d Apply clang-format 2017-05-04 22:46:37 +02:00
Martchus 2dcbc02f4b Apply clang-format 2017-05-01 03:16:25 +02:00
Martchus 61a544d42f Make definitions for gui support project specific 2017-04-27 22:03:37 +02:00
Martchus 4140cc3695 Uniform icons 2017-03-29 00:22:50 +02:00
Martchus bd5c30c582 Update doc about functions to load translation 2017-03-06 22:08:45 +01:00
Martchus ebf76ab4cf Add high res edit icons 2017-03-01 23:29:40 +01:00
Martchus 0c34b456f0 Enable high DPI pixmap support in all applications 2017-03-01 23:24:47 +01:00