Changeset 846 for trunk/src/plugins/imageformats/ico
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 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/src/plugins/imageformats/ico/main.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) -
trunk/src/plugins/imageformats/ico/qicohandler.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 55 55 #include <QtCore/QBuffer> 56 56 #include <qvariant.h> 57 58 QT_BEGIN_NAMESPACE 59 57 60 // These next two structs represent how the icon information is stored 58 61 // in an ICO file. … … 557 560 else // # colors used 558 561 icoAttrib.ncolors = header.biClrUsed ? header.biClrUsed : 1 << icoAttrib.nbits; 562 if (icoAttrib.ncolors > 256) //color table can't be more than 256 563 return img; 559 564 icoAttrib.w = iconEntry.bWidth; 560 565 if (icoAttrib.w == 0) … … 892 897 } 893 898 899 QT_END_NAMESPACE -
trunk/src/plugins/imageformats/ico/qicohandler.h
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 44 44 #include <QtGui/QImageIOHandler> 45 45 46 QT_BEGIN_NAMESPACE 47 46 48 class ICOReader; 47 49 class QtIcoHandler: public QImageIOHandler … … 72 74 }; 73 75 76 QT_END_NAMESPACE 77 74 78 #endif /* QTICOHANDLER_H */ 75 79
Note:
See TracChangeset
for help on using the changeset viewer.