Commit Graph

331 Commits

Author SHA1 Message Date
54e8ef75cd Fix comments mentioning qtconfig.h
There is a separate Qt-specific header since v6.
2020-03-17 19:56:32 +01:00
d33cf13923 Apply cmake-format 2020-03-08 13:51:36 +01:00
660625d1e7 Don't use lower-case Qt macros 2020-03-08 13:07:31 +01:00
4ce6bb9487 Don't delete DBusNotification on error
Not sure why the deletion was done at this point in the
first place. DBusNotification objects are not even created
using 'new' by Syncthing Tray so this can never make any
sense.
2020-03-01 20:44:01 +01:00
031378e1c5 Fix remaining install dirs to use GNUInstallDirs consistently 2020-02-13 11:43:29 +01:00
fc76422d01 Use GNUInstallDirs
See https://github.com/Martchus/cpp-utilities/issues/17
2020-02-01 00:01:37 +01:00
6874917c5d Use consistent order for visibility attribute 2020-01-29 18:33:27 +01:00
e55ae3686b Require CMake 3.3.0 in all modules 2020-01-10 18:01:27 +01:00
358a7341b0 Fix support for Qt < 5.14.0 2019-12-16 16:52:35 +01:00
67165b69d7 Don't use toSet() method which was deprecated in Qt 5.14.0 2019-12-15 19:29:03 +01:00
ca081697df Reformat CMake scripts against cmake-format 0.6.3 2019-12-15 19:27:26 +01:00
b8d00d27c9 Apply cmake-format v0.6.0 2019-11-30 17:58:56 +01:00
a635b38e73 Apply CMake format 2019-10-12 19:00:24 +02:00
ec9d2c58ee Don't set parent of "About Qt" dialog
to prevent stylesheet inheritance
2019-10-09 18:00:44 +02:00
1155ab0036 Use QFileInfo to check for absolute path in openLocalFileOrDir()
Better not rely on a correct implmentation of std::filesystem in
libstdc++ on Windows when using Qt anyways.
2019-10-09 17:33:38 +02:00
df03b97ced Fix openLocalFileOrDir() on Windows
Not tested yet
2019-10-09 12:54:35 +02:00
e6a6d41df1 Show Qt version in about dialog 2019-09-07 01:27:41 +02:00
02747f4808 Fix old namespaces being mentioned in the documentation 2019-09-04 18:47:36 +02:00
84ace56a9c Update README.md 2019-09-01 16:34:50 +02:00
dbc5a18801 Allow setting custom app ID and label via CMake args
So one can produce different configurations/versions/flavors of
the app which can be installed at the same time.
2019-08-22 01:05:45 +02:00
5f115b4918 Require META_ANDROID_PACKAGE_NAME for making Android APKs 2019-08-22 01:03:53 +02:00
f1897175e8 Support template substitution for Android files
To achieve this the Android package directory must be copied
over to the binary directory. Files which end with ".in" are
treated as templates.
2019-08-22 01:02:15 +02:00
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
5cb0d801ba Improve coding style in optioncategorymodel.cpp 2019-08-10 22:03:13 +02:00
e03b619b58 Add property for categories of OptionCategoryModel 2019-08-10 21:59:29 +02:00
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
9908190722 Use make_unique in qtsettings.cpp 2019-08-10 21:51:05 +02:00
6d0d15bec2 Improve coding style if settingsdialog.cpp
* Reduce indentation
* Use const were possible
2019-08-10 21:50:29 +02:00
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
6b510b21e7 Add missing quote when logging translation lookup 2019-08-10 00:10:16 +02:00
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
95cc1a5b78 Apply cmake-format 2019-08-07 22:57:31 +02:00
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
9ba1aa32cf Protect pending DBusNotifications from concurrent access 2019-08-03 16:26:54 +02:00
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
3c4ff02a96 Fallback to website URL from CppUtilities::applicationInfo 2019-07-20 20:31:39 +02:00
4e30e7c45c Don't abuse organization domain for website in AboutDialog 2019-07-20 20:16:40 +02:00
7cf1a57368 Don't rely on QCursor::pos() in dialog utils
It might not work under Wayland.
2019-07-20 18:38:39 +02:00
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
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
c1746c4302 Use use instead of typedef in optionpage.h 2019-07-07 13:36:49 +02:00
9303e3f60d Add cleared property to Clear* classes 2019-07-07 12:41:11 +02:00
033351eebf Reorder member variables of PathSelection 2019-07-07 12:40:32 +02:00
666e16725d Don't add QT_DISABLE_DEPRECATED_BEFORE by default 2019-06-25 14:16:40 +02:00
6dd7c0fce1 Don't use functions obsoleted in Qt 5.13.0 2019-06-25 14:16:12 +02:00
2dc2e6f4c2 Prevent crash by instantiating QString explicitely 2019-06-17 00:43:44 +02:00
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
7e8766cdb6 Allow to debug locating of translations 2019-06-16 16:56:38 +02:00
18e3a907af Adapt to changes in c++utilities 2019-06-12 20:39:02 +02:00