mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-13 20:59:59 +01:00
revert some change in comit 2675:
Qt use enum for use flags: Qt is a good exemple to make code git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2686 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -549,7 +549,7 @@ bool CustomElement::parseText(QDomElement &e, QPainter &qp) {
|
||||
QFont used_font = QETApp::diagramTextsFont(size);
|
||||
QFontMetrics qfm(used_font);
|
||||
QColor text_color = (e.attribute("color") != "white"? Qt::black : Qt::white);
|
||||
|
||||
|
||||
// instancie un QTextDocument (comme la classe QGraphicsTextItem) pour
|
||||
// generer le rendu graphique du texte
|
||||
QTextDocument text_document;
|
||||
@@ -742,7 +742,7 @@ void CustomElement::setPainterStyle(QDomElement &e, QPainter &qp) {
|
||||
// attributs par defaut
|
||||
pen.setJoinStyle(Qt::BevelJoin);
|
||||
pen.setCapStyle(Qt::SquareCap);
|
||||
|
||||
|
||||
// recupere la liste des couples style / valeur
|
||||
QStringList styles = e.attribute("style").split(";", QString::SkipEmptyParts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user