##// END OF EJS Templates
Return empty brush/pen/font via API rather than the weird default one...
Return empty brush/pen/font via API rather than the weird default one Previously a non-initialized QPen()/QBrush()/QFont() was returned if axis/series hadn't been added to a chart yet and therefore had not been themed yet. To keep API somewhat consistent with old behavior, return non-initialized QPen()/QBrush()/QFont() instead of the weird default one in these cases. The new behavior is slightly different in that it is no longer possible to restore themed behavior by setting pen/brush/font to non-initialized one, but since there is no way to differentiate e.g. legitimate Qt::black pen from non-initialized pen, we can no longer support this behavior. Change-Id: I99f3d8853b329b5345e3073c040d8bfa8b9b75b4 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>

File last commit:

r2197:7376343d8ef1
r2519:9ea7d7fe3500
Show More
legend.pri
33 lines | 837 B | text/plain | TextLexer
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/qlegend.cpp \
$$PWD/legendlayout.cpp \
$$PWD/qlegendmarker.cpp \
$$PWD/qpielegendmarker.cpp \
$$PWD/legendmarkeritem.cpp \
$$PWD/qbarlegendmarker.cpp \
$$PWD/qxylegendmarker.cpp \
$$PWD/qarealegendmarker.cpp \
$$PWD/legendscroller.cpp
PRIVATE_HEADERS += \
$$PWD/legendscroller_p.h \
$$PWD/qlegend_p.h \
$$PWD/legendlayout_p.h \
$$PWD/qlegendmarker_p.h \
$$PWD/legendmarkeritem_p.h \
$$PWD/qpielegendmarker_p.h \
$$PWD/qbarlegendmarker_p.h \
$$PWD/qxylegendmarker_p.h \
$$PWD/qarealegendmarker_p.h
PUBLIC_HEADERS += \
$$PWD/qlegend.h \
$$PWD/qlegendmarker.h \
$$PWD/qpielegendmarker.h \
$$PWD/qbarlegendmarker.h \
$$PWD/qxylegendmarker.h \
$$PWD/qarealegendmarker.h