BlockView cosmetics, more enums, fixed right-click on bus point/segment move
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "alignedtextitem.h"
|
||||
#include "blockbase.h"
|
||||
#include <QApplication>
|
||||
#include <QPainter>
|
||||
#include <QDebug>
|
||||
@@ -6,7 +7,7 @@
|
||||
|
||||
AlignedTextItem::AlignedTextItem(QGraphicsItem * parent): QGraphicsItem(parent), text_(this) {
|
||||
align_ = Qt::AlignTop | Qt::AlignHCenter;
|
||||
text_.setData(1003, true);
|
||||
text_.setData(bvidVisualizeSelection, true);
|
||||
setFont(font());
|
||||
_move();
|
||||
}
|
||||
@@ -14,7 +15,7 @@ AlignedTextItem::AlignedTextItem(QGraphicsItem * parent): QGraphicsItem(parent),
|
||||
|
||||
AlignedTextItem::AlignedTextItem(const QString & text, QGraphicsItem * parent): QGraphicsItem(parent), text_(this) {
|
||||
align_ = Qt::AlignTop | Qt::AlignHCenter;
|
||||
text_.setData(1003, true);
|
||||
text_.setData(bvidVisualizeSelection, true);
|
||||
setFont(font());
|
||||
setText(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user