Changeset 1096
- Timestamp:
- Dec 30, 2017, 3:40:33 PM (7 years ago)
- Location:
- s10k/CommonLibs
- Files:
-
- 652 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
s10k/CommonLibs/CommonLibs.pri
r1073 r1096 2 2 DEPENDPATH+=$$PWD 3 3 #include($$PWD/CommonLibs.pro) 4 5 SOURCES += \6 $$PWD/pugixml/pugixml.cpp \7 8 contains(QT, gui){9 SOURCES += \10 $$PWD/jsonhighlighter/highlighter.cpp \11 $$PWD/CustomTreeWidget/customtreewidget.cpp12 }13 4 14 5 HEADERS += \ … … 16 7 $$PWD/cpp17optional/optional.hpp \ 17 8 $$PWD/plog/Log.h \ 18 $$PWD/pugixml/pugixml.hpp 9 $$PWD/pugixml/pugixml.hpp \ 10 $$PWD/ConditionalSemaphore/conditionalsemaphore.h 11 12 SOURCES += \ 13 $$PWD/pugixml/pugixml.cpp \ 14 $$PWD/ConditionalSemaphore/conditionalsemaphore.cpp 15 16 contains(QT, gui){ 17 SOURCES += \ 18 $$PWD/jsonhighlighter/highlighter.cpp \ 19 $$PWD/BasicXMLSyntaxHighlighter/BasicXMLSyntaxHighlighter.cpp \ 20 $$PWD/CustomTreeWidget/customtreewidget.cpp \ 21 $$PWD/LineNumberDisplay/LineNumberDisplay.cpp 22 } 19 23 20 24 contains(QT, gui){ 21 25 HEADERS += \ 22 26 $$PWD/jsonhighlighter/highlighter.h \ 23 $$PWD/CustomTreeWidget/customtreewidget.h 27 $$PWD/BasicXMLSyntaxHighlighter/BasicXMLSyntaxHighlighter.h \ 28 $$PWD/CustomTreeWidget/customtreewidget.h \ 29 $$PWD/LineNumberDisplay/LineNumberDisplay.h 30 } 31 32 # Extra libs 33 quazip { 34 LIBS += -L$$PWD/zlib-1.2.8 -lz 35 36 win32 { 37 LIBS += -L$$PWD/quazip-0.7.2/quazip/release -lquazip 38 } 39 40 macx { 41 LIBS += -L$$PWD/quazip-0.7.2/quazip -lquazip 42 } 43 44 INCLUDEPATH += $$PWD/zlib-1.2.8 \ 45 $$PWD/quazip-0.7.2/quazip 24 46 } 25 47 -
s10k/CommonLibs/jsonhighlighter/highlighter.cpp
r1073 r1096 32 32 void Highlighter::highlightBlock(const QString &text) 33 33 { 34 for each (const HighlightingRule &rule,rules) {34 for (const HighlightingRule &rule : rules) { 35 35 QRegExp expression(rule.pattern); 36 36 int index = expression.indexIn(text);
Note:
See TracChangeset
for help on using the changeset viewer.