6009 Commits

Author SHA1 Message Date
Martin Marmsoler
5666782e91 multipart edit 2020-06-11 11:12:17 +02:00
Martin Marmsoler
d000f611d8 - static_cast because it is a condition that it is PartTerminal 2020-06-11 11:12:17 +02:00
Martin Marmsoler
35896d5771 solves #7 2020-06-11 11:12:17 +02:00
Martin Marmsoler
8ffe50715d forgotten to commit texteditor 2020-06-11 11:12:17 +02:00
Martin Marmsoler
1c04ea0efb make partTextEditor capable to modify multiple parts at the same time 2020-06-11 11:12:17 +02:00
Martin Marmsoler
4bae1b902d multiterminal change 2020-06-11 11:12:17 +02:00
Martin Marmsoler
304ea00d7b WIP 2020-06-11 11:12:17 +02:00
Martin Marmsoler
f2c796bdb0 not needed, because it is the same than a few lines below 2020-06-11 11:12:17 +02:00
Martin Marmsoler
cccc4fc0c4 add comments 2020-06-11 11:12:05 +02:00
Martin Marmsoler
b7c2740778 replace foreach by for 2020-06-11 11:12:05 +02:00
Martin Marmsoler
e6f77ec369 Use uuid instead of an index to connect multiple elements 2020-06-11 11:12:05 +02:00
Martin Marmsoler
bb24e121eb move initialization to header, so it must not be done in every constructor 2020-06-11 11:12:05 +02:00
Martin Marmsoler
dd377eeb73 fix segmentation fault 2020-06-11 11:12:05 +02:00
Martin Marmsoler
19d494afcd fix nullpointer exception 2020-06-11 11:12:05 +02:00
Martin Marmsoler
6d782f4abb try to use TerminalData in Terminal and PartTerminal, sou the code must not be written double 2020-06-11 11:12:05 +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
7e9fd8df98 graphics table properties editor : Add two buttons new button
Add new two new buttons :
1. Adjust the selected table to fit as well into folio.
2. Set current geometry to all linked tables : Apply the geometry (pos,
height, width, row to display) of the selected table to all linked
tables.
2020-06-11 10:41:01 +02:00
Ole Carlsen
516435554a Danish translation updated 2020-06-09 14:10:22 +02:00
Laurent Trinques
e96a704215 Update fr en translation 2020-06-09 11:28:20 +02:00
Laurent Trinques
e3b5fbb5ac Update *TS files 2020-06-09 10:45:37 +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
4a3b7e708a QAbstractTableModel explicitly initialized in copy constructor
warning: base class ‘class QAbstractTableModel’
should be explicitly initialized in the copy constructor [-Wextra]
2020-06-08 21:14:15 +02:00
Ole Carlsen
521ed615d9 Minor Danish update 2020-06-08 18:43:43 +02:00
Laurent Trinques
fea245d485 Update polish translation, thanks Pawel 2020-06-08 03:55:36 +02:00
Simon De Backer
fe64923ffe fix deprecated warning QSet<T> QList<T>::toSet()
Use
QSet<T>(list.begin(), list.end())
instead.

This function was introduced in Qt 5.14
2020-06-08 03:52:51 +02:00
Simon De Backer
37658efd0d fix deprecated warning qUpperBound
Use
std::upper_bound
instead.
2020-06-07 16:42:41 +02:00
Simon De Backer
20a739fa96 fix deprecated warning QList::swap() attempt 2
Use
QList::swapItemsAt()
instead.

This function was introduced in Qt 5.13.
2020-06-07 16:42:26 +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
Simon De Backer
803414f716 remove user-defined copy constructor
We need to define our own copy constructor only
if an object has pointers or any runtime allocation
of the resource like file handle, a network connection..etc.

