Changeset View
Changeset View
Standalone View
Standalone View
filters/words/rtf/import/3rdparty/rtf-qt/src/ColorTableDestination.h
Show All 36 Lines | 27 | { | |||
---|---|---|---|---|---|
37 | void handleControlWord( const QByteArray &controlWord, bool hasValue, const int value ) override; | 37 | void handleControlWord( const QByteArray &controlWord, bool hasValue, const int value ) override; | ||
38 | void handlePlainText( const QByteArray &plainText ) override; | 38 | void handlePlainText( const QByteArray &plainText ) override; | ||
39 | 39 | | |||
40 | private: | 40 | private: | ||
41 | void resetCurrentColor(); | 41 | void resetCurrentColor(); | ||
42 | 42 | | |||
43 | // The colour that is currently being built | 43 | // The colour that is currently being built | ||
44 | QColor m_currentColor; | 44 | QColor m_currentColor; | ||
45 | bool m_colorSet; | ||||
dcaliste: I'm wondering, if we could use the invalid status of QColor as this flag ?
See later… | |||||
Should work, but I'm not sure would it be much better. Saves one boolean instance during loading a file, but then feels a bit more complex. pvuorela: Should work, but I'm not sure would it be much better. Saves one boolean instance during… | |||||
45 | }; | 46 | }; | ||
46 | } | 47 | } | ||
47 | 48 | | |||
48 | #endif | 49 | #endif |
I'm wondering, if we could use the invalid status of QColor as this flag ?
See later…