version 2.22.0

blockview small code clean
add PIValueTree to BLockItem, BlockItemPin and BlockBusItem
add QAD::CursorOverrider::restore()
fix QCodeEdit escape key while block selection
This commit is contained in:
2024-01-14 11:45:28 +03:00
parent e2a91a4fbd
commit c3dcf36a20
10 changed files with 135 additions and 48 deletions

View File

@@ -33,6 +33,7 @@
#include <QGraphicsView>
#include <QPropertyAnimation>
#include <QStack>
#include <pivaluetree.h>
#include <qmath.h>
@@ -45,6 +46,8 @@ class QAD_BLOCKVIEW_EXPORT BlockItemPin
, public PropertyStorage {
friend class BlockView;
friend class BlockItem;
friend QDataStream & operator<<(QDataStream & s, const BlockItemPin * p);
friend QDataStream & operator>>(QDataStream & s, BlockItemPin *& p);
Q_OBJECT
Q_PROPERTY(double pinSize READ pinSize WRITE resizePin DESIGNABLE false SCRIPTABLE false)
@@ -92,6 +95,7 @@ public:
void enlargePin(bool enlarge);
PIValueTree & values() { return value_tree; }
BlockItem * parent() const { return parent_; }
QList<BlockBusItem *> connectedBuses() const { return buses_; }
@@ -119,6 +123,7 @@ protected:
BlockItem * parent_;
Qt::Alignment align;
QBrush br[6];
PIValueTree value_tree;
private slots:
void animationAccept();