~verzegnassi-stefano/ubuntu-docviewer-app/reboot-lok-zoom-leak

« back to all changes in this revision

Viewing changes to src/plugin/libreofficetoolkit-qml-plugin/sgtileitem.cpp

  • Committer: Tarmac
  • Author(s): Roman Shchekin, Stefano Verzegnassi
  • Date: 2015-10-11 19:51:03 UTC
  • mfrom: (172.4.9 reboot-qsg-impress-support)
  • Revision ID: tarmac-20151011195103-st3zu274xl8v8o7h
RenderEngine - impress support.

Approved by Ubuntu Phone Apps Jenkins Bot, Stefano Verzegnassi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "sgtileitem.h"
2
 
 
3
2
#include "lodocument.h"
4
3
#include "config.h"
5
4
 
 
5
#include <QQuickWindow>
 
6
#include <QSGSimpleTextureNode>
 
7
 
6
8
#ifdef DEBUG_SHOW_TILE_BORDER
7
9
#include <QSGGeometryNode>
8
10
#include <QSGFlatColorMaterial>
9
11
#endif
10
12
 
11
 
int SGTileItem::s_idCounter = 0xDEAD0000;
12
 
 
13
 
SGTileItem::SGTileItem(const QRect& area, const qreal &zoom, QQuickItem *parent)
 
13
SGTileItem::SGTileItem(const QRect& area, qreal zoom, int id, QQuickItem *parent)
14
14
    : QQuickItem(parent)
15
15
    , m_area(area)
16
16
    , m_zoomFactor(zoom)
17
 
    , m_id (s_idCounter++)
 
17
    , m_id (id)
18
18
{
19
19
    setFlag(ItemHasContents, true);
20
20
}