##// 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:

r2048:c04bfb196bae
r2519:9ea7d7fe3500
Show More
demos.pri
16 lines | 455 B | text/plain | TextLexer
Michal Klocek
Improves build configuration...
r996 !include( ../config.pri ) {
error( "Couldn't find the config.pri file!" )
Jani Honkonen
Adding demos folder. Move piechartcustomization to it. Add chartthemes demo (incomplete).
r508 }
DESTDIR = $$CHART_BUILD_BIN_DIR
Michal Klocek
Fix build paths to correct ones in build direcotry
r1198 OBJECTS_DIR = $$CHART_BUILD_DIR/demos/$$TARGET
MOC_DIR = $$CHART_BUILD_DIR/demos/$$TARGET
UI_DIR = $$CHART_BUILD_DIR/demos/$$TARGET
RCC_DIR = $$CHART_BUILD_DIR/demos/$$TARGET
Jani Honkonen
Adding demos folder. Move piechartcustomization to it. Add chartthemes demo (incomplete).
r508
TEMPLATE = app
Jani Honkonen
Adding support for static builds.
r1440 QT += core gui
Marek Rosa
Qt5: include widgets module
r2048 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
Jani Honkonen
Adding support for static builds.
r1440
# staticlib config causes problems when building executables
staticlib: CONFIG-=staticlib