aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-08-09 09:27:42 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-08-12 01:44:18 +0200
commit430853836f9c17154ef3ee4cac6b03b90ee493a9 (patch)
treed04bee7e6af231f7a909e591d3bea5a4e7290b07 /src
parentfccbe57258c10e18ccdbbec405f5522dbd97af66 (diff)
Fix the nine patch node factory function (part 1)
Change-Id: I5981190dd43082715a7159efd478469365caf3a6 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src')
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp2
-rw-r--r--src/quick/scenegraph/qsgcontext_p.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 67a5f25405..4ea0cca553 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -303,7 +303,7 @@ 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()
+QSGNinePatchNode *QSGContext::createNinePatchNode()
{
return 0;
}
diff --git a/src/quick/scenegraph/qsgcontext_p.h b/src/quick/scenegraph/qsgcontext_p.h
index 97b2c2b358..da0de12a42 100644
--- a/src/quick/scenegraph/qsgcontext_p.h
+++ b/src/quick/scenegraph/qsgcontext_p.h
@@ -175,7 +175,8 @@ public:
virtual QSGRectangleNode *createRectangleNode();
virtual QSGImageNode *createImageNode();
virtual QSGGlyphNode *createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode);
- virtual QSGNinePatchNode *createQStyleNode();
+ virtual QSGNinePatchNode *createNinePatchNode();
+ QSGNinePatchNode *createQStyleNode() { return createNinePatchNode(); }
virtual QAnimationDriver *createAnimationDriver(QObject *parent);
virtual QSize minimumFBOSize() const;