Ignore:
Timestamp:
Mar 6, 2010, 12:32:46 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Use native file icons in standard Qt file dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/styles/qwindowsstyle.cpp

    r561 r642  
    438438
    439439    case PM_SmallIconSize:
     440#if defined(Q_WS_PM)
     441        if (QApplication::desktopSettingsAware())
     442            return QCommonStyle::pixelMetric(pm, opt, widget);
     443#endif
    440444        ret = int(QStyleHelper::dpiScaled(16.));
    441445        break;
    442446
    443447    case PM_LargeIconSize:
     448#if defined(Q_WS_PM)
     449        if (QApplication::desktopSettingsAware())
     450            return QCommonStyle::pixelMetric(pm, opt, widget);
     451#endif
    444452        ret = int(QStyleHelper::dpiScaled(32.));
    445453        break;
     
    13901398            QPixmap pixmap;
    13911399            QString pixmapName = QStyleHelper::uniqueName(QLatin1String("$qt_ia-") + QLatin1String(metaObject()->className()), opt, QSize(size, size))
    1392                   + QLatin1Char('-') + QString::number(pe);                               
     1400                  + QLatin1Char('-') + QString::number(pe);
    13931401            if (!QPixmapCache::find(pixmapName, pixmap)) {
    13941402                int border = size/5;
Note: See TracChangeset for help on using the changeset viewer.