[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
This commit is contained in:
parent
075ded4dee
commit
6168c847b8
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue