mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-20 11:09:58 +01:00
cross ref item : show the master comment at the bottom of cross
element : improve the function to sort an element list qet graphics item : add a bool to disable the snap to grid (used for cross ref item, to be exactly at the bottom of element) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2948 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -39,6 +39,7 @@ class CrossRefItem : public QetGraphicsItem
|
||||
~CrossRefItem();
|
||||
|
||||
QRectF boundingRect() const;
|
||||
virtual QPainterPath shape() const;
|
||||
|
||||
signals:
|
||||
|
||||
@@ -52,15 +53,16 @@ class CrossRefItem : public QetGraphicsItem
|
||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *e);
|
||||
|
||||
private:
|
||||
void setUpBoundingRect();
|
||||
void fillCrossRef(QPainter *painter);
|
||||
void setUpBoundingRect(QPainter &painter);
|
||||
void fillCrossRef(QPainter &painter);
|
||||
void fillExtraInfo(QPainter &painter);
|
||||
|
||||
//Attributes
|
||||
private:
|
||||
Element *element_; //element to display the cross reference
|
||||
QRectF bounding_rect_;
|
||||
QRectF bounding_rect_ , text_rect_;
|
||||
QPicture drawing_;
|
||||
bool b;
|
||||
QPainterPath shape_path_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user