note: Default constructor does only shallow copy.
2020-06-07 16:41:42 +02:00
Claveau Joshua
9085c6fcda table item : remove a table remove also all linked tables 2020-06-05 20:00:13 +02:00
Claveau Joshua
ae9ef3cf21 Make a copie of previous table model when unlink a table from her previous table. 2020-06-04 14:17:14 +02:00
Claveau Joshua
8ad876fb31 Improve the use of the database 2020-06-03 19:46:27 +02:00
Claveau Joshua
b445ce8934 Nomenclature model : Improve function to setup the name of header 2020-06-03 19:15:21 +02:00
Claveau Joshua
042faeae32 Table widget : Enable arrow to quicly switch to previous/next linked table 2020-06-02 19:44:19 +02:00
Simon De Backer
de88b32e5b fix deprecated warning QPainter::drawRoundRect
Use
QPainter::drawRoundedRect
instead.

This function was introduced in Qt 4.4.
2020-06-02 06:23:17 +02:00
Simon De Backer
74c3fc8dd9 fix deprecated warning QTreeWidgetItem::setBackgroundColor
Use
setBackground()
instead.
This function was introduced in Qt 4.2.
2020-06-01 11:53:38 +02:00
Ole Carlsen
faf35c4985 Danish translation updated 2020-06-01 08:29:13 +02:00
Laurent Trinques
6b16f5b46d Add new conductors properties color and section 2020-05-31 22:33:25 +02:00
Simon De Backer
9b570525d3 fix deprecated warning QDrag::start
Use
QDrag::exec
instead.
2020-05-31 11:43:59 +02:00
Claveau Joshua
0897ed43fe Add table dialog : table config can saved and loaded.
The dialog used to edit the configuration of QetGraphicsTable item can
now save and load a configuration from graphics_table.json file located
in the user config dir.
2020-05-30 20:18:44 +02:00
Laurent Trinques
261abfa10b Revert "fix deprecated warning QList::swap()"
This reverts commit b5a33429df12a5ae5a1e21841faca612afea02cf.
2020-05-30 06:47:34 +02:00
Simon De Backer
b5a33429df fix deprecated warning QList::swap()
Use
QList::swapItemsAt()
instead.
2020-05-30 06:24:40 +02:00
Simon De Backer
09006dc75f fix deprecated warning QDir& QDir::operator=(const QString&)
This function is obsolete.

Use
QDir::setPath() instead
instead.
2020-05-30 06:24:04 +02:00
Simon De Backer
9ee911e484 fix -Wswitch warning
add default and Qt::MarkdownText
2020-05-30 06:23:43 +02:00
Claveau Joshua
27472bdd8b Nomenclature model don't save header data "display role"
The model doesn't save anymore the header data with role
Qt::displayRole.
The header display role is now generated in the fly, by concequent the
header displayed texts are always in the current local
2020-05-29 20:54:50 +02:00
Simon De Backer
70f0541e06 fix deprecated warning qVariantFromValue
This function is obsolete.
Note:
This function was provided as a workaround for MSVC 6
which did not support member template functions.
It is advised to use the other form in new code.

This function is equivalent to QVariant::fromValue(value).
2020-05-29 14:56:07 +02:00
Simon De Backer
86a4701d2b fix deprecated warning QLineF::intersect
This function is obsolete.

Use
QLineF::intersects(const QLineF &line, QPointF *intersectionPoint) const
instead.
This function was introduced in Qt 5.14.
2020-05-29 14:55:54 +02:00
Simon De Backer
0611fe2798 fix deprecated warning QTime::start()
Use
QElapsedTimer::QElapsedTimer()
instead.
This function was introduced in Qt 5.4.
2020-05-29 14:55:37 +02:00
Simon De Backer
22566a1bc6 fix deprecated warning QFontMetrics::width(QChar ch)
Use
QFontMetrics::horizontalAdvance(const QString &text, int len = -1)
instead.
This function was introduced in Qt 5.11.
2020-05-29 14:55:27 +02:00
Simon De Backer
addcdeb2a0 fix -Wmisleading-indentation warning
there were spaces used to indent the conditional line
2020-05-29 14:03:26 +02:00