Ignore:
Timestamp:
Feb 16, 2019, 6:24:18 PM (6 years ago)
Author:
s10k
Message:

slightly modifications to allow subclassing, added Q_OBJECT macro, since usually all classes derived from QObject should use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • s10k/CommonLibs/BasicXMLSyntaxHighlighter/BasicXMLSyntaxHighlighter.h

    r1096 r1110  
    2727// This XML highligter is the same from Dmitry Ivanov available here:
    2828// https://github.com/d1vanov/basic-xml-syntax-highlighter
    29 // with some slightly modifications by random-guy (https://github.com/random-guy)
     29// with some slightly modifications by fabiobento512 (https://github.com/fabiobento512)
    3030// (like different colors, and remove of unneeded constructors)
    3131
     
    4444protected:
    4545    virtual void highlightBlock(const QString & text);
    46 
     46               
    4747private:
    4848    void highlightByRegex(const QTextCharFormat & format,
     
    5252    void setFormats();
    5353
    54 private:
     54protected:
    5555    QTextCharFormat     m_xmlKeywordFormat;
    5656    QTextCharFormat     m_xmlElementFormat;
Note: See TracChangeset for help on using the changeset viewer.