##// 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
Michal Klocek
Moves legend src to subdirectory
r957 INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
SOURCES += \
$$PWD/qlegend.cpp \
sauimone
first prototry of QLegendMarker API
r2160 $$PWD/legendlayout.cpp \
sauimone
new legend example for testing new api. Currently using still the old one.
r2162 $$PWD/qlegendmarker.cpp \
sauimone
added LegendMarkerItem. Updated new legend example to test clicked of LegendMarker
r2164 $$PWD/qpielegendmarker.cpp \
sauimone
tidying up legend marker code. Added QBarLegendMarker
r2174 $$PWD/legendmarkeritem.cpp \
sauimone
added QXYLegendMarker
r2175 $$PWD/qbarlegendmarker.cpp \
sauimone
added QAreaLegendMarker
r2176 $$PWD/qxylegendmarker.cpp \
sauimone
Legend can now handle clicked and do scrolling
r2183 $$PWD/qarealegendmarker.cpp \
sauimone
better implementation of mouse event handling in legend
r2197 $$PWD/legendscroller.cpp
Michal Klocek
Moves legend src to subdirectory
r957
PRIVATE_HEADERS += \
$$PWD/legendscroller_p.h \
Michal Klocek
Refactors layout managment...
r1534 $$PWD/qlegend_p.h \
sauimone
Added createLegendMarkers to private series. This will replace old createLegendMarker method. Notice the s in new method name. PIMPL for QLegendMarker. Newlegend example updated a bit
r2163 $$PWD/legendlayout_p.h \
sauimone
added LegendMarkerItem. Updated new legend example to test clicked of LegendMarker
r2164 $$PWD/qlegendmarker_p.h \
sauimone
QPieLegenmarkerPrivate added
r2166 $$PWD/legendmarkeritem_p.h \
sauimone
tidying up legend marker code. Added QBarLegendMarker
r2174 $$PWD/qpielegendmarker_p.h \
sauimone
added QXYLegendMarker
r2175 $$PWD/qbarlegendmarker_p.h \
sauimone
added QAreaLegendMarker
r2176 $$PWD/qxylegendmarker_p.h \
sauimone
better implementation of mouse event handling in legend
r2197 $$PWD/qarealegendmarker_p.h
Michal Klocek
Moves legend src to subdirectory
r957
PUBLIC_HEADERS += \
sauimone
first prototry of QLegendMarker API
r2160 $$PWD/qlegend.h \
sauimone
new legend example for testing new api. Currently using still the old one.
r2162 $$PWD/qlegendmarker.h \
sauimone
tidying up legend marker code. Added QBarLegendMarker
r2174 $$PWD/qpielegendmarker.h \
sauimone
added QXYLegendMarker
r2175 $$PWD/qbarlegendmarker.h \
sauimone
added QAreaLegendMarker
r2176 $$PWD/qxylegendmarker.h \
$$PWD/qarealegendmarker.h