From c21f0b40171b6051647a327e723053b6ce23e54a Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Wed, 19 Mar 2014 15:18:25 +0000 Subject: [PATCH] crossrefitem fix printing on X11 git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2936 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetgraphicsitem/crossrefitem.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sources/qetgraphicsitem/crossrefitem.cpp b/sources/qetgraphicsitem/crossrefitem.cpp index 98c907143..5fe69c61a 100644 --- a/sources/qetgraphicsitem/crossrefitem.cpp +++ b/sources/qetgraphicsitem/crossrefitem.cpp @@ -53,7 +53,12 @@ void CrossRefItem::updateLabel() { //init the painter QPainter qp(&drawing_); QPen pen_; - pen_.setWidth(1); + +#ifdef Q_WS_WIN + pen.setWidth(1); +#elif Q_WS_MAC + pen.setWidth(0.5); +#endif qp.setPen(pen_); //calcul the size