Details
-
Task
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
None
Description
We had code like this before:
QList<QQuickGradient *> DeclarativeTheme3D::gradientList() { QList<QQuickGradient *> list; if (m_gradients.isEmpty()) { // Create QQuickGradients from theme's gradients m_dummyGradients = true; for (QLinearGradient &gradient : Q3DTheme::baseGradients()) list.append(convertGradient(gradient)); } else { list = m_gradients; } return list; }
Do we still need this for something? One autotest fails without it (commented out for now), but I fail to see any problems removing it causes in examples and manual tests.
The main problem in getting that to work is converting QLinearGradient to QQuickGradient.