forked from qt-creator/qt-creator
Manhattanstyle: Fix IndicatorToolBarHandle
operator + binds stronger than ?, so the evaluation of the expressions was screwed up. Change-Id: Id38adf6e17ea770d1d3219649629b06bfc2ca643 Reviewed-on: http://codereview.qt.nokia.com/348 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -564,8 +564,8 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
|
||||
bool horizontal = option->state & State_Horizontal;
|
||||
painter->save();
|
||||
QPainterPath path;
|
||||
int x = option->rect.x() + horizontal ? 2 : 6;
|
||||
int y = option->rect.y() + horizontal ? 6 : 2;
|
||||
int x = option->rect.x() + (horizontal ? 2 : 6);
|
||||
int y = option->rect.y() + (horizontal ? 6 : 2);
|
||||
static const int RectHeight = 2;
|
||||
if (horizontal) {
|
||||
while (y < option->rect.height() - RectHeight - 6) {
|
||||
|
||||
Reference in New Issue
Block a user