Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/styles/qstyle_p.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the QtGui module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you have questions regarding the use of this file, please contact
     37** Nokia at qt-info@nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    4444
    4545#include "private/qobject_p.h"
     46#include "private/qstylehelper_p.h"
     47#include <QtGui/qstyle.h>
    4648
    4749QT_BEGIN_NAMESPACE
     
    5254//
    5355// This file is not part of the Qt API.  It exists for the convenience
    54 // of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp.  This header
    55 // file may change from version to version without notice, or even be removed.
     56// of qstyle_*.cpp.  This header file may change from version to version
     57// without notice, or even be removed.
    5658//
    5759// We mean it.
     
    6062// Private class
    6163
     64class QStyle;
     65
    6266class QStylePrivate: public QObjectPrivate
    6367{
     
    6569public:
    6670    inline QStylePrivate()
    67         : layoutSpacingIndex(-1)
    68     { }
     71        : layoutSpacingIndex(-1), proxyStyle(0) {}
    6972    mutable int layoutSpacingIndex;
     73    QStyle *proxyStyle;
    7074};
    7175
     
    7680    QImage imageCache; \
    7781    QPainter *p = painter; \
    78     QString unique = uniqueName((a), option, option->rect.size()); \
     82    QString unique = QStyleHelper::uniqueName((a), option, option->rect.size()); \
    7983    int txType = painter->deviceTransform().type() | painter->worldTransform().type(); \
    80     bool doPixmapCache = UsePixmapCache && txType <= QTransform::TxTranslate; \
     84    bool doPixmapCache = txType <= QTransform::TxTranslate; \
    8185    if (doPixmapCache && QPixmapCache::find(unique, internalPixmapCache)) { \
    8286        painter->drawPixmap(option->rect.topLeft(), internalPixmapCache); \
     
    8892            p = new QPainter(&imageCache); \
    8993        }
     94
    9095
    9196
Note: See TracChangeset for help on using the changeset viewer.