From: Joona Petrell Date: Mon, 12 Sep 2011 19:08:35 +0000 (+0300) Subject: Remove unnecessary updateInputContext function from QSGCanvasPrivate X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=a7be892f3aafdfcedee3fddbc6b1750a6bc580d9;p=konrad%2Fqtdeclarative.git Remove unnecessary updateInputContext function from QSGCanvasPrivate Change-Id: Ibc64ef8a90854edf2c4b341ba01afdac19a813e1 Reviewed-on: http://codereview.qt-project.org/4742 Reviewed-by: Qt Sanity Bot Reviewed-by: Lars Knoll --- diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp index 3e3a8b5..9d1320b 100644 --- a/src/declarative/items/qsgcanvas.cpp +++ b/src/declarative/items/qsgcanvas.cpp @@ -338,16 +338,6 @@ bool QSGCanvas::vsyncAnimations() const return d->vsyncAnimations; } -/*! - This function is an attempt to localize all uses of QInputContext::update in - one place up until the point where we have public API for the QInputContext API. - */ -void QSGCanvasPrivate::updateInputContext() -{ - // ### finer grained updates would be good - qApp->inputPanel()->update(Qt::ImQueryAll); -} - void QSGCanvasPrivate::initializeSceneGraph() { if (!context) diff --git a/src/declarative/items/qsgcanvas_p.h b/src/declarative/items/qsgcanvas_p.h index 128743e..6a8e0a0 100644 --- a/src/declarative/items/qsgcanvas_p.h +++ b/src/declarative/items/qsgcanvas_p.h @@ -141,8 +141,6 @@ public: void syncSceneGraph(); void renderSceneGraph(const QSize &size); - void updateInputContext(); - QSGItem::UpdatePaintNodeData updatePaintNodeData; QSGItem *dirtyItemList;