Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/designer/src/lib/shared/qdesigner_menu.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    7878{
    7979    switch (dir) {
     80
    8081    case Qt::LeftToRight:
    8182        subMenuRect->setLeft(subMenuRect->left() - 20);
     
    944945    if (ctrl)
    945946        (void) swap(m_currentIndex, m_currentIndex - 1);
    946 
    947     m_currentIndex = qMax(0, --m_currentIndex);
     947    --m_currentIndex;
     948    m_currentIndex = qMax(0, m_currentIndex);
    948949    // Always re-select, swapping destroys order
    949950    update();
     
    960961        (void) swap(m_currentIndex + 1, m_currentIndex);
    961962
    962     m_currentIndex = qMin(actions().count() - 1, ++m_currentIndex);
     963    ++m_currentIndex;
     964    m_currentIndex = qMin(actions().count() - 1, m_currentIndex);
    963965    update();
    964966    if (!ctrl)
Note: See TracChangeset for help on using the changeset viewer.