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/text/qcssparser_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**
     
    6767
    6868#ifndef QT_NO_CSSPARSER
     69
     70// VxWorks defines NONE as (-1) "for times when NULL won't do"
     71#if defined(Q_OS_VXWORKS) && defined(NONE)
     72#  undef NONE
     73#endif
    6974
    7075QT_BEGIN_NAMESPACE
     
    224229    Value_LowerAlpha,
    225230    Value_UpperAlpha,
     231    Value_LowerRoman,
     232    Value_UpperRoman,
    226233    Value_SmallCaps,
    227234    Value_Uppercase,
     
    362369
    363370struct ColorData {
    364     ColorData() : type(Invalid) {}
    365     ColorData(const QColor &col) : color(col) , type(Color) {}
    366     ColorData(QPalette::ColorRole r) : role(r) , type(Role) {}
     371    ColorData() : role(QPalette::NoRole), type(Invalid) {}
     372    ColorData(const QColor &col) : color(col), role(QPalette::NoRole), type(Color) {}
     373    ColorData(QPalette::ColorRole r) : role(r), type(Role) {}
    367374    QColor color;
    368375    QPalette::ColorRole role;
     
    371378
    372379struct BrushData {
    373     BrushData() : type(Invalid) {}
    374     BrushData(const QBrush &br) : brush(br) , type(Brush) {}
    375     BrushData(QPalette::ColorRole r) : role(r) , type(Role) {}
     380    BrushData() : role(QPalette::NoRole), type(Invalid) {}
     381    BrushData(const QBrush &br) : brush(br), role(QPalette::NoRole), type(Brush) {}
     382    BrushData(QPalette::ColorRole r) : role(r), type(Role) {}
    376383    QBrush brush;
    377384    QPalette::ColorRole role;
     
    404411// 5. Declaration - prop1: value1;
    405412
    406 struct Q_GUI_EXPORT Declaration
     413struct Q_AUTOTEST_EXPORT Declaration
    407414{
    408415    struct DeclarationData : public QSharedData
     
    496503const int NumPseudos = 46;
    497504
    498 struct Q_GUI_EXPORT Pseudo
    499 {
    500     Pseudo() : negated(false) { }
     505struct Pseudo
     506{
     507    Pseudo() : type(0), negated(false) { }
    501508    quint64 type;
    502509    QString name;
     
    505512};
    506513
    507 struct Q_GUI_EXPORT AttributeSelector
     514struct AttributeSelector
    508515{
    509516    enum ValueMatchType {
     
    520527};
    521528
    522 struct Q_GUI_EXPORT BasicSelector
     529struct BasicSelector
    523530{
    524531    inline BasicSelector() : relationToNext(NoRelation) {}
     
    540547};
    541548
    542 struct Q_GUI_EXPORT Selector
     549struct Q_AUTOTEST_EXPORT Selector
    543550{
    544551    QVector<BasicSelector> basicSelectors;
     
    553560struct ImportRule;
    554561
    555 struct Q_GUI_EXPORT ValueExtractor
     562struct Q_AUTOTEST_EXPORT ValueExtractor
    556563{
    557564    ValueExtractor(const QVector<Declaration> &declarations, const QPalette & = QPalette());
     
    587594};
    588595
    589 struct Q_GUI_EXPORT StyleRule
     596struct StyleRule
    590597{
    591598    StyleRule() : order(0) { }
     
    595602};
    596603
    597 struct Q_GUI_EXPORT MediaRule
     604struct MediaRule
    598605{
    599606    QStringList media;
     
    601608};
    602609
    603 struct Q_GUI_EXPORT PageRule
     610struct PageRule
    604611{
    605612    QString selector;
     
    607614};
    608615
    609 struct Q_GUI_EXPORT ImportRule
     616struct ImportRule
    610617{
    611618    QString href;
     
    621628};
    622629
    623 struct Q_GUI_EXPORT StyleSheet
     630struct StyleSheet
    624631{
    625632    StyleSheet() : origin(StyleSheetOrigin_Unspecified), depth(0) { }
     
    720727struct Q_GUI_EXPORT Symbol
    721728{
    722     inline Symbol() : start(0), len(-1) {}
     729    inline Symbol() : token(NONE), start(0), len(-1) {}
    723730    TokenType token;
    724731    QString text;
     
    732739    static QString preprocess(const QString &input, bool *hasEscapeSequences = 0);
    733740    static void scan(const QString &preprocessedInput, QVector<Symbol> *symbols);
    734     static const char *tokenName(TokenType t);
    735741};
    736742
Note: See TracChangeset for help on using the changeset viewer.