Commit Graph

79 Commits

Author SHA1 Message Date
1f55f21589 Update to CMakeTools with better package_library_headers function 2024-05-18 09:43:01 -04:00
66b6643f3d Fix qjson header packaging and exporting 2024-05-18 02:55:40 -04:00
56d08e1ffd Replace CMake modules with those from a submodule repository 2024-05-16 21:13:06 -04:00
3ba29fded2 Prepare to make CMake subdirectory a submodule 2024-05-16 19:58:34 -04:00
d2e421ba76 Fix Cmake macro that disables unit tests when invoked as a subproject 2024-05-11 16:28:11 -04:00
1bae9c555c Give each class a separate header; hide QJsonItem behind include/details folder 2024-05-11 09:29:30 -04:00
fd29e49f55 QJsonModel enum flags defined and renamed for consistency 2024-05-11 09:04:56 -04:00
1742000fbc Prevent blank key names 2024-05-06 22:32:19 -04:00
3cbc48e1f3 Fix: Allow key changes for objects and array values. 2024-05-05 23:54:24 -04:00
cd6fac3950 Fix reversed return value logic in QJsonModel::load methods 2024-05-05 19:53:08 -04:00
931009bc38 Fully implement field permissions 2024-05-05 19:41:30 -04:00
b808212679 Standardize cmake project name; bump version 2024-05-05 15:25:43 -04:00
d16b11e83c Add parameter FieldPermissions to QJSonModel constructors.
This will control whether or not the QJSonModel's "key" and "value"
fields are read-only, or writeable by users.
2024-05-05 15:24:28 -04:00
c728cdc8ca Give each class a separate header; hide QJsonItem behind include/details folder 2024-05-03 23:09:57 -04:00
257a9be149 Fix unclear naming conventions; switch to c++-style casts. 2024-05-03 22:38:19 -04:00
eb8a3b5ea7 Add clang-format, clang-tidy; reindent files, increas readability 2024-05-03 22:20:24 -04:00
fbff9261ef Fix incorrect public include directory 2024-05-02 22:20:39 -04:00
5b731ede5a Bump to version 0.0.3 2024-05-02 21:26:56 -04:00
9d5ef51983 Fix include_files target, not using dirname in the copy call anymore 2024-05-02 21:24:55 -04:00
8f3219bc7d Overhaul how header paths are passed to client targets 2024-05-02 20:54:40 -04:00
7403e99d33 Improve export alias names for the different builds 2024-05-02 20:31:27 -04:00
a27fc38ef6 Fix typo in Module name. JsonModel -> QJsonModel 2024-05-02 20:07:52 -04:00
e416b193e5 CMakeLists.txt: prepend local CMake modules to search path, rather than append 2024-05-02 20:00:56 -04:00
b6d5b20aec Remove spurrious header in QJsonModel.hpp 2024-05-02 19:51:41 -04:00
8c281ceeb2 Update screenshot reference in README.md and update build instructions 2024-05-02 19:50:52 -04:00
f43c72906c Properly ensure that all header files are passed through moc and that moc_sources are added to each compilation target. 2024-05-02 19:42:26 -04:00
95b76b3d74 Convert to CMake project; add object,static,shared targets.
Removed python support for now. Sorry, python users.
2024-05-02 19:16:43 -04:00
65aa28dd7f Update for Qt6 to remove deprecation warnings 2024-04-29 01:41:27 -04:00
sacha schutz
ede66dd1ec
Merge pull request #26 from phoenixsc18/json-compact-output
#25 Extend json() method in QJsonModel to take a parameter whether or…
2023-09-01 22:50:28 +02:00
sacha schutz
d5c79ae6e2
Merge pull request #22 from eugesh/comments
Ignore "comment" tags (Exceptions)
2023-09-01 22:49:50 +02:00
Samson Chu
fae694be15 #25 Extend json() method in QJsonModel to take a parameter whether or not to format the output compact. Be default it is false to lessen impact on existing use of this method. 2023-08-09 18:35:25 -04:00
Evgeny Shtanov
b80c666a42 Ignore "comment" tags (Exceptions)
Signed-off-by: Evgeny Shtanov <shtanov_evgenii@mail.ru>
2022-06-20 10:57:02 +03:00
sacha schutz
cef8105002
Merge pull request #21 from eugesh/code_style
Qt code style
2022-06-17 22:42:01 +02:00
Evgeny Shtanov
47dea3309f Qt code style
In Qt6 Q_DECL_OVERRIDE is deprecated too.

Signed-off-by: Evgeny Shtanov <shtanov_evgenii@mail.ru>
2022-06-17 23:32:58 +03:00
sacha schutz
c73ed6c97a
Merge pull request #19 from siyuhong/master
fix double value save as scientific notation
2022-01-20 12:39:36 +01:00
carlos
6da5ad2a75 fix jsonvalue(double) value save as scientific notation:
add function to convert QJsonValue to QByteArray (refer to Qt src)
2021-09-08 21:05:01 +08:00
sacha schutz
adfc1e44f3
Merge pull request #18 from siyuhong/master
perfect
2021-08-22 14:27:36 +02:00
Siyu.Hong
ce60055c2d add bool type support in export json 2021-08-22 19:50:53 +08:00
sacha schutz
a9f937b493
Merge pull request #17 from davidlatwe/master
[Python] Fix list element sorting in view, add QJsonModel.clear
2020-10-20 23:03:06 +02:00
David Lai
2922fb0e27 Add QJsonModel.clear
This also fixed the test.
2020-10-21 00:14:19 +08:00
David Lai
58776505f9 Change to keep list index as int for sorting 2020-10-21 00:09:54 +08:00
sacha schutz
1386e400fd
Merge pull request #9 from marcelino-m/master
Fix: Root TreeItem (Object and  Array) are not editable
2018-11-25 11:13:52 +01:00
sacha schutz
701b91231c
Merge pull request #10 from mottosso/master
Added support for Python 2, 3 and PySide/PySide2/PyQt4/PyQt5
2018-11-21 17:50:29 +01:00
sacha schutz
f43b78e778
Merge pull request #11 from patrickelectric/corrections
Update constructor
2018-07-16 20:36:57 +02:00
Patrick José Pereira
9e5d99383b Update constructor
- Add more constructors
 - Move constructor to c++11

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-07-16 14:59:37 -03:00
Marcus Ottosson
01ec0291ea
Add instructions for installation of dependencies 2018-05-06 21:04:18 +09:00
Marcus Ottosson
662f1e3e0e Implement support for Python 2018-05-06 16:21:02 +09:00
Marcelo M. A
b7c5d9e279 Fix: Root TreeItem (Object and Array) are not editable
Prevent enter in edit mode when "double click" on root item,
The root item represent objects and arrays
2018-03-23 20:23:36 -03:00
sacha schutz
eab788618b
Merge pull request #8 from marcelino-m/master
Make QJsonModel Editable
2018-03-22 00:15:05 +01:00
Marcelo M. A
1a167ed496 Rebuild QJsonDocument from the Model
When edit  the json  from the  view, it  is possible  to get  back the
edited json

Implemented public method:
  - QJsonModel::json
2018-03-21 20:00:57 -03:00