Commit Graph

106 Commits

Author SHA1 Message Date
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
Martchus 8f2e3f0476 Add macro to auto init resources of static deps
Generated macro code is made available via config
header implemented in c++utilities
2017-02-11 02:04:12 +01:00
Martchus aca86b0681 Load translations of dependencies, too 2017-01-07 16:09:38 +01:00
Martchus 03b0a8f294 Provide 'edit-error' icon
Add templates for icons by the way
2016-11-30 20:57:21 +01:00
Martchus 653d954a54 Fix use of static Qt 5 plugins 2016-11-26 21:58:42 +01:00
Martchus 58d762b7ee Improve error message in loadApplicationTranslationFile() 2016-10-05 23:00:51 +02:00
Martchus 7f9afcda73 Fix decoration for static builds
- Also fix finding static web view and JavaScript provider
2016-08-29 15:41:21 +02:00
Martchus 9e61cf8e18 Add option for built-in SVG icon support 2016-08-19 22:37:43 +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 b5bd368c5c Load translations also for Qt modules not in qtbase 2016-07-27 21:52:01 +02:00
Martchus 30f53e819c Fix loading ressources
Still TODO: Load translations for modules not in qtbase
2016-07-27 18:52:59 +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 20e663cbcc Make include guards more unique and consistent 2016-07-04 23:26:48 +02:00
Martchus adf201078b Use new argument parser API 2016-06-14 00:46:26 +02:00
Martchus 9137a63462 Improve documentation 2016-06-10 23:05:43 +02:00
Martchus 9e52a3ac1f Use new argument parser API 2016-05-26 02:27:12 +02:00
Martchus 10726b4dee also update TS files via CMake 2016-04-24 20:53:14 +02:00
Martchus 9cf5656efe reduce code duplication in build system
- get rid of qmake project file
- provide CMake modules for common tasks
- provide templates for *.desktop files
2016-04-16 02:11:20 +02:00
Martchus 323c3b8824 allow building without Qt Widgets specific features 2016-04-09 02:33:09 +02:00
Martchus 50ef904677 fixed description 2016-03-10 22:15:21 +01:00
Martchus 528bbf46a7 allow user to specify library paths via command line arg 2016-02-09 01:06:50 +01:00
Martchus 67faf53825 improved project files 2015-12-08 08:36:36 +01:00
Martchus bb2e937e93 make Qt config args combinable 2015-11-25 22:48:24 +01:00
Martchus 8b4574de97 fixed #ifdef 2015-09-22 01:53:38 +02:00
Martchus 5c89dbbb87 improved icon theme lookup 2015-09-22 01:52:08 +02:00
Martchus ba77d0315b add method to locate additional config files 2015-09-16 17:30:25 +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 7ba1b2ba58 changed translation file lookup 2015-08-25 19:16:43 +02:00
Martchus 8a05677bb3 updated application info 2015-08-25 19:16:09 +02:00
Martchus e5b84fb8d0 always add English as fallback language
search in ./projects/appname/translations as well (used when building
subdirs projects)
2015-08-08 01:38:48 +02:00
Martchus 65132e9781 added macros for setting application info provided in project file 2015-07-27 23:22:46 +02:00
Martchus 97bc020524 delete unused translator on failure 2015-07-14 18:33:44 +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 576b0c11c6 using "en_US" as fallback language 2015-06-21 21:45:58 +02:00
Martchus 26748b4923 First commit 2015-04-22 18:57:44 +02:00