Changeset 846 for trunk/tools/designer/src/lib/shared/qdesigner_menu.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/tools/designer/src/lib/shared/qdesigner_menu.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 78 78 { 79 79 switch (dir) { 80 80 81 case Qt::LeftToRight: 81 82 subMenuRect->setLeft(subMenuRect->left() - 20); … … 944 945 if (ctrl) 945 946 (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); 948 949 // Always re-select, swapping destroys order 949 950 update(); … … 960 961 (void) swap(m_currentIndex + 1, m_currentIndex); 961 962 962 m_currentIndex = qMin(actions().count() - 1, ++m_currentIndex); 963 ++m_currentIndex; 964 m_currentIndex = qMin(actions().count() - 1, m_currentIndex); 963 965 update(); 964 966 if (!ctrl)
Note:
See TracChangeset
for help on using the changeset viewer.