diff options
| author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-10-16 17:07:13 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-07 15:30:13 +0100 |
| commit | 17fea75fb7c5c8cee9d5610e3886f2ec4c489d7b (patch) | |
| tree | bd13a9f4690f784db11a2360acd801841a41ae5e /src/controls/plugin.cpp | |
| parent | 9203b61ee7024397b1004d5c82585e5f4e4ab130 (diff) | |
Optimize TableView by using ImageProvider
This optimizes tableview as we were not able to utilize the
image atlas efficiently without it.
Change-Id: I3cce48b7557d843fb057cc1597dc4363c35bdef8
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/plugin.cpp')
| -rw-r--r-- | src/controls/plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/plugin.cpp b/src/controls/plugin.cpp index 52e7cb0d1..2a676e48d 100644 --- a/src/controls/plugin.cpp +++ b/src/controls/plugin.cpp @@ -57,6 +57,7 @@ #include "Private/qquickcontrolsprivate_p.h" #ifdef QT_WIDGETS_LIB +#include <QtQuick/qquickimageprovider.h> #include "Private/qquickstyleitem_p.h" #endif @@ -134,8 +135,8 @@ void QtQuickControlsPlugin::initializeEngine(QQmlEngine *engine, const char *uri #ifdef QT_WIDGETS_LIB qmlRegisterType<QQuickStyleItem>(private_uri, 1, 0, "StyleItem"); + engine->addImageProvider("__tablerow", new QQuickTableRowImageProvider); #endif - engine->addImageProvider("desktoptheme", new QQuickDesktopIconProvider); if (isLoadedFromResource()) engine->addImportPath(QStringLiteral("qrc:/")); |
