183 Commits

Author SHA1 Message Date
Simon De Backer
694cbfb1b7 QT6: Todo Fix QtConcurrent (remove KCoreAddons?) 2020-10-03 16:04:54 +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
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
c7ffae7918 Fix Qt 6 deprecated Qt::SystemLocaleShortDate
The format options
Qt::SystemLocaleDate, Qt::SystemLocaleShortDate
and Qt::SystemLocaleLongDate
shall be removed in Qt 6.
	Their use should be replaced with
QLocale::system().toString(date, QLocale::ShortFormat)
or
QLocale::system().toString(date, QLocale::LongFormat).
2020-09-21 20:23:20 +02:00
Simon De Backer
5d92393ee7 Wrap code for better readability 2020-09-07 22:03:40 +02:00
Simon De Backer
9e4af439ef Wrap code for better readability 2020-08-25 20:52:49 +02:00
Claveau Joshua
0e6b385be2 Write backup improvement.
Remove the waitForFinished function to truly use the multi-threading.
2020-08-21 00:25:20 +02:00
Simon De Backer
88686b3cbf Wrap code for better readability 2020-08-20 17:45:24 +02:00
Simon De Backer
d1c91a7fc2 Fix some doxygen issues 2020-08-20 17:44:59 +02:00
Simon De Backer
8e956df8d8 Fix some doxygen issues 2020-08-18 21:28:52 +02:00
Simon De Backer
b5f212418c Improve code style, Wrap code for better readability 2020-08-17 21:24:46 +02:00
Simon De Backer
b28ca0361d Fix some doxygen issues 2020-08-17 21:24:20 +02:00
Simon De Backer
41cef49453 Improve code style, Wrap code for better readability 2020-08-16 14:26:40 +02:00
Simon De Backer
d4ee161c07 Mod doc set style de same 2020-08-16 11:19:36 +02:00
Yuki Atoh
770161ac57 Initial Japanese translation 2020-08-15 18:39:41 +09:00
Simon De Backer
7834d6fb84 Mod doc, Improve code style 2020-08-08 23:58:17 +02:00
Simon De Backer
06dc1570fc Test writeToFile on a other Thread
to improve this for windows performance
2020-08-06 22:19:44 +02:00
Claveau Joshua
78992ee762 Fix backup file on windows
For unknown reason KautoSaveFile don't write the file on Windows if file
is open in another part of the code.
No error is returned and use the method :
qint64 QIODevice::write(const QByteArray &byteArray) return the good
number of bytes written but the real file stay empty.
Probably the problem don't come from KautoSaveFile but QFileDevice or
QIODevice on windows.

The fix consist to open the file just before write on it and close it
just after.
2020-08-02 22:24:46 +02:00
Claveau Joshua
1fc893157d Minor fix
Fix : During the opening of a project, if the project contain a
nomenclature, the dialog used to inform user that the table is too small
is displayed
2020-08-02 18:20:30 +02:00
Claveau Joshua
ac49ecce7d Fix wrong position of slave xref after open a saved project 2020-07-15 20:48:52 +02:00
Claveau Joshua
132f3ad1b4 Remove old summary feature 2020-07-14 20:00:28 +02:00
Claveau Joshua
31ce923580 fix crash 2020-07-07 22:11:39 +02:00
Claveau Joshua
dae4329699 Update project database class
Add method :
addDiagram and removeDiagram
2020-07-06 21:52:14 +02:00
Laurent Trinques
e10ae8ce2e Update Copyright date 2020-06-15 17:42:53 +02:00
Martin Marmsoler
77a2ceea7d regarding to joshuas email, toXml uses a new structure. So it is changed in the properties interface and xrefproperties 2020-06-14 13:29:25 +02:00
Laurent Trinques
22e619d6b9 Revert pull request #48 2020-06-14 07:35:52 +02:00
Martin Marmsoler
8c6b4120f5 regarding to joshuas email, toXml uses a new structure. So it is changed in the properties interface and xrefproperties 2020-06-13 16:26:22 +02:00
Laurent Trinques
3e1740cee0 Revert Martin pull request for now, and return to last 7e9fd8df9 commit 2020-06-11 13:19:30 +02:00
Martin Marmsoler
dcbcb5391f regarding to joshuas email, toXml uses a new structure. So it is changed in the properties interface and xrefproperties 2020-06-11 11:12:05 +02:00
Claveau Joshua
7ea42752a4 Change the way how a diagram is added
Now it's the project itself who manage the adding of diagram instead of
the diagram view, it's more coherent
2020-05-24 16:24:39 +02:00
Claveau Joshua
908d79925c save/load QetGraphicsTableItem to/from .qet file 2020-04-17 18:40:28 +02:00
Laurent Trinques
73149973e3 Merge remote-tracking branch 'origin/QetGraphicsTableItem' 2020-04-12 18:51:38 +02:00
Claveau Joshua
5c6f556ad3 Minor revamp
Remove unused include.
QETproject : Default titleblock are set in the default constructor
instead of set by qetdiagrameditor.
conductor, border, report and xref propertie are now set in the header
of QETProject instead of set by the qetdiagrameditor just after the
creation of a new project.
2020-04-09 16:58:05 +02:00
joshua
8cc34d5f6a Simplify how a project is save
Probably only on windows, sometime the .qet file is empty after saving.
With this commit we simplify the save function, by avoiding to import an
xml node from another one, so we minimize the risk of failure.
2019-09-30 20:03:24 +02:00
blacksun
21de961933 Windows fix : When launch QElectrotech with in argument a .qet file, QElectroTech ask to user to open the restore file of the argument file.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5928 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-22 11:24:59 +00:00
blacksun
a912bfb380 Fix : unable to save a new project.
The fix is weird, need more information about QFileInfo


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5813 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-29 20:51:24 +00:00
blacksun
154575d38a Use KAutoSaveFile for the backup system, instead of home made function.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5788 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-03-16 10:50:30 +00: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
2274382219 Title block : add two news variables, previous-folio-num and next-folio-num
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5664 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-12-28 18:39:54 +00:00
scorpio810
b7e48c8e09 Change saveddate (title block variable) static date format "yyyy-MM-dd"
to System Locale Short Date


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5503 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-09-14 04:08:04 +00:00
scorpio810
92a4d0f88e Add '%savedfilename' and '%savedfilepath' title block variables
They should be updated after file save or save as dialog is confirmed,
before file is saved.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5471 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-08-06 17:20:50 +00:00
scorpio810
4d720d04a6 '%saveddate' and '%savedtime' title block variables should be updated
after file save or save as dialog is confirmed, before file is saved.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5468 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-08-06 16:12:00 +00:00
scorpio810
54981b425e title block editor : add '%saveddate' and '%savedtime' as available
values, for moment only when user "save as" project


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5467 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-08-06 15:32:19 +00:00
scorpio810
ff7b2226e1 title block editor : show 'projectfilename' as available value
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5464 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-08-05 16:27:14 +00:00
scorpio810
bf974f1956 Fix bug 164 :
title block editor : show 'projectpath' as available value


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5463 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-08-05 15:04:15 +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
blacksun
c19ec8c65a Bugfix :
1- When open a .qet by double click on it, QET ask user for open the backup file, of this .qet.
2- On windows, if user open a project from the recent files menu, when close QET the file is deleted :(  user lose her work


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5383 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-06-01 18:33:08 +00:00
blacksun
f19a794d4b Diagram editor, add two news feature:
1- QET create a backup file, use to restor the project when a crash occur
2- User can enable and edit autosave.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5374 bfdf4180-ca20-0410-9c96-a3a8aa849046
2018-05-24 18:08:06 +00:00