Merge pull request #1182 from konero/taho_fixdrawtoggle
Fix studio palette drawtoggle for linux
This commit is contained in:
commit
863f89c348
1 changed files with 4 additions and 0 deletions
|
@ -571,6 +571,8 @@ void PageViewer::drawToggleLink(QPainter &p, QRect &chipRect,
|
|||
p.setPen(Qt::black);
|
||||
p.drawRect(rect);
|
||||
|
||||
p.save();
|
||||
|
||||
if (globalName[0] == L'+') {
|
||||
QPointF a(x + 2, y + 2);
|
||||
QPointF b(x + 2, y + 5);
|
||||
|
@ -580,6 +582,8 @@ void PageViewer::drawToggleLink(QPainter &p, QRect &chipRect,
|
|||
p.drawLine(a, c);
|
||||
p.drawLine(a, d);
|
||||
}
|
||||
|
||||
p.restore();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue