[qet] [2939] Basic shapes crossrefitem: update to cosmetic changes |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2939
Author: scorpio810
Date: 2014-03-20 12:56:06 +0100 (Thu, 20 Mar 2014)
Log Message:
-----------
Basic shapes crossrefitem: update to cosmetic changes
Modified Paths:
--------------
trunk/sources/qetgraphicsitem/crossrefitem.cpp
trunk/sources/qetgraphicsitem/qetshapeitem.cpp
Modified: trunk/sources/qetgraphicsitem/crossrefitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/crossrefitem.cpp 2014-03-19 21:05:24 UTC (rev 2938)
+++ trunk/sources/qetgraphicsitem/crossrefitem.cpp 2014-03-20 11:56:06 UTC (rev 2939)
@@ -53,12 +53,8 @@
//init the painter
QPainter qp(&drawing_);
QPen pen_;
-
-#ifdef Q_WS_WIN
- pen_.setWidth(1);
-#elif Q_WS_MAC
- pen_.setWidth(0.5);
-#endif
+ pen_.setWidthF(0.5);
+ pen_.setCosmetic(true);
qp.setPen(pen_);
//calcul the size
@@ -156,7 +152,9 @@
painter->save();
QPen t(Qt::black);
t.setStyle(Qt::DashLine);
+ t.setCosmetic(true);
painter -> setPen(t);
+ painter -> setRenderHint(QPainter::Antialiasing, false);
painter->drawRect(boundingRect());
painter->restore();
}
@@ -238,7 +236,8 @@
else if (state == "NC") NC_list << elmt;
}
- painter->setFont(QETApp::diagramTextsFont(6));
+ painter -> setFont(QETApp::diagramTextsFont(4));
+ painter -> setRenderHint(QPainter::Antialiasing, false);
//fill the NO
QString contact_str;
foreach (Element *elmt, NO_list) {
Modified: trunk/sources/qetgraphicsitem/qetshapeitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qetshapeitem.cpp 2014-03-19 21:05:24 UTC (rev 2938)
+++ trunk/sources/qetgraphicsitem/qetshapeitem.cpp 2014-03-20 11:56:06 UTC (rev 2939)
@@ -104,13 +104,8 @@
painter -> setRenderHint(QPainter::Antialiasing, false);
QRectF rec = boundingRect();
QPen pen(Qt::black);
+ pen.setWidthF(0.5);
-#ifdef Q_WS_WIN
- pen.setWidth(1);
-#elif Q_WS_MAC
- pen.setWidth(0.5);
-#endif
-
if (isSelected())
pen.setColor(Qt::red);
pen.setStyle(_shapeStyle);