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/Private/qquickstyleitem_p.h | |
| 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/Private/qquickstyleitem_p.h')
| -rw-r--r-- | src/controls/Private/qquickstyleitem_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/controls/Private/qquickstyleitem_p.h b/src/controls/Private/qquickstyleitem_p.h index 7ab37a52c..a13cd4ccf 100644 --- a/src/controls/Private/qquickstyleitem_p.h +++ b/src/controls/Private/qquickstyleitem_p.h @@ -44,6 +44,7 @@ #include <QtGui/qimage.h> #include <QtQuick/qquickitem.h> +#include <QtQuick/qquickimageprovider.h> #include "qquickpadding_p.h" QT_BEGIN_NAMESPACE @@ -51,6 +52,14 @@ QT_BEGIN_NAMESPACE class QWidget; class QStyleOption; +class QQuickTableRowImageProvider : public QQuickImageProvider +{ +public: + QQuickTableRowImageProvider() + : QQuickImageProvider(QQuickImageProvider::Pixmap) {} + QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize); +}; + class QQuickStyleItem: public QQuickItem { Q_OBJECT |
