mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
Basic shapes set pen.setWidthF(1) to all platforms
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3401 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -175,12 +175,8 @@ void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
|||||||
if (isSelected()) pen.setColor(Qt::red);
|
if (isSelected()) pen.setColor(Qt::red);
|
||||||
painter -> setRenderHint(QPainter::Antialiasing, false);
|
painter -> setRenderHint(QPainter::Antialiasing, false);
|
||||||
painter->setPen(pen);
|
painter->setPen(pen);
|
||||||
|
|
||||||
// TODO for printing line type on Windows
|
|
||||||
|
|
||||||
#ifdef Q_WS_WIN
|
|
||||||
pen.setWidthF(1);
|
pen.setWidthF(1);
|
||||||
#endif
|
|
||||||
|
|
||||||
switch (m_shapeType) {
|
switch (m_shapeType) {
|
||||||
case Line:
|
case Line:
|
||||||
|
|||||||
Reference in New Issue
Block a user