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

r2488:5862599d088d
r2519:9ea7d7fe3500
Show More
demos.pro
37 lines | 918 B | text/idl | PrologLexer
Tero Ahola
Hacked library dependency issues on OSX
r1035 CURRENTLY_BUILDING_COMPONENTS = "demos"
Michal Klocek
Adds missing includes for pro files
r1003 !include( ../config.pri ) {
Tero Ahola
Hacked library dependency issues on OSX
r1035 error( "Couldn't find the config.pri file!" )
Michal Klocek
Adds missing includes for pro files
r1003 }
Jani Honkonen
Adding demos folder. Move piechartcustomization to it. Add chartthemes demo (incomplete).
r508 TEMPLATE = subdirs
Marek Rosa
Added check for openGL support
r1951 SUBDIRS += piechartcustomization \
Tero Ahola
Draft for QML demo that shows weather forecasts
r1139 dynamicspline \
Jani Honkonen
Moved 'donut' example to demos 'nesteddonuts'
r1877 nesteddonuts \
Jani Honkonen
Move dynamicspline under demos
r982 qmlchart \
Tero Ahola
Separated series model stuff from data api in QML examples
r1202 qmlweather \
Tero Ahola
QML demo with dynamic data
r1240 qmlf1legends \
Tero Ahola
App for demonstrating QML customization apis
r1259 qmlcustomizations \
Michal Klocek
Adds chartviewer demo
r1746 qmlcustommodel \
Tero Ahola
Property for QDateTimeAxis::format and a QML demo for axes
r2027 chartinteractions \
Tero Ahola
Demo about creating a custom legend on QML
r2069 qmlaxes \
Marek Rosa
Docs update
r2358 qmlcustomlegend \
Miikka Heikkinen
Add Polar chart support...
r2483 callout \
qmlpolarchart
Marek Rosa
Added check for openGL support
r1951
contains(QT_CONFIG, opengl) {
SUBDIRS += chartthemes \
Marek Rosa
ChartViewer moved to tests
r2398 qmloscilloscope
Marek Rosa
Added check for openGL support
r1951 } else {
message("OpenGL not available. Some demos are disabled")
}
Marek Rosa
Don't build audio input demo if multimedia library is missing
r2157
contains(QT_CONFIG, multimedia) {
SUBDIRS += audio
} else {
message("QtMultimedia library not available. Some demos are disabled")
}
Miikka Heikkinen
Generate charts plugin for QtQuick2 as well as QtQuick1...
r2488
contains(QT_VERSION, ^5\\..*\\..*$):qtHaveModule(quick) {
SUBDIRS += quick2chart \
quick2oscilloscope
}