|
|
@ -3,8 +3,8 @@ |
|
|
|
#include <QLinearGradient> |
|
|
|
#include <QLinearGradient> |
|
|
|
#include <QPainter> |
|
|
|
#include <QPainter> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void DropShadow::draw(QPainter &painter, |
|
|
|
DropShadow::draw(QPainter &painter, |
|
|
|
qint16 margin, |
|
|
|
qint16 margin, |
|
|
|
qreal radius, |
|
|
|
qreal radius, |
|
|
|
QColor start, |
|
|
|
QColor start, |
|
|
@ -60,9 +60,7 @@ |
|
|
|
gradient.setFinalStop(bottom1); |
|
|
|
gradient.setFinalStop(bottom1); |
|
|
|
painter.setBrush(QBrush(gradient)); |
|
|
|
painter.setBrush(QBrush(gradient)); |
|
|
|
painter.drawRoundedRect( |
|
|
|
painter.drawRoundedRect( |
|
|
|
QRectF(QPointF(margin, height - margin), QPointF(width - margin, height)), |
|
|
|
QRectF(QPointF(margin, height - margin), QPointF(width - margin, height)), 0.0, 0.0); |
|
|
|
0.0, |
|
|
|
|
|
|
|
0.0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// BottomRight
|
|
|
|
// BottomRight
|
|
|
|
QPointF bottomright0(width - margin, height - margin); |
|
|
|
QPointF bottomright0(width - margin, height - margin); |
|
|
|