[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kwin/clients/b2
From: Luciano Montanaro <mikelima () cirulla ! net>
Date: 2004-10-24 14:49:28
Message-ID: 20041024144928.B618D16B9B () office ! kde ! org
[Download RAW message or body]
CVS commit by montanaro:
Cleaned up a bit.
M +4 -10 b2client.cpp 1.85
--- kdebase/kwin/clients/b2/b2client.cpp #1.84:1.85
@@ -354,7 +354,7 @@ void B2Client::init()
// Left and right border width
leftSpacer = new QSpacerItem(thickness, 16,
- QSizePolicy::Minimum, QSizePolicy::Expanding);
+ QSizePolicy::Fixed, QSizePolicy::Expanding);
rightSpacer = new QSpacerItem(thickness, 16,
- QSizePolicy::Minimum, QSizePolicy::Expanding);
+ QSizePolicy::Fixed, QSizePolicy::Expanding);
g->addItem(leftSpacer, 1, 0);
@@ -366,5 +366,5 @@ void B2Client::init()
// Bottom border height
spacer = new QSpacerItem(10, thickness + (mustDrawHandle() ? 4 : 0),
- QSizePolicy::Expanding, QSizePolicy::Minimum);
+ QSizePolicy::Expanding, QSizePolicy::Fixed);
g->addItem(spacer, 3, 1);
@@ -558,6 +558,6 @@ void B2Client::resizeEvent(QResizeEvent
was moved, so instead of reducing it, we first try to move it */
titleMoveAbs(bar_x_ofs);
- doShape();
+ doShape();
widget()->repaint(); // the frame is misrendered without this
}
@@ -671,6 +671,4 @@ void B2Client::paintEvent(QPaintEvent* e
}
-#define QCOORDARRLEN(x) sizeof(x) / (sizeof(QCOORD) * 2)
-
void B2Client::doShape()
{
@@ -691,10 +689,8 @@ void B2Client::doShape()
if (mustDrawHandle()) {
mask -= QRect(0, height() - 5, 1, 1); //bottom left point
- mask -= QRect(width() - 1, height() - 1, 1, 1); //bottom right point
mask -= QRect(width() - 40, height() - 1, 1, 1); //handle left point
mask -= QRect(0, height() - 4, width() - 40, 4); //bottom left
} else {
mask -= QRect(0, height() - 1, 1, 1); // bottom left point
- mask -= QRect(width() - 1, height() - 1, 1, 1); //bottom right point
}
@@ -707,6 +703,4 @@ void B2Client::showEvent(QShowEvent *)
positionButtons();
doShape();
- widget()->repaint();
- titlebar->repaint(false);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic