Commit Graph

  • 0a2b0d840b Added NUMBER_ROLES to metadata.h for use in GUI source code. develop Bent Witthold 2026-04-08 17:23:05 +02:00
  • 54d537dc9b Roles can now be declared read-only. First read-only role: IdRole Bent Witthold 2026-04-02 09:37:36 +02:00
  • a9a4b39da1 Don't set missing model item values to default value from JSON object. Bent Witthold 2026-03-14 09:29:43 +01:00
  • 5b62f9461b CSV import has now support for optional columns. Bent Witthold 2026-03-12 10:37:12 +01:00
  • 5530aff2f3 Converting saveItems() into a public slot to be invokable from QML. Bent Witthold 2026-03-09 15:44:51 +01:00
  • c1ee2135df TableModel::setData can now be called for column 0 with different roles to edit. (Doesn't rely on Qt::EditRole and RoleForColumn in all cases) Bent Witthold 2026-03-09 07:46:28 +01:00
  • a6648b7d1e Added "display" as role name. (For the QML UI) Bent Witthold 2026-03-05 12:30:43 +01:00
  • dbfaee27dc Added messagehandler.h (moved from widgets UI project). Bent Witthold 2026-03-03 18:56:39 +01:00
  • f392efb54f Added static GET_HEADER_FOR_COLUMN(const int column) function. Bent Witthold 2026-03-02 16:25:01 +01:00
  • 057bd244bd Added type roles to the calculation if an item is equal to the given item values. Bent Witthold 2026-03-01 11:37:00 +01:00
  • c9d67ff2cc In TableModel::data(...): Default to ModelItem::data(...) for non user facing roles too. Bent Witthold 2026-03-01 11:35:26 +01:00
  • 13dc22de9f Add type roles to the model sorting capabilities. Bent Witthold 2026-03-01 11:34:06 +01:00
  • e68b446407 A new role doesn't have to be added to TableModel::data(...) anymore. Bent Witthold 2026-03-01 11:33:08 +01:00
  • 6fc3ffc537 Added missing type role to TableModel::data(...). Bent Witthold 2026-03-01 11:25:57 +01:00
  • f694e0e5ed Further refactoring after the addition of the type role. Bent Witthold 2026-03-01 11:11:46 +01:00
  • becde8c794 Added type role and column & refactored the JsonParser in the process. Bent Witthold 2026-03-01 10:59:34 +01:00
  • 1db5d9022a Hotfix: Using the correct member variable for the model tester of the proxy model in Release compilation. Bent Witthold 2026-02-04 11:52:09 +01:00
  • cf55adc34e Bumped version to 0.3.0. Bent Witthold 2026-02-04 11:28:08 +01:00
  • 5318390749 Merge branch 'feature/restClient' into develop Bent Witthold 2026-02-03 12:07:45 +01:00
  • b6c49dda20 Minor clean up in JsonParser. Bent Witthold 2026-02-03 11:55:43 +01:00
  • 7ae10e6ed7 Added GenericCore::getSettings(...) for the UIs (they don't need to use the NetworkHandler directly). Bent Witthold 2026-02-03 11:19:24 +01:00
  • 6adf18caeb Server settings are read from QSettings and applied if they are changed. Bent Witthold 2026-02-03 11:17:26 +01:00
  • d4ff1ffb61 Split TableModel::updateItemsFromJson(...) into two functions and added support for multiple items in JSON data. Bent Witthold 2026-02-02 16:48:42 +01:00
  • ba482e6e17 Added getUuid(itemIndex) to proxy model to prevent using IdRole in UI when an item should be referenced (i. e. for deletion on server). Bent Witthold 2026-02-02 16:46:10 +01:00
  • db1ecbece0 Current items can be deleted by passing the UUID to the deleteItemFromServer signal. Bent Witthold 2026-02-02 16:15:20 +01:00
  • 63fe96fb2e On sending (posting) item to the server the generated UUID is added to the local item. Bent Witthold 2026-02-02 16:13:44 +01:00
  • bedf8084d3 Retrieving the JSON data of the current index to send to the server through the proxy model. Sending this data happens by triggering the core. Bent Witthold 2026-01-29 13:13:32 +01:00
  • 2a152daa70 Using lower case role names for improved compatibility with the server. Bent Witthold 2026-01-29 13:06:46 +01:00
  • 08c2e3a093 Added IdRole for the server generated UUID of the items. Bent Witthold 2026-01-29 09:27:50 +01:00
  • bc96a805f8 An item (with hard coded values) can be send to the server. Added signals for fetching and posting items to be triggered from the UI. Bent Witthold 2026-01-29 08:54:47 +01:00
  • e29cd0aebf Basic JSON RESTful client fetching items from a local server at application start and adding them to the model. Bent Witthold 2026-01-25 10:47:19 +01:00
  • e1bc779791 Added QAbstractItemModelTester to main and proxy model. And fixing errors in functions flags(...), rowCount(...) and columnCount(...). Bent Witthold 2026-01-19 18:43:13 +01:00
  • caffa1c18a Added a ToStringRole to summarize the model items (for tool tip and QR code). Bent Witthold 2026-01-15 14:04:37 +01:00
  • c15e5425a7 Bumped version to 0.2.0. Bent Witthold 2026-01-14 10:27:33 +01:00
  • e06170dd59 Added the a function to find items containing the specified text. Returning an item selection. Bent Witthold 2026-01-12 15:00:06 +01:00
  • 738e1bdee1 Merge branch 'feature/proxySortFilterModel' into develop Bent Witthold 2026-01-12 10:18:35 +01:00
  • d78fc734c1 Appending and removing items are done via GeneralSortFilterModel instead of TableModel directly. Bent Witthold 2026-01-12 10:07:59 +01:00
  • a6512f2c67 Added a QSortFilterProxyModel subclass to enable sorting by different columns in the views. Bent Witthold 2026-01-12 09:56:50 +01:00
  • 3597fcf0b0 Merge branch 'feature/fileImportExportCsv' into develop Bent Witthold 2026-01-06 10:20:02 +01:00
  • 8d4260b18d Items can be saved before starting the updater. Bent Witthold 2026-01-06 10:15:01 +01:00
  • 99ed398c2f Simple implementation of CSV export. Bent Witthold 2026-01-06 10:04:26 +01:00
  • 3e6273cb7d Using the typedef ModelItemValues for "QHash<int, QVariant>". Bent Witthold 2026-01-04 17:48:27 +01:00
  • 2702b9c835 Simple implementation of CSV file import. Successfully imported items are appended to the model. Bent Witthold 2026-01-04 13:38:54 +01:00
  • 2ccbe3839a Merge branch 'feature/refactorModelMetaDataInCentralLocation' into develop Bent Witthold 2026-01-01 10:27:02 +01:00
  • 3266c99fc3 Bugfix: When parsing JSON data to item values all the values were converted to strings. Bent Witthold 2026-01-01 10:26:29 +01:00
  • b8fe4e6502 Iterating over USER_FACING_ROLES to get all the item values when parsing and keeping them in edit and remove commands. Instead of using each role explicitly. Bent Witthold 2025-12-31 10:39:32 +01:00
  • acb8be5602 Refactored JsonParser to not use roles (or their names) directly. Bent Witthold 2025-12-29 13:03:09 +01:00
  • 3610aa3841 Using "model/metadata.h" for file and JSON object naming as well. Using all upper case for naming static meta data constants and functions. Bent Witthold 2025-12-29 10:35:00 +01:00
  • 0c3d711513 Moved the model meta data for roles and columns into "model/metadata.h" to gather meta data like this in one central place. Bent Witthold 2025-12-29 10:30:12 +01:00
  • b2f01a7990 Merge branch 'feature/saveLoadItemsInFromFile' into develop Bent Witthold 2025-12-23 14:02:47 +01:00
  • 1fc1b1715d Items are loaded from default JSON file in standard location at startup. If no items are found in file, example items are generated. Bent Witthold 2025-12-23 13:40:33 +01:00
  • 0e1a0d4959 Items can be saved to JSON file "items.json" (in standard location). Bent Witthold 2025-12-23 10:14:13 +01:00
  • 2c3d49db30 Setting the application name with "-dev" suffix in debug builds and setting the organization name (for storing configs and other files in proper directory). Bent Witthold 2025-12-23 10:11:38 +01:00
  • c09aad88dc Merge branch 'feature/UndoRedoWithModelData' into develop Bent Witthold 2025-12-22 11:38:13 +01:00
  • e54204e394 Editing an item is now undo/redo-able. Bent Witthold 2025-12-15 18:04:14 +01:00
  • 772ab6b2ff Reordered function implementations according to declarations in header file. Bent Witthold 2025-12-12 13:22:27 +01:00
  • c75d35179b Deleting items from the model can now be made undone/redone. Bent Witthold 2025-12-11 15:49:16 +01:00
  • 0166a00d9d Adding new items to the model can now be made undone/redone. Bent Witthold 2025-12-11 15:46:28 +01:00
  • 432e81d4be Merge branch 'develop' into feature/UndoRedoWithModelData Bent Witthold 2025-12-09 09:57:22 +01:00
  • e21c899aac Bugfix: Last row could not be removed due to miscalculations of the bounds. Bent Witthold 2025-12-09 09:33:46 +01:00
  • 169d8f9f1e Items can be deleted from the model. Bent Witthold 2025-12-08 14:50:13 +01:00
  • d45b1098f9 Added default invalid parentIndex to TableModel::columnCount and added Q_UNUSED macro to suppress warnings. Bent Witthold 2025-12-08 13:33:05 +01:00
  • 4c906099eb Items can be added to model dynamically. Bent Witthold 2025-12-08 13:25:02 +01:00
  • 144460b5aa Start with the current data, when editing a table cell. Bent Witthold 2025-12-06 14:34:17 +01:00
  • 5b5713c89f Added a QUndoStack and made it accessible for UIs. Bent Witthold 2025-12-06 10:34:44 +01:00
  • a07e03d80d Deducing the column count of the table model from the header names. Bent Witthold 2025-12-04 15:54:53 +01:00
  • 40e1dd3002 A very simple version of editing model data. Bent Witthold 2025-12-04 11:30:30 +01:00
  • 16c524f7a2 Proper header names for the columns. Bent Witthold 2025-12-04 11:29:33 +01:00
  • 0dba9639e6 Added a ModelItem class to hold the data for each row. Bent Witthold 2025-12-03 11:07:39 +01:00
  • 6a3725bde7 Added a simple read-only TableModel and made it accessible via GenericCore. Basically like in this tutorial: https://doc.qt.io/qt-6/modelview.html#2-1-a-read-only-table Bent Witthold 2025-12-02 15:59:34 +01:00
  • 301d143b37 Updated core library project version to 0.1.0 Bent Witthold 2025-11-04 21:23:26 +01:00
  • 13b53683a5 Retrieving Application name from umbrella project and using it to determine the path of the QtMaintenanceTool. Bent Witthold 2025-11-01 10:52:04 +01:00
  • 7ba0304232 Added SettingsHandler class. Bent Witthold 2025-10-31 15:24:06 +01:00
  • d943f2d89a Added checking for update and triggering the updater. Bent Witthold 2025-10-31 14:47:27 +01:00
  • bddb6df3ee Formatting CMakeLists.txt Bent Witthold 2025-10-26 13:03:43 +01:00
  • 7ec346b5a5 Retrieving core name and version from CMakeLists.txt and use it in GenericCore::toString(). Bent Witthold 2025-10-03 11:15:06 +02:00
  • b631f4200e Added toString() method. Bent Witthold 2025-10-02 16:22:47 +02:00
  • 0bbac662f4 Using qDebug() instead of iostream::cout(). And formatted files with clangformat. Bent Witthold 2025-10-02 16:22:01 +02:00
  • b3718c211f Using TARGET_APP variable in CMakeLists.txt. Bent Witthold 2025-10-02 16:19:32 +02:00
  • fd32b85554 Added some console outputs to use library. Bent Witthold 2025-10-02 13:42:13 +02:00
  • 3447bbbb3b initial commit main Bent Witthold 2025-10-02 11:19:14 +02:00