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

r1778:11f77f06f75b
r2519:9ea7d7fe3500
Show More
chartwidgettest.pro
18 lines | 291 B | text/idl | PrologLexer
Michal Klocek
Qt name convetion: move test to tests
r1200 !include( ../tests.pri ) {
Michal Klocek
Adds shadow build support
r708 error( "Couldn't find the test.pri file!" )
Tero Ahola
Added size factor property to pie
r60 }
Michal Klocek
Add test to common build
r34
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 TEMPLATE = app
Tero Ahola
Added option for using QGLWidget in widget tester
r1778 QT += core gui opengl
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 contains(QT_MAJOR_VERSION, 5) {
QT += widgets
}
SOURCES += main.cpp \
mainwidget.cpp \
dataseriedialog.cpp
HEADERS += \
mainwidget.h \
dataseriedialog.h