Changeset 561 for trunk/src/gui/text/qcssparser_p.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/text/qcssparser_p.h
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 67 67 68 68 #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 69 74 70 75 QT_BEGIN_NAMESPACE … … 224 229 Value_LowerAlpha, 225 230 Value_UpperAlpha, 231 Value_LowerRoman, 232 Value_UpperRoman, 226 233 Value_SmallCaps, 227 234 Value_Uppercase, … … 362 369 363 370 struct ColorData { 364 ColorData() : type(Invalid) {}365 ColorData(const QColor &col) : color(col) 366 ColorData(QPalette::ColorRole r) : role(r) 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) {} 367 374 QColor color; 368 375 QPalette::ColorRole role; … … 371 378 372 379 struct BrushData { 373 BrushData() : type(Invalid) {}374 BrushData(const QBrush &br) : brush(br) 375 BrushData(QPalette::ColorRole r) : role(r) 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) {} 376 383 QBrush brush; 377 384 QPalette::ColorRole role; … … 404 411 // 5. Declaration - prop1: value1; 405 412 406 struct Q_ GUI_EXPORT Declaration413 struct Q_AUTOTEST_EXPORT Declaration 407 414 { 408 415 struct DeclarationData : public QSharedData … … 496 503 const int NumPseudos = 46; 497 504 498 struct Q_GUI_EXPORTPseudo499 { 500 Pseudo() : negated(false) { }505 struct Pseudo 506 { 507 Pseudo() : type(0), negated(false) { } 501 508 quint64 type; 502 509 QString name; … … 505 512 }; 506 513 507 struct Q_GUI_EXPORTAttributeSelector514 struct AttributeSelector 508 515 { 509 516 enum ValueMatchType { … … 520 527 }; 521 528 522 struct Q_GUI_EXPORTBasicSelector529 struct BasicSelector 523 530 { 524 531 inline BasicSelector() : relationToNext(NoRelation) {} … … 540 547 }; 541 548 542 struct Q_ GUI_EXPORT Selector549 struct Q_AUTOTEST_EXPORT Selector 543 550 { 544 551 QVector<BasicSelector> basicSelectors; … … 553 560 struct ImportRule; 554 561 555 struct Q_ GUI_EXPORT ValueExtractor562 struct Q_AUTOTEST_EXPORT ValueExtractor 556 563 { 557 564 ValueExtractor(const QVector<Declaration> &declarations, const QPalette & = QPalette()); … … 587 594 }; 588 595 589 struct Q_GUI_EXPORTStyleRule596 struct StyleRule 590 597 { 591 598 StyleRule() : order(0) { } … … 595 602 }; 596 603 597 struct Q_GUI_EXPORTMediaRule604 struct MediaRule 598 605 { 599 606 QStringList media; … … 601 608 }; 602 609 603 struct Q_GUI_EXPORTPageRule610 struct PageRule 604 611 { 605 612 QString selector; … … 607 614 }; 608 615 609 struct Q_GUI_EXPORTImportRule616 struct ImportRule 610 617 { 611 618 QString href; … … 621 628 }; 622 629 623 struct Q_GUI_EXPORTStyleSheet630 struct StyleSheet 624 631 { 625 632 StyleSheet() : origin(StyleSheetOrigin_Unspecified), depth(0) { } … … 720 727 struct Q_GUI_EXPORT Symbol 721 728 { 722 inline Symbol() : start(0), len(-1) {}729 inline Symbol() : token(NONE), start(0), len(-1) {} 723 730 TokenType token; 724 731 QString text; … … 732 739 static QString preprocess(const QString &input, bool *hasEscapeSequences = 0); 733 740 static void scan(const QString &preprocessedInput, QVector<Symbol> *symbols); 734 static const char *tokenName(TokenType t);735 741 }; 736 742
Note:
See TracChangeset
for help on using the changeset viewer.