Commit Graph

46 Commits

Author SHA1 Message Date
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 0791964c6f Apply clang-format and cmake-format 2024-03-25 18:34:22 +01: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 34e7fb123a Use `pubsetbuf` only with `libstdc++`
This usage of the function seems only to work as intended with that
standard lib. With `libc++` and the MSVC standard lib the call has no
effect.
2023-02-28 21:04:00 +01:00
Martchus 16b1051c68 Fix warnings when building against Qt 6 2022-01-29 19:44:19 +01:00
Martchus cfb4423f79 Fix warning about possible null pointer deref 2021-12-11 23:48:59 +01:00
Martchus 641e02f64c Fix shadowing warning 2021-08-22 00:02:48 +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 79038808ce Fix compilation with Qt 6 (beta1) 2020-10-23 17:01:34 +02:00
Martchus 318542c658 Handle that QClipboard::mimeData() might return nullptr in Wayland 2019-07-20 18:14:41 +02:00
Martchus d606b8a6cb Adapt to changes in c++utilities 2019-06-12 21:02:57 +02:00
Marius Kittler f863fb474c Adapt to c++utilities v5 2019-05-04 22:25:56 +02:00
Martchus 507aefae3f Improve coding style, reduce warnings 2018-12-08 19:55:41 +01:00
Martchus 78a868fc9e Fix enabling undo support without Qt Widgets GUI 2018-12-03 00:29:54 +01:00
Marius Kittler fb83048517 Return more defaults for last (empty) row of FieldModel 2018-11-22 21:59:26 +01:00
Marius Kittler d9dd05f488 Add IsLastRow role to FieldModel 2018-11-22 21:58:05 +01:00
Marius Kittler f7a3c7fd01 Fix warnings in FieldModel 2018-11-22 21:57:31 +01:00
Marius Kittler 62d5a24bca Fix FieldModel to update Value role 2018-11-20 18:06:19 +01:00
Martchus fa050a422a Quick GUI: Allow filtering entries
So far all operations on entries are disabled when
in filtered state and switching between normal and
filtered view invalidates the stack.
2018-09-16 21:48:46 +02:00
Martchus 65d41276e8 Improve debug messages 2018-09-08 19:59:15 +02:00
Martchus d8b6aeb818 Improve editing fields in Qt Quick GUI 2018-06-13 00:41:24 +02:00
Martchus cc78072ffc Improve cut and paste in Qt Quick GUI 2018-06-12 22:20:43 +02:00
Martchus d364941c28 Improve coding style in EntryModel 2018-06-11 23:19:42 +02:00
Martchus 841295eb95 Improve SerializedRole in EntryModel::setData()
* Prevent copy
* Handle and log errors
* Improve coding style
2018-06-10 23:01:17 +02:00
Martchus 2496c495c7 Prevent memory leak in StackSupport 2018-06-10 22:51:43 +02:00
Martchus 2421cc70a8 Fix affected roles in EntryModel::setData() 2018-06-10 22:39:57 +02:00
Marius Kittler 22fb061686 Make use of models in QML more convenient 2018-05-20 01:48:31 +02:00
Martchus 51d9190199 Make models ready for use with Qt Quick 2018-04-22 21:00:39 +02:00
Martchus 24eadaf516 Fix missing return 2018-03-14 00:39:46 +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 e1386c2a79 Reformat using clang-tidy 5.0 2017-09-29 17:20:03 +02:00
Martchus f5bdf4c438 Apply clang-format 2017-05-01 03:26:04 +02:00
Martchus 1c033b4746 Make definitions for gui support project specific 2017-04-27 22:16:26 +02:00
Martchus bd9037f1d5 Change usage of DECLARE_ENUM macro 2016-07-11 22:10:16 +02:00
Martchus 131abd1f22 Use workaround for GCC Bug 66145 2016-06-14 22:57:39 +02:00
Martchus b518f8968a tweaked filter 2016-04-08 00:04:23 +02:00
Martchus 9ababd9279 filter parent items, too 2016-03-15 15:33:13 +01:00
Martchus 515cb9fe84 added simple CMake project file 2015-12-05 22:52:00 +01:00
Martchus 2e522b44ad need to modify item delegate to properly hide passwords when editing 2015-11-04 20:30:32 +01:00
Martchus 4bbb82d898 added option to hide passwords when editing 2015-11-03 21:22:50 +01:00
Martchus 90d37aeaa9 fixed includes 2015-09-06 20:33:09 +02:00
Martchus 403388647c replaced signals/slots with Q_SIGNALS/Q_SLOTS 2015-08-25 19:15:27 +02:00
Martchus 84db613026 removed double return statement 2015-04-26 22:28:05 +02:00
Martchus bda20da10c First commit 2015-04-22 19:30:09 +02:00