summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-13 20:36:20 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-13 20:36:20 (GMT)
commitf2e9633ea7603df965eb7fdddf875fa8e950fb4d (patch)
tree0e1cf2bd0a40fff9ae640b9f720597c3f991532c
parent85078160fa34b1a04d663ebfc2ba7bf6dacf2ec9 (diff)
Fix misuse of QWeakPointer
-rw-r--r--mobile/components/pageitem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mobile/components/pageitem.h b/mobile/components/pageitem.h
index 58a1d94..f3da12e 100644
--- a/mobile/components/pageitem.h
+++ b/mobile/components/pageitem.h
@@ -21,6 +21,7 @@
#define QPAGEITEM_H
#include <QQuickPaintedItem>
+#include <QPointer>
#include <core/document.h>
#include <core/view.h>
@@ -165,9 +166,9 @@ private:
bool m_intentionalDraw;
bool m_bookmarked;
bool m_isThumbnail;
- QWeakPointer<DocumentItem> m_documentItem;
+ QPointer<DocumentItem> m_documentItem;
QTimer *m_redrawTimer;
- QWeakPointer <QQuickItem> m_flickable;
+ QPointer<QQuickItem> m_flickable;
Okular::DocumentViewport m_viewPort;
};