mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-29 14:19:59 +01:00
Dynamic element text item : The font of the dynamic texts can be individually be setted.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5764 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -162,7 +162,21 @@ void DiagramTextItem::setFontSize(int s)
|
||||
|
||||
int DiagramTextItem::fontSize() const
|
||||
{
|
||||
return font().pointSize();
|
||||
return font().pointSize();
|
||||
}
|
||||
|
||||
void DiagramTextItem::setFont(const QFont &font)
|
||||
{
|
||||
if (this->font() == font) {
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
prepareAlignment();
|
||||
QGraphicsTextItem::setFont(font);
|
||||
finishAlignment();
|
||||
emit fontChanged(font);
|
||||
}
|
||||
}
|
||||
|
||||
void DiagramTextItem::setColor(const QColor& color)
|
||||
|
||||
Reference in New Issue
Block a user