From 126c06586849ca41c7d13b833cb8af98d3873b4b Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 8 Aug 2014 16:33:14 +0200 Subject: Added interface for the QStyle rendering in QtQuick Controls This allows a scene graph backend to customize the style rendering Change-Id: I6048df47ed3705d81140d63a21257f704a0e0a82 Reviewed-by: Lars Knoll --- src/quick/scenegraph/qsgcontext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/quick/scenegraph/qsgcontext.cpp') diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index 267c729504..cf980dfbd4 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -299,6 +299,15 @@ QSGGlyphNode *QSGContext::createGlyphNode(QSGRenderContext *rc, bool preferNativ } } +/*! + * Factory function for scene graph backends of the QStyle stylable elements. Returns a + * null pointer if the backend doesn't provide its own node type. + */ +QSGNinePatchNode *QSGContext::createQStyleNode() +{ + return 0; +} + QSurfaceFormat QSGContext::defaultSurfaceFormat() const { QSurfaceFormat format; -- cgit v1.2.3