mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
avoid copy in qDrawBorder()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f404954e62
commit
4e79eb9a61
1 changed files with 2 additions and 3 deletions
|
@ -326,12 +326,11 @@ static bool paintsOver(const QCss::BorderStyle *styles, const QBrush *colors, QC
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void qDrawBorder(QPainter *p, const QRect &rect, const QCss::BorderStyle *styles,
|
void qDrawBorder(QPainter *p, const QRect &br, const QCss::BorderStyle *styles,
|
||||||
const int *borders, const QBrush *colors, const QSize *radii)
|
const int *borders, const QBrush *colors, const QSize *radii)
|
||||||
{
|
{
|
||||||
const QRectF br(rect);
|
|
||||||
QSize tlr, trr, blr, brr;
|
QSize tlr, trr, blr, brr;
|
||||||
qNormalizeRadii(rect, radii, &tlr, &trr, &blr, &brr);
|
qNormalizeRadii(br, radii, &tlr, &trr, &blr, &brr);
|
||||||
|
|
||||||
// Drawn in increasing order of precendence
|
// Drawn in increasing order of precendence
|
||||||
if (styles[BottomEdge] != BorderStyle_None && borders[BottomEdge] > 0) {
|
if (styles[BottomEdge] != BorderStyle_None && borders[BottomEdge] > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue