mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
plasma: remove unused function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ee45f0dd7b
commit
c3295a3417
1 changed files with 0 additions and 29 deletions
|
@ -159,35 +159,6 @@ QPainterPath AppletHandle::shape() const
|
|||
}
|
||||
}
|
||||
|
||||
QPainterPath handleRect(const QRectF &rect, int radius, bool onRight)
|
||||
{
|
||||
QPainterPath path;
|
||||
if (onRight) {
|
||||
// make the left side straight
|
||||
path.moveTo(rect.left(), rect.top()); // Top left
|
||||
path.lineTo(rect.right() - radius, rect.top()); // Top side
|
||||
path.quadTo(rect.right(), rect.top(),
|
||||
rect.right(), rect.top() + radius); // Top right corner
|
||||
path.lineTo(rect.right(), rect.bottom() - radius); // Right side
|
||||
path.quadTo(rect.right(), rect.bottom(),
|
||||
rect.right() - radius, rect.bottom()); // Bottom right corner
|
||||
path.lineTo(rect.left(), rect.bottom()); // Bottom side
|
||||
} else {
|
||||
// make the right side straight
|
||||
path.moveTo(QPointF(rect.left(), rect.top() + radius));
|
||||
path.quadTo(rect.left(), rect.top(),
|
||||
rect.left() + radius, rect.top()); // Top left corner
|
||||
path.lineTo(rect.right(), rect.top()); // Top side
|
||||
path.lineTo(rect.right(), rect.bottom()); // Right side
|
||||
path.lineTo(rect.left() + radius, rect.bottom()); // Bottom side
|
||||
path.quadTo(rect.left(), rect.bottom(),
|
||||
rect.left(), rect.bottom() - radius); // Bottom left corner
|
||||
}
|
||||
|
||||
path.closeSubpath();
|
||||
return path;
|
||||
}
|
||||
|
||||
void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||
{
|
||||
Q_UNUSED(option);
|
||||
|
|
Loading…
Add table
Reference in a new issue