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
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