* 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
This commit is contained in:
Benoît Minisini 2011-05-01 12:31:24 +00:00
parent 075ded4dee
commit 6168c847b8

View file

@ -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);
}*/
}
}