Commit Graph

37 Commits

Author SHA1 Message Date
Martchus 88310af665 Show a warning if the current Windows version is not supported 2023-11-18 22:03:27 +01:00
Martchus 647ad121a5 Improve setting default icon theme
* Set the default icon theme when applying Qt settings and the "system"
  theme is supposed to be used but none could be determined by Qt
    * Use a bundled icon theme depending on whether the current palette is
      light or dark
* Apply the default not only under Windows anymore; supposedly this makes
  sense under any platform where Qt cannot determine the icon theme for us
2023-03-15 21:27:04 +01:00
Martchus 54650eb2af Improve setting icon theme from CLI arguments
* Use `qEnvironmentVariable()` to read env variables into `QString`s
* Treat CLI arguments as UTF-8 (they will be converted to UTF-8 on Windows)
  which is consistent with the CLI argument handling in tag editor
* Add comment about processing of `m_iconThemeArg` and reserve the correct
  size when building the `QStringLiteral`
2023-03-15 20:07:10 +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 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 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 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 d0e81c6a4a Improve coding style in QtConfigArguments 2018-06-16 13:20:14 +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 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 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 55ad0b4de1 Improve icons
- Provide fallback for Qt icon
- Ensure default search paths are not overwritten
2016-08-17 20:05:48 +02:00
Martchus 292b0eae30 Allow setting Qt platform theme via argument 2016-08-16 19:35:40 +02:00
Martchus de98b88f4a Improve Qt settings
Setting font and icon theme doesn't work yet, not sure
about locale
2016-08-14 22:44:25 +02:00
Martchus 5a0eba3726 Allow built-in translations and icons
- Allow to built-in qm files for translations
  using the Qt resource system
- Allow to built-in required icons from specified
  icon themes using the Qt resource system
- Provide bash script to determine required icons
2016-07-16 23:12:02 +02:00
Martchus adf201078b Use new argument parser API 2016-06-14 00:46:26 +02:00
Martchus 9e52a3ac1f Use new argument parser API 2016-05-26 02:27:12 +02:00
Martchus 323c3b8824 allow building without Qt Widgets specific features 2016-04-09 02:33:09 +02:00
Martchus 528bbf46a7 allow user to specify library paths via command line arg 2016-02-09 01:06:50 +01:00
Martchus bb2e937e93 make Qt config args combinable 2015-11-25 22:48:24 +01:00
Martchus 5c89dbbb87 improved icon theme lookup 2015-09-22 01:52:08 +02:00
Martchus 721e79d027 fixed includes 2015-09-06 20:19:21 +02:00
Martchus 4af66240de removed Q_UNUSED 2015-09-01 20:51:46 +02:00
Martchus 4047cdd14f updated application startup 2015-09-01 20:08:43 +02:00
Martchus 49fe16e29d Qt GUI arguments are now flaged as arguments which denote an operation 2015-06-24 00:50:00 +02:00
Martchus 26748b4923 First commit 2015-04-22 18:57:44 +02:00