mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-12 12:20:00 +01:00
Add a new tab in settings, user can select a font size, a rotation angle
and a text width by default for new dynamic text, it work also in element editor command. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5568 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -62,7 +62,7 @@ class PartText : public QGraphicsTextItem, public CustomElementPart {
|
||||
// Size value
|
||||
Q_PROPERTY(qreal size READ size WRITE setSize)
|
||||
qreal size () const {return font().pointSize();}
|
||||
void setSize (qreal s) {setFont(QETApp::diagramTextsFont(s));}
|
||||
void setSize (qreal s) {setFont(QETApp::dynamicTextsItemFont(s));}
|
||||
// Real size value
|
||||
Q_PROPERTY(qreal real_size READ realSize WRITE setRealSize)
|
||||
qreal realSize() const {return real_font_size_;}
|
||||
|
||||
Reference in New Issue
Block a user