52 Commits

Author SHA1 Message Date
Pascal Sander
c31cab34e4 Check QAbstractItemModel for nullptr before access. #2 2025-08-17 10:33:04 +02:00
Laurent Trinques
adcf77e34a Replacing modules includes <QtConcurrent> with QtConcurrentRun and
QtConcurrentMap

Signed-off-by: Laurent Trinques <scorpio@qelectrotech.org>
2025-02-14 14:07:41 +01:00
Laurent Trinques
77bfe84a4c One year 2025-01-04 13:37:40 +01:00
plc-user
f33ea64b99 correct more indentations / whitespace (too many tabs) 2024-04-24 18:21:12 +02:00
plc-user
fa68d545d0 correct more indentations / whitespace 2024-04-24 14:14:40 +02:00
Laurent Trinques
e73cf633ce 2023->2024 2024-03-29 10:09:48 +01:00
plc-user
f519499a66 added a second user-collection 2023-12-09 12:02:04 +01:00
Laurent Trinques
9afef79629 Update Copyright date 2023-01-01 17:05:57 +01:00
luz paz
1994235bc5 Fix various typos in source documentation and comments (cont.)
Found via `codespell`
2022-12-04 20:46:32 +01:00
Simon De Backer
332d978043 [QT6] QtConcurrent its backwards now...function, object, args 2021-03-07 19:58:49 +01:00
Laurent Trinques
ef58f34c14 Update Copyright date 2021-02-20 12:13:46 +01:00
joshua
2513961cd6 Revert "Update Copyright date"
This reverts commit d04bccc384aa8b9dc16e4432ac72ccb787b2508b.
2021-02-06 19:00:48 +01:00
Laurent Trinques
d04bccc384 Update Copyright date 2021-02-06 18:33:42 +01:00
Simon De Backer
10c4c3d528 Wip Fix preprocessor on Cmake 2020-12-08 19:57:35 +01:00
Simon De Backer
99abc165d6 Wrap code for better readability 2020-08-18 20:08:32 +02:00
Simon De Backer
790cdc5229 Fix some doxygen issues (~100) 2020-08-18 20:07:55 +02:00
Simon De Backer
d4ee161c07 Mod doc set style de same 2020-08-16 11:19:36 +02:00
Simon De Backer
7834d6fb84 Mod doc, Improve code style 2020-08-08 23:58:17 +02:00
Laurent Trinques
e10ae8ce2e Update Copyright date 2020-06-15 17:42:53 +02:00
Simon De Backer
24528b0fdb fix deprecated warning QModelIndex::child
Use
QModelIndex::index
instead.

This function was DEPRECATED_SINCE(5, 8)
2020-06-07 16:42:17 +02:00
Claveau Joshua
f297e28b64 Loading elements collections doesn't freeze gui anymore. 2020-01-19 11:53:40 +01:00
Claveau Joshua
dca44566e8 Clean code 2020-01-17 19:33:13 +01:00
joshua
3d051419a5 Improve file access on windows and mac OSX 2020-01-09 10:26:10 +01:00
joshua
eb903a12b0 Add option to switch between Qtxml or pugi xml. Add dialog to display the elpsaed time of collection loading. 2020-01-04 15:59:27 +01:00
Laurent Trinques
2435d23334 Add QFutureWatcher 2019-11-27 17:41:51 +01:00
scorpio810
3ed7a4e63b Minor : update Copyright date
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5705 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-01-13 16:56:12 +00:00
scorpio810
30bee81432 Revert r5449 and disable r5452 momentary : Load time from elements is
very slow


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5461 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-30 15:24:29 +00:00
scorpio810
b97b01d63c Apply clang-tidy's modernize-use-auto
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5449 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-19 16:27:20 +00:00
scorpio810
e4b1ba9797 Apply clang-tidy's performance-unnecessary-value-param, performance-for-
range-copy


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5448 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-07-19 14:14:31 +00:00
scorpio810
41659fa6fd Revert r4900
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4902 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-05 16:18:50 +00:00
scorpio810
6422dd096f Replace foreach function by for, please try and report problem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4900 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-02-04 21:43:23 +00:00
scorpio810
54c85db29c Minor update Copyright year
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4860 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-20 10:55:49 +00:00
blacksun
6f498977c5 Bad behavior fix : in element collection tree, when user drop a directory into itself, this directory is copied in recursive way infinitely.
See bug report N° 121


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4831 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-01-03 16:47:39 +00:00
blacksun
72b613f348 When add a new project, load only items of project, instead of reload every items owned by the model
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4616 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-08-10 05:23:48 +00:00
blacksun
df1db0adc3 ElementsCollectionModel : model use multithreading itself for load collections
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4576 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-07-14 11:58:56 +00:00
blacksun
518f0efd46 Project embedded collection, Clean unused elements and empty directory work again
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4568 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-07-09 18:24:40 +00:00
blacksun
438ce78c4f element collection widget : highlight unused element in a project.
the feature "clean project" does not clean unused elements yet


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4561 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-06-30 09:12:25 +00:00
blacksun
18f56b6540 Element panel widget : improve how an item is updated or added after editing an element with the Qet Element Editor.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4555 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-06-17 08:41:09 +00:00
blacksun
1b00a457d7 elements collection model : use QStandardItemModel has base class instead of QAbstractItemModel.
Add minor improvement.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4538 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-06-05 16:34:46 +00:00
blacksun
8555b1a1f2 New element panel : Fix double insertion of item when drop an item in the embedded collection of project
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4500 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-05-22 16:28:40 +00:00
blacksun
8dd3e7394a New Element Wizard : tree view only display directory
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4484 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-05-15 14:46:01 +00:00
scorpio810
025fa64f67 Minor : update Copyright date
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4481 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-05-13 17:40:36 +00:00
blacksun
168467abb0 Improve the way how an element is updated in the new element panel.
Now Qet only use the new embbeded collection (XmlElementCollection).
No need to reload the old element panel for add a new element created by the new element panel
Elements are always imported to the embbeded collection of a project


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4468 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-05-05 13:31:04 +00:00
blacksun
73e21c408d New element panel : user can drag & drop item from project collection to another project collection
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4371 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-03-06 14:40:52 +00:00
blacksun
a35ce68d7a New elements panel : fix crash at drag and drop due to a wrong use of QAbstractItemModel
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4353 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-02-24 10:43:40 +00:00
blacksun
6f6561be01 Change the way how an element or directory is copied, this isn't the role of the new panel to manage the copy.
We must to use elementcollectionhandler instead


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4343 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-02-13 12:51:56 +00:00
blacksun
7ead0b64b0 Element collection : improve drag and drop behavior
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4325 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-16 14:25:20 +00:00
blacksun
7fdcb0060c xmlElementCollection : collection can add new item.
elementsCollectionModel : Up to date the content when a new item is added to the embedded collection of a project.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4312 bfdf4180-ca20-0410-9c96-a3a8aa849046
2016-01-08 17:01:51 +00:00
blacksun
4f222d2843 New element panel can read the embedded collection of project (only at opening, other fonctionnality isn't created yet)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4287 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-12-16 17:16:15 +00:00
blacksun
ed28d06d9d Improve the remove of an item in the new panel. No need to reload the collection, use QAbstractItemModel::removeRows instead.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4285 bfdf4180-ca20-0410-9c96-a3a8aa849046
2015-12-12 11:09:31 +00:00