Inline one qDrawPlainRoundedRect overload
Don't export both, the one is just calling the other, so make it inline. Give parameters descriptive names that match the documentation. Found in header review. Change-Id: I48b221a4fcc476483fee2842ec0a5cadd628b803 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 703f922b18110ed90018bd05526661937c3067f6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
67272100fb
commit
0571bf6d8a
@ -909,13 +909,6 @@ void qDrawPlainRect(QPainter *p, const QRect &r, const QColor &c,
|
||||
\sa qDrawShadeRect(), QStyle
|
||||
*/
|
||||
|
||||
void qDrawPlainRoundedRect(QPainter *p, const QRect &r, qreal rx, qreal ry,
|
||||
const QColor &c, int lineWidth, const QBrush *fill)
|
||||
{
|
||||
qDrawPlainRoundedRect(p, r.x(), r.y(), r.width(), r.height(), rx, ry, c,
|
||||
lineWidth, fill);
|
||||
}
|
||||
|
||||
/*!
|
||||
\class QTileRules
|
||||
\since 4.6
|
||||
|
@ -75,8 +75,13 @@ Q_WIDGETS_EXPORT void qDrawPlainRoundedRect(QPainter *p, int x, int y, int w, in
|
||||
qreal rx, qreal ry, const QColor &, int lineWidth = 1,
|
||||
const QBrush *fill = nullptr);
|
||||
|
||||
Q_WIDGETS_EXPORT void qDrawPlainRoundedRect(QPainter *p, const QRect& r, qreal rx, qreal ry,
|
||||
const QColor &, int lineWidth = 1, const QBrush *fill = nullptr);
|
||||
inline void qDrawPlainRoundedRect(QPainter *painter, const QRect& rect, qreal rx, qreal ry,
|
||||
const QColor &lineColor, int lineWidth = 1,
|
||||
const QBrush *fill = nullptr)
|
||||
{
|
||||
qDrawPlainRoundedRect(painter, rect.x(), rect.y(), rect.width(), rect.height(),
|
||||
rx, ry, lineColor, lineWidth, fill);
|
||||
}
|
||||
|
||||
|
||||
struct QTileRules
|
||||
|
Loading…
x
Reference in New Issue
Block a user