Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp

    r651 r769  
    9494}
    9595
     96void QtCursorDatabase::clear()
     97{
     98    m_cursorNames.clear();
     99    m_cursorIcons.clear();
     100    m_valueToCursorShape.clear();
     101    m_cursorShapeToValue.clear();
     102}
     103
    96104void QtCursorDatabase::appendCursor(Qt::CursorShape shape, const QString &name, const QIcon &icon)
    97105{
    98106    if (m_cursorShapeToValue.contains(shape))
    99107        return;
    100     int value = m_cursorNames.count();
     108    const int value = m_cursorNames.count();
    101109    m_cursorNames.append(name);
    102     m_cursorIcons[value] = icon;
    103     m_valueToCursorShape[value] = shape;
    104     m_cursorShapeToValue[shape] = value;
     110    m_cursorIcons.insert(value, icon);
     111    m_valueToCursorShape.insert(value, shape);
     112    m_cursorShapeToValue.insert(shape, value);
    105113}
    106114
Note: See TracChangeset for help on using the changeset viewer.