Commit Graph

130 Commits

Author SHA1 Message Date
Simon De Backer 30b8205f82 Mod some qWarning add QObject::tr 2020-09-24 22:39:11 +02:00
Simon De Backer 36dbe65457 Add TODO compile var + Fix doxygen issue
You can make your code warn on compile time for the TODO's
In order to do so, uncomment the following line. in pro file
DEFINES += TODO_LIST
2020-09-24 17:01:33 +02:00
Simon De Backer b5ae1237e3 Fix QRegularExpression
-add isValid
-add debug
2020-09-23 21:36:48 +02:00
Simon De Backer e0c8dd9585 Fix Revert deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users
This function was introduced in Qt 5

see https://qelectrotech.org/forum/viewtopic.php?pid=13406#p13406
2020-09-23 19:03:13 +02:00
Simon De Backer 77321f6b70 Revert "Fix deprecated QRegExp"
This reverts commit 0a46b83dca.
see https://qelectrotech.org/forum/viewtopic.php?pid=13378#p13378
2020-09-22 21:12:10 +02:00
Simon De Backer 2a69e540d6 Fix Qt 6 definition of macro ‘Q_DECLARE_MOVABLE_CONTAINER’
adding #include <QHash>

+ code fail to compile if it uses deprecated APIs.
=> see .pro file
2020-09-21 21:19:50 +02:00
Simon De Backer 0a46b83dca Fix deprecated QRegExp
Use QRegularExpression instead.

https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users

This function was introduced in Qt 5
2020-09-19 01:11:08 +02:00
Simon De Backer 5d92393ee7 Wrap code for better readability 2020-09-07 22:03:40 +02:00
Simon De Backer 504a061e71 Add loading time of collections inf to log 2020-08-31 21:22:26 +02:00
Simon De Backer 995066916b Decreases the number of declaring variables
for improve readability
2020-08-24 22:10:58 +02:00
Simon De Backer debca09d5c Translate documentation + Fix indentation 2020-08-24 22:02:22 +02:00
Simon De Backer 0c00d83b27 Fix some doxygen issues 2020-08-20 21:57:35 +02:00
Simon De Backer cdb2e7b523 Wrap code for better readability 2020-08-19 21:27:14 +02:00
Simon De Backer 666f20856e Fix some doxygen issues 2020-08-19 21:26:36 +02: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 4ed33109f4 Improve code style, Wrap code for better readability 2020-08-16 14:21:55 +02:00
Simon De Backer d4ee161c07 Mod doc set style de same 2020-08-16 11:19:36 +02:00
Simon De Backer 90417ae509 Fix Copyright indentation 2020-08-16 09:40:14 +02:00
Simon De Backer 11a90d2f69 Remove code minium QT_VERSION 5.9 2020-08-12 22:04:46 +02:00
Simon De Backer 69ff437368 Mod doc, Improve code style 2020-08-12 21:59:00 +02:00
Simon De Backer 7834d6fb84 Mod doc, Improve code style 2020-08-08 23:58:17 +02:00
Simon De Backer 49cca54adc Wrap code for better readability 2020-07-24 22:44:32 +02:00
Simon De Backer c0df06c2ee Mod doc set style de same 2020-07-24 22:44:10 +02:00
Simon De Backer fe4552200b Add compiler message @TODO 2020-07-19 22:06:42 +02:00
Laurent Trinques 68116f4664 Fix indentation code 2020-07-15 23:00:21 +02:00
Laurent Trinques e10ae8ce2e Update Copyright date 2020-06-15 17:42:53 +02:00
Simon De Backer 2ec018a4e9 fix deprecated warning QString::SplitBehavior
enum QString::SplitBehavior This enum is obsolete.

Use Qt::SplitBehavior instead.
This enum was introduced or modified in Qt 5.14.
2020-06-12 05:52:50 +02:00
Martin Marmsoler d1742d5685 when model is not yet loaded, but the element editor should be opened, a segmentation fault occurs. Do not set current index when m_model is not yet loaded 2020-06-09 10:01:32 +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 0015f4a694 Qet graphics table item can be removed from diagram 2020-05-12 11:17:25 +02:00
Claveau Joshua f8dcdec735 Improve loading time 2020-01-23 10:45:14 +01:00
Claveau Joshua f297e28b64 Loading elements collections doesn't freeze gui anymore. 2020-01-19 11:53:40 +01:00
Claveau Joshua ed2e72e995 Minor improvement about using pugixml 2020-01-18 20:03:24 +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 3492540d53 Use pugixml for parse local name of directory and element informations 2020-01-04 23:33:35 +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
joshua 6398feba0d Minor pugi improvement 2020-01-04 13:50:58 +01:00
joshua 674e9e31a5 Add pugi_xml test branch 2020-01-04 11:30:43 +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
blacksun 58ef54090e Element panel : elements can be searched by their name but also with by all their informations.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5698 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-01-04 22:06:34 +00:00
blacksun c64b74d328 Fix : On windows when user drag and drop an element from the common elements collection to the custom elements collection,
the element file stay in read only mode, and so user can't save the element



git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5648 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-13 21:39:44 +00:00
scorpio810 eb1028ec9a Add other country names
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5554 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-10-12 00:21:04 +00:00
scorpio810 6842abcf9a Add Translator, contributor
Add Turkish Unicode binary character name


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5553 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-10-11 23:37:56 +00:00
blacksun e6d73977c1 1-Use the "implicite shared" of Qt for the QPicture and QPixmap of element (https://doc.qt.io/qt-5/implicit-sharing.html).
This avoid to parse the same element definition each time user drop the same element in the diagram.
Only the first element build the picture, all other get the created picture which is shared.

2- For use the "implicite shared" QPicture and QPixmap of element, now this isn't the element who build her picture, but a dedicated class who made only this job : build the QPicture and QPixmap of elements.

3- With the two previous novelty, the class CustomElement and GhostElement are became useless, and so was removed.
Some few member function of CustomElement was moved to Element.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5492 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-08-23 19:41:58 +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