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/components/propertyeditor/brushpropertymanager.cpp

    r651 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])
     
    120120}
    121121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
    122133const BrushPropertyManager::EnumIndexIconMap &BrushPropertyManager::brushStyleIcons()
    123134{
    124135    // Create a map of icons for the brush style editor
    125     static EnumIndexIconMap rc;
    126     if (rc.empty()) {
     136    if (brushIcons()->empty()) {
    127137        const int brushStyleCount = sizeof(brushStyles)/sizeof(const char *);
    128138        QBrush brush(Qt::black);
     
    131141            const Qt::BrushStyle style = brushStyleIndexToStyle(i);
    132142            brush.setStyle(style);
    133             rc.insert(i, QtPropertyBrowserUtils::brushValueIcon(brush));
     143            insert(i, QtPropertyBrowserUtils::brushValueIcon(brush));
    134144        }
    135145    }
    136     return rc;
     146    return ;
    137147}
    138148
Note: See TracChangeset for help on using the changeset viewer.