Commit Graph

95 Commits

Author SHA1 Message Date
Martchus 6ffa54088a Ensure desktop file name is set when initializing GUIs 2024-04-08 12:39:46 +02:00
Martchus b2d85c7d53 Refactor various aspects of the code
* Prefer using auto
* Reduce nesting in certain places
* Simplify code in main function
2024-04-01 13:59:22 +02:00
Martchus 6972256727 Improve Qt Quick GUI after porting to Qt 6
* Avoid use of deprecated QML features
* Fix problems when moving items by making the delegates own items
* Improve code in models, especially functions for moving rows
* Fix sizing of dialogs
* Replace code relying on `bannerClicked` event which has been removed in
  KF6
* Use the native file dialog if supported (and otherwise not); this should
  give the desired behavior under each platform out of the box
* Update versioning requirements in README
2024-03-24 22:26:44 +01:00
Martchus fcbc3cb4a4 Add tab-stops explicitly where default order is wrong 2024-01-07 23:41:39 +01:00
Martchus 5ebf64d1de Enable creating a backup file by default 2023-11-18 21:13:57 +01:00
Martchus 5acf8b0cc0 Apply Qt settings immediately 2023-03-30 00:04:39 +02:00
Martchus 0ead95e749 Update style sheet on palette changes accordingly 2023-03-30 00:04:17 +02:00
Martchus a45734de1d Remove accidentally hard-coded font 2023-03-30 00:02:01 +02:00
Martchus a829ca0e65 Handle errors when restoring/saving settings 2023-02-18 19:19:59 +01:00
Martchus a8364be203 Avoid use of deprecated `QString::count()` 2023-01-31 15:35:59 +01:00
Martchus eb1b73f4be Allow portable configuration via `QtUtilities::getSettings()`
See https://github.com/Martchus/tageditor/issues/88
2022-08-20 16:29:56 +02:00
Martchus 217942e946 Avoid getter being mismarked as slot in MainWindow 2022-08-20 16:22:23 +02:00
Martchus 16b1051c68 Fix warnings when building against Qt 6 2022-01-29 19:44:19 +01:00
Martchus 54e21607df Apply clang-format and cmake-format 2021-08-22 00:05:07 +02:00
Martchus 3a01f2de31 Fix typos found via `codespell --skip .git -w` 2021-07-03 19:46:22 +02:00
Martchus acbfd6ec6b Fix warnings 2021-03-20 21:57:47 +01:00
Martchus c3f07d08b6 Use setFilterRegularExpression() in Qt >= 5.12
The issue mentioned in the last commit was actually just about case
sensitivity and using QRegularExpression::CaseInsensitiveOption fixes it.
2020-09-18 17:12:01 +02:00
Martchus 85a816e444 Don't use setFilterRegularExpression() in Qt 5
Otherwise showing child nodes when their parent matches does not work with
Qt 5. Interestingly it *does* work with Qt 6. That's especially strange
because the code of the filter model responsible for showing child nodes
when their parents match should work completely independent of the
particular filter being used.
2020-09-15 18:14:13 +02:00
Martchus 5e8c230cfb Support Qt 6 (commit 174154b) 2020-09-04 00:54:34 +02:00
Martchus 53d3e71d36 Don't use lower-case Qt macros 2020-03-08 14:09:56 +01:00
Martchus 78e4afb387 Improve consistency of error messages 2020-02-14 17:38:17 +01:00
Martchus 7ac57bb5a1 Use aboutToQuit() signal for cleanup-code
As recommended by the Qt documentation
2019-09-14 19:38:06 +02:00
Martchus b220301bb6 Fix typo in initiategui.cpp filename 2019-08-22 01:11:17 +02:00
Martchus 53aa56108c Don't abuse organization domain for website in AboutDialog 2019-07-20 20:16:44 +02:00
Martchus ad5ef353ff Use viewport to map context menu position 2019-07-20 18:44:20 +02:00
Martchus 31de4955e6 Don't use QCursor::pos() to position context menus
This won't work under Wayland.
2019-07-20 18:23:43 +02:00
Martchus 318542c658 Handle that QClipboard::mimeData() might return nullptr in Wayland 2019-07-20 18:14:41 +02:00
Martchus e820ebe71f Fix lupdate problem for real
The enum class still seems to be the cause of the
problem so this still needs to be worked around.
2019-07-07 15:24:51 +02:00
Martchus e9196404d6 Add comment for lupdate again
It still seems to be required for some reason
2019-07-07 11:51:11 +02:00
Martchus 27f90b7008 Ensure Qt specific config is included 2019-06-16 15:56:34 +02:00
Martchus d606b8a6cb Adapt to changes in c++utilities 2019-06-12 21:02:57 +02:00
Martchus f16dbc06d1 Adapt to changes in c++utilities 2019-06-10 22:44:59 +02:00
Marius Kittler f863fb474c Adapt to c++utilities v5 2019-05-04 22:25:56 +02:00
Martchus 8e1ee51e82 Adjust QTableView row height to fit content 2019-03-15 23:09:31 +01:00
Martchus 7866787e2e Don't use (Windows-specific) dialog style for details 2018-12-22 00:51:13 +01:00
Martchus 75075725a6 Add file details 2018-12-21 01:14:41 +01:00
Martchus d2b096bfda Adapt for passwordfile 4.0.0 2018-12-19 00:15:39 +01:00
Martchus 36b8324f6b Check for QT_NO_CLIPBOARD in PasswordGeneratorDialog 2018-12-15 23:10:00 +01:00
Martchus 78a868fc9e Fix enabling undo support without Qt Widgets GUI 2018-12-03 00:29:54 +01:00
Martchus 93d630756a Apply clang-format 2018-08-31 19:59:08 +02:00
Martchus f9d24c400f Improve PasswordGeneratorDialog::generateNewPassword()
* Remove unused OpenSSL include
* Use const where possible
* Reduce max. indentation
* Avoid implicit signedness conversion
2018-07-15 19:35:32 +02:00
Martchus 5e3a47f81d Improve coding style in MainWindow::insertFields()
* Get rid of the unused variable
* Fix typo
2018-07-15 19:12:50 +02:00
Marius Kittler ce7595fd8a Prevent using released unique_ptr 2018-06-19 13:32:21 +02:00
Martchus 2496c495c7 Prevent memory leak in StackSupport 2018-06-10 22:51:43 +02:00
Martchus 3948490bba Improve shortcuts in GUI 2018-03-14 00:40:06 +01:00
Martchus 575d0cabdb Apply clang format on all GUI files 2018-03-14 00:17:14 +01:00
Martchus 836e6bbcb2 Improve coding style 2018-03-14 00:15:12 +01:00
Martchus 983cc6077b Improve coding style 2018-01-26 15:52:43 +01:00
Martchus 91c6961422 Allow opening files in read-only mode 2018-01-26 15:51:34 +01:00
Martchus c217b4f5b4 Fix deref nullptr when adding new field and pw hidden 2017-10-21 21:14:50 +02:00