From a4f486b8fb4285fae19f8035c1c86c55d00e2072 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 21 May 2012 09:19:16 +0200 Subject: [PATCH] manhattanstyle: don't use defines for constants Change-Id: I19a9b86c37dfcd1be7451d6fe67322a833d7b322 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/manhattanstyle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/coreplugin/manhattanstyle.cpp b/src/plugins/coreplugin/manhattanstyle.cpp index 03ab660f61e..68d99d9143a 100644 --- a/src/plugins/coreplugin/manhattanstyle.cpp +++ b/src/plugins/coreplugin/manhattanstyle.cpp @@ -66,7 +66,7 @@ #include // We define a currently unused state for indicating animations -#define State_Animating 0x00000040 +const QStyle::State State_Animating = QStyle::State(0x00000040); // Because designer needs to disable this for widget previews // we have a custom property that is inherited @@ -415,7 +415,7 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption Animation *anim = d->animator.widgetAnimation(widget); QStyleOption opt = *option; opt.state = (QStyle::State)oldState; - opt.state |= (State)State_Animating; + opt.state |= State_Animating; startImage.fill(0); Transition *t = new Transition; t->setWidget(w); @@ -427,7 +427,7 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption d->animator.stopAnimation(widget); } QStyleOption endOpt = *option; - endOpt.state |= (State)State_Animating; + endOpt.state |= State_Animating; t->setStartImage(startImage); d->animator.startAnimation(t); endImage.fill(0);