Skip to content

Commit 608cd15

Browse files
committed
OS X compile fix
1 parent feb99ca commit 608cd15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qrenderdoc/Styles/RDStyle/RDStyle.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ void RDStyle::drawComplexControl(ComplexControl control, const QStyleOptionCompl
948948
}
949949
}
950950

951-
int activeHover = State_MouseOver | State_Active | State_Enabled;
951+
QStyle::State activeHover = State_MouseOver | State_Active | State_Enabled;
952952
if((opt->state & activeHover) == activeHover)
953953
{
954954
QRect hoverRect =
@@ -1534,7 +1534,7 @@ void RDStyle::drawControl(ControlElement control, const QStyleOption *opt, QPain
15341534

15351535
p->setPen(QPen(outlineBrush(opt->palette), 1.0));
15361536

1537-
int mask = State_Enabled | State_Selected;
1537+
QStyle::State mask = State_Enabled | State_Selected;
15381538
if((opt->state & mask) == mask)
15391539
{
15401540
qreal radius = 2.0;
@@ -1577,7 +1577,7 @@ void RDStyle::drawControl(ControlElement control, const QStyleOption *opt, QPain
15771577

15781578
p->setPen(QPen(outlineBrush(opt->palette), 1.0));
15791579

1580-
int mask = State_Enabled | State_Selected;
1580+
QStyle::State mask = State_Enabled | State_Selected;
15811581
if((opt->state & mask) == mask)
15821582
{
15831583
qreal radius = 2.0;

0 commit comments

Comments
 (0)