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:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/plugins/imageformats/ico/main.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/plugins/imageformats/ico/qicohandler.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    5555#include <QtCore/QBuffer>
    5656#include <qvariant.h>
     57
     58QT_BEGIN_NAMESPACE
     59
    5760// These next two structs represent how the icon information is stored
    5861// in an ICO file.
     
    557560                else                    // # colors used
    558561                    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;
    559564                icoAttrib.w = iconEntry.bWidth;
    560565                if (icoAttrib.w == 0)
     
    892897}
    893898
     899QT_END_NAMESPACE
  • trunk/src/plugins/imageformats/ico/qicohandler.h

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4444#include <QtGui/QImageIOHandler>
    4545
     46QT_BEGIN_NAMESPACE
     47
    4648class ICOReader;
    4749class QtIcoHandler: public QImageIOHandler
     
    7274};
    7375
     76QT_END_NAMESPACE
     77
    7478#endif /* QTICOHANDLER_H */
    7579
Note: See TracChangeset for help on using the changeset viewer.