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
51ca0e895c
Avoid using functions and enum items deprecated in Qt 6
2020-09-15 18:10:15 +02:00
15075df0ca
Remove overspecification of Qt version in documentation and comments
2020-09-04 01:19:20 +02:00
cb3a4960e7
Support Qt 6 (commit 174154b)
2020-09-04 00:44:48 +02:00
4757b0a8b7
Avoid using qEnvironmentVariable() for compat with Qt < 5.10
2020-07-29 11:49:02 +02:00
65a532d80c
Apply clang-format
2020-07-12 21:18:00 +02:00
56cf474231
Enable High-DPI scaling by default in all my Qt applications
2020-07-12 21:15:48 +02:00
abfcd9f8be
Update translations
2020-07-07 12:14:48 +02:00
53e55d7054
Add tests for D-Bus notifications
2020-06-23 02:00:00 +02:00
37bbad572d
Avoid duplicate notifications when show() is called again very fast
2020-06-23 01:59:31 +02:00
956409bb38
Do not rely on presence of icon themes in tests
2020-06-16 01:18:23 +02:00
2598c0f5ae
Add basic test for settings dialog
2020-06-16 00:35:15 +02:00
5a7eaf8d1b
Add tests for ButtonOverlay widgets
2020-06-16 00:17:24 +02:00
106ac4c57e
Improve behavior of ButtonOverlay
...
* Remove all existing actions when falling back to using a custom layout to
prevent duplicating those buttons
* Enable clear button of ClearComboBox by default for consistency with
other widgets
2020-06-16 00:16:52 +02:00
ee9ec87386
Resolve TODO regarding QCursor::pos()
2020-06-14 15:53:45 +02:00
793bd00cb6
Avoid repeating default pixmap size of IconButton all over the place
2020-06-14 14:56:03 +02:00
8ee82c9a3c
Fix initializing alignment; this shouldn't use nullptr
2020-06-11 21:49:21 +02:00
ee7539cf6e
Allow adding custom actions to button overlay
...
Of course it would is possible to add actions directly to the line edit.
These new helper functions have the advantage that they provide a fallback
to the old button overlay implementation in case line edit actions can not
be used.
2020-06-09 23:24:24 +02:00
5974690006
Use QLineEdit's functions to implement ButtonOverlay functions if possible
2020-06-09 22:03:26 +02:00
7db2fd02fc
Improve button overlay so buttons will not be shown over e.g. spin box buttons
...
* Unify/streamline code
* Use Qt::SC_ComboBoxEditField/Qt::SC_SpinBoxEditField to determine the edit
area for better compatibility accorss various styles
2020-06-04 19:13:14 +02:00
9b7ad3375c
Avoid hard-coding Qt version in function invocations
...
* Make use of "Version-less CMake targets", see
https://www.qt.io/blog/versionless-cmake-targets-qt-5.15
* Keep fallbacks for compatibility with Qt < 5.15
* Remove some other occurrences of hard-coded Qt versions
2020-04-27 23:47:08 +02:00
4e974d2258
Prevent restoring invalid/removed IDs of ChecklistModel
...
The restore function should not add new IDs to the model.
2020-04-24 23:06:56 +02:00
6e734159c6
Update translations
2020-03-17 20:04:36 +01:00
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