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

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/styles/qstyle.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)
     
    326326
    327327    \sa QStyleOption, QStylePainter, {Styles Example},
    328         {Implementing Styles and Style Aware Widgets}, QStyledItemDelegate
     328        {Styles and Style Aware Widgets}, QStyledItemDelegate
    329329*/
    330330
     
    368368    actions in this function might be to call the
    369369    QWidget::setBackgroundMode() function for the widget. Do not use
    370     the function to set, for example, the geometry; reimplementing
    371     this function do provide a back-door through which the appearance
    372     of a widget can be changed, but with Qt 4.0's style engine there
    373     is rarely necessary to implement this function; reimplement the
     370    the function to set, for example, the geometry. Reimplementing
     371    this function provides a back-door through which the appearance
     372    of a widget can be changed, but with Qt's style engine it is
     373    rarely necessary to implement this function; reimplement
    374374    drawItemPixmap(), drawItemText(), drawPrimitive(), etc. instead.
    375375
     
    24222422QT_END_INCLUDE_NAMESPACE
    24232423
     2424#if !defined(QT_NO_DEBUG_STREAM)
    24242425QDebug operator<<(QDebug debug, QStyle::State state)
    24252426{
    2426 #if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_STREAM)
     2427#if !defined(QT_NO_DEBUG)
    24272428    debug << "QStyle::State(";
    24282429
     
    24562457    debug << states.join(QLatin1String(" | "));
    24572458    debug << ')';
     2459#else
     2460    Q_UNUSED(state);
    24582461#endif
    24592462    return debug;
    24602463}
     2464#endif
    24612465
    24622466/*!
Note: See TracChangeset for help on using the changeset viewer.