- Just a small touch up for the plasma item delegate gradient (for
kickoff). svn path=/trunk/KDE/kdelibs/; revision=966819
This commit is contained in:
parent
4feabf928d
commit
bc9e8a7263
@ -327,7 +327,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
|||||||
p.setCompositionMode(QPainter::CompositionMode_DestinationOut);
|
p.setCompositionMode(QPainter::CompositionMode_DestinationOut);
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
QLinearGradient gr;
|
QLinearGradient gr;
|
||||||
QRect gradientRect(option.rect.width() - 30, titleRect.y(),
|
QRect gradientRect(option.rect.width() - 60, titleRect.y(),
|
||||||
80, titleRect.height() + subTitleRect.height());
|
80, titleRect.height() + subTitleRect.height());
|
||||||
// draw it on the right side
|
// draw it on the right side
|
||||||
gr.setStart(gradientRect.topLeft());
|
gr.setStart(gradientRect.topLeft());
|
||||||
@ -349,7 +349,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
|
|||||||
p.setCompositionMode(QPainter::CompositionMode_DestinationOut);
|
p.setCompositionMode(QPainter::CompositionMode_DestinationOut);
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
QLinearGradient gr;
|
QLinearGradient gr;
|
||||||
QRect gradientRect(option.rect.x() - 25, titleRect.y(),
|
QRect gradientRect(option.rect.x() - 55, titleRect.y(),
|
||||||
60, titleRect.height() + subTitleRect.height());
|
60, titleRect.height() + subTitleRect.height());
|
||||||
gr.setStart(gradientRect.topRight());
|
gr.setStart(gradientRect.topRight());
|
||||||
gr.setFinalStop(gradientRect.topLeft());
|
gr.setFinalStop(gradientRect.topLeft());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user