Commit Graph

309 Commits

Author SHA1 Message Date
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 5cb0d801ba Improve coding style in optioncategorymodel.cpp 2019-08-10 22:03:13 +02:00
Martchus e03b619b58 Add property for categories of OptionCategoryModel 2019-08-10 21:59:29 +02:00
Martchus 2772bad471 Improve parameter-passing in settings classes
* Pass QList by const ref
* Construct QList/QVector from initializer list
2019-08-10 21:56:53 +02:00
Martchus 9908190722 Use make_unique in qtsettings.cpp 2019-08-10 21:51:05 +02:00
Martchus 6d0d15bec2 Improve coding style if settingsdialog.cpp
* Reduce indentation
* Use const were possible
2019-08-10 21:50:29 +02:00
Martchus ff48e464fa Improve lookup of Qt translations
* Show warning if no translations found but built-in
  translations are enabled
* Don't write empty QStringLiteral to config file
* Simplify CMake code
2019-08-10 00:12:05 +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 95cc1a5b78 Apply cmake-format 2019-08-07 22:57:31 +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 9ba1aa32cf Protect pending DBusNotifications from concurrent access 2019-08-03 16:26:54 +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 3c4ff02a96 Fallback to website URL from CppUtilities::applicationInfo 2019-07-20 20:31:39 +02:00
Martchus 4e30e7c45c Don't abuse organization domain for website in AboutDialog 2019-07-20 20:16:40 +02:00
Martchus 7cf1a57368 Don't rely on QCursor::pos() in dialog utils
It might not work under Wayland.
2019-07-20 18:38:39 +02:00
Martchus 6eaeaab442
Merge pull request #2 from yan12125/fix-for-old-macos
Fix building on Mac OS X/macOS
2019-07-20 16:45:01 +02:00
Chih-Hsuan Yen f24c07b8a5
Fix building on Mac OS X/macOS
Without project(), compiler flags like -std=gnu++17 are not applied
for non-Apple clang on Mac OS X/macOS.
2019-07-20 22:32:35 +08:00
Martchus d3c9653b9e Add EXCLUDED_FILES variable
When adding source files to the _FILES variables conditionally
those are so far not being formatted or translated. Adding
these files at least to the EXCLUDED_FILES will fix this.

Replaces DOC_ONLY_FILES which served the same purpose but was
limited to documentation.
2019-07-13 14:01:52 +02:00
Martchus c1746c4302 Use use instead of typedef in optionpage.h 2019-07-07 13:36:49 +02:00
Martchus 9303e3f60d Add cleared property to Clear* classes 2019-07-07 12:41:11 +02:00
Martchus 033351eebf Reorder member variables of PathSelection 2019-07-07 12:40:32 +02:00
Martchus 666e16725d Don't add QT_DISABLE_DEPRECATED_BEFORE by default 2019-06-25 14:16:40 +02:00
Martchus 6dd7c0fce1 Don't use functions obsoleted in Qt 5.13.0 2019-06-25 14:16:12 +02:00
Martchus 2dc2e6f4c2 Prevent crash by instantiating QString explicitely 2019-06-17 00:43:44 +02:00
Martchus 4e3aaee223 Improve DBusNotification
* Allow setting application name
* Add more functions for hints
* Add return value to hide()
2019-06-16 17:35:31 +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 ec3d68a635 Apply cmake-format 0.5.1 2019-06-01 12:15:48 +02:00
Martchus e32f3c9dad Enable using clear icon from theme 2019-05-28 23:53:49 +02:00
Martchus 303d9ae779 Add override to DBusNotification 2019-05-28 21:33:24 +02:00
Martchus 157588f591 Remove disabled code 2019-05-19 20:39:53 +02:00
Martchus 43faa61e40 Emit colorChanged() in ColorButton when setColor() called 2019-05-19 17:47:34 +02:00
Martchus 676ad1ae6b Show description from app info in about dialog
if none explicitely specified
2019-05-05 18:40:34 +02:00
Martchus 72d0e9e6e0 Adapt search path for translations to new config system 2019-05-05 18:37:24 +02:00
Martchus 7642214a11 Remove AboutDialog c'tor with init list 2019-05-05 18:05:27 +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 acb7a0e7d9 Adapt to change in c++utilities API 2019-05-04 23:24:59 +02:00
Martchus 2ae98f8ba4 Prevent using deprecated Qt features 2019-05-04 22:16:46 +02:00
Martchus 4de0685c84 Apply clang-format 2019-05-04 21:01:18 +02:00
Martchus d8333f3793 Apply cmake-format 2019-05-04 21:01:06 +02:00
Martchus 850101dce6 Support installing multiple configurations within the same prefix 2019-05-03 01:03:41 +02:00
Martchus 76f70abdf8 Polish CMake modules 2019-04-22 22:27:00 +02:00
Martchus c707591128 Don't mix building static and shared libraries 2019-04-21 16:44:54 +02:00
Martchus 3502be2826 Adapt to c++utilities v5 2019-04-20 02:43:26 +02:00
Martchus 9e51708da1 Add detection of ANDROID_APK_TOOLCHAIN_VERSION for 32-bit ARM 2019-03-03 21:43:41 +01:00
Martchus 8741195cfe Remove libdir before invoking androiddeployqt
Otherwise it might fail to remove that directory on
its own. (Likely after some subdirectory has accidently
been added.)
2019-02-23 13:51:00 +01:00
Martchus 9dd033996a Fix bundling unnecessary files into APK
So not the entire share folder is bundles. And QML
paths are also not required here (although they contain
come plugin SO files).

There are still unnecessary plugins bundles, though.
2019-02-23 13:48:20 +01:00