version 2.17.0
iconedlabel icon size scale in auto scale mode BlockItem decors visibility logic flags
This commit is contained in:
@@ -32,6 +32,7 @@ class QAD_BLOCKVIEW_EXPORT BlockItem
|
||||
friend class BlockView;
|
||||
friend class BlockItemPin;
|
||||
friend class DrawTools;
|
||||
friend class BlockEditor;
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(double _thickness READ thickness WRITE setThickness DESIGNABLE false SCRIPTABLE false)
|
||||
Q_PROPERTY(QRectF _selRect READ selectionRect WRITE setSelectionRect DESIGNABLE false SCRIPTABLE false)
|
||||
@@ -109,6 +110,8 @@ protected:
|
||||
double bottom() const { return boundingRect().bottom(); }
|
||||
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr) {}
|
||||
QVariant itemChange(GraphicsItemChange change, const QVariant & value);
|
||||
void setHovered(bool yes);
|
||||
void procDecorShowLogic();
|
||||
|
||||
QGraphicsRectItem g_main, g_selection;
|
||||
int pins_margin;
|
||||
@@ -125,6 +128,7 @@ private:
|
||||
|
||||
QPropertyAnimation anim_thick, anim_sel;
|
||||
QElapsedTimer t_sel;
|
||||
bool is_hovered = false, is_blockeditor = false;
|
||||
|
||||
signals:
|
||||
void blockHoverEnter(BlockItem * b);
|
||||
|
||||
Reference in New Issue
Block a user