From 6168c847b8cc13ea04f9e87ef246a3735055cace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sun, 1 May 2011 12:31:24 +0000 Subject: [PATCH] [GB.QT4] * BUG: Use widget style to draw separators whose width and height are greater than one pixel. git-svn-id: svn://localhost/gambas/trunk@3823 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.qt4/src/CLabel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gb.qt4/src/CLabel.cpp b/gb.qt4/src/CLabel.cpp index 1330bf9c6..66f61f1d5 100644 --- a/gb.qt4/src/CLabel.cpp +++ b/gb.qt4/src/CLabel.cpp @@ -397,7 +397,7 @@ void MySeparator::paintEvent( QPaintEvent * ) { QPainter p(this); - //if (width() == 1 || height() == 1) + if (width() == 1 || height() == 1) { p.setPen(CCOLOR_light_foreground()); if (width() >= height()) @@ -405,7 +405,7 @@ void MySeparator::paintEvent( QPaintEvent * ) else p.drawLine(width() / 2, 0, width() / 2, height() - 1); } - /*else + else { QStyleOption opt; @@ -417,6 +417,6 @@ void MySeparator::paintEvent( QPaintEvent * ) opt.state |= QStyle::State_Horizontal; style()->drawPrimitive(QStyle::PE_IndicatorToolBarSeparator, &opt, &p); - }*/ + } }