mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
* attempt to fix bug 5189.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26453 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7abd4dac66
commit
703756f99c
@ -213,10 +213,10 @@ void IconPalette::paintEvent(QPaintEvent * /*event*/)
|
||||
if (fw && !tornoff_) {
|
||||
QPainter p(this);
|
||||
QRegion borderReg;
|
||||
borderReg += QRect(0, 0, fw, height()); //left
|
||||
borderReg += QRect(width() - fw, 0, fw, height()); //right
|
||||
borderReg += QRect(0, 0, width(), fw); //top
|
||||
borderReg += QRect(0, height() - fw, width(), fw); //bottom
|
||||
borderReg += QRegion(QRect(0, 0, fw, height())); //left
|
||||
borderReg += QRegion(QRect(width() - fw, 0, fw, height())); //right
|
||||
borderReg += QRegion(QRect(0, 0, width(), fw)); //top
|
||||
borderReg += QRegion(QRect(0, height() - fw, width(), fw)); //bottom
|
||||
p.setClipRegion(borderReg);
|
||||
QStyleOptionFrame frame;
|
||||
frame.rect = rect();
|
||||
|
Loading…
Reference in New Issue
Block a user