mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Diagram text item : remove the function fontSize, and use instead font
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5765 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -488,8 +488,9 @@ QUndoCommand *DynamicElementTextModel::undoForEditedText(DynamicElementTextItem
|
||||
int fs = text_qsi->child(size_txt_row,1)->data(Qt::EditRole).toInt();
|
||||
if (fs != deti->font().pointSize())
|
||||
{
|
||||
QPropertyUndoCommand *quc = new QPropertyUndoCommand(deti, "fontSize", QVariant(deti->font().pointSize()), QVariant(fs), undo);
|
||||
quc->setAnimated(true, false);
|
||||
QFont font = deti->font();
|
||||
font.setPointSize(fs);
|
||||
QPropertyUndoCommand *quc = new QPropertyUndoCommand(deti, "font", QVariant(deti->font()), QVariant(font), undo);
|
||||
quc->setText(tr("Modifier la taille d'un texte d'élément"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user