Changeset 1028 for trunk/src


Ignore:
Timestamp:
Aug 26, 2011, 2:11:12 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Take style icons for SP_FileIcon & SP_DirIcon from QFileIconProvider.

This makes sure that the icons are consistent (taken from the system theme)
both in QCommonStyle and in QFileIconProvider. Previously, the former would
return the stock Qt icons which are completely different which made the
Projects view in Qt Creator look odd compared to the FileSystem view.

Note that this (as many other similar settings as well) is only done when
QApplication::desktopSettingsAware() is true.

File:
1 edited

Legend:

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

    r1021 r1028  
    9090#ifdef Q_WS_PM
    9191#   include <qt_os2.h>
     92
    9293#endif
    9394
     
    57835784#endif // Q_WS_MAC
    57845785
     5786
     5787
     5788
     5789
     5790
     5791
     5792
     5793
     5794
     5795
     5796
     5797
     5798
     5799
     5800
     5801
     5802
     5803
     5804
     5805
     5806
     5807
     5808
     5809
     5810
     5811
     5812
     5813
     5814
     5815
     5816
     5817
    57855818    switch (standardIcon) {
    57865819#ifndef QT_NO_IMAGEFORMAT_PNG
     
    60186051        case SP_DriveHDIcon:
    60196052        case SP_DriveFDIcon:
    6020         case SP_FileIcon:
    6021         case SP_FileLinkIcon:
    6022         case SP_DirLinkIcon:
    6023         case SP_DirClosedIcon:
    60246053        case SP_DesktopIcon:
    60256054        case SP_ComputerIcon:
    6026         case SP_DirOpenIcon:
    60276055        case SP_FileDialogNewFolder:
    60286056        case SP_DirHomeIcon:
Note: See TracChangeset for help on using the changeset viewer.