mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-11 11:29:59 +01:00
Correction d'un bug dans l'initialisation de la classe Diagram
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@170 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
12
diagram.cpp
12
diagram.cpp
@@ -14,7 +14,14 @@ const qreal Diagram::margin = 5.0;
|
|||||||
Constructeur
|
Constructeur
|
||||||
@param parent Le QObject parent du schema
|
@param parent Le QObject parent du schema
|
||||||
*/
|
*/
|
||||||
Diagram::Diagram(QObject *parent) : QGraphicsScene(parent), qgi_manager(this) {
|
Diagram::Diagram(QObject *parent) :
|
||||||
|
QGraphicsScene(parent),
|
||||||
|
draw_grid(true),
|
||||||
|
use_border(true),
|
||||||
|
moved_elements_fetched(false),
|
||||||
|
qgi_manager(this),
|
||||||
|
draw_terminals(true)
|
||||||
|
{
|
||||||
setBackgroundBrush(Qt::white);
|
setBackgroundBrush(Qt::white);
|
||||||
conductor_setter = new QGraphicsLineItem(0, 0);
|
conductor_setter = new QGraphicsLineItem(0, 0);
|
||||||
conductor_setter -> setZValue(1000000);
|
conductor_setter -> setZValue(1000000);
|
||||||
@@ -24,9 +31,6 @@ Diagram::Diagram(QObject *parent) : QGraphicsScene(parent), qgi_manager(this) {
|
|||||||
t.setStyle(Qt::DashLine);
|
t.setStyle(Qt::DashLine);
|
||||||
conductor_setter -> setPen(t);
|
conductor_setter -> setPen(t);
|
||||||
conductor_setter -> setLine(QLineF(QPointF(0.0, 0.0), QPointF(0.0, 0.0)));
|
conductor_setter -> setLine(QLineF(QPointF(0.0, 0.0), QPointF(0.0, 0.0)));
|
||||||
draw_grid = true;
|
|
||||||
use_border = true;
|
|
||||||
moved_elements_fetched = false;
|
|
||||||
connect(this, SIGNAL(selectionChanged()), this, SLOT(slot_checkSelectionEmptinessChange()));
|
connect(this, SIGNAL(selectionChanged()), this, SLOT(slot_checkSelectionEmptinessChange()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user