forked from qt-creator/qt-creator
Tracing: Wrap pointers we don't own in QPointer
The notes model might get deleted before the renderer. Change-Id: Ic7b0ee73bd96e63b19e05b1a374baaf28c6f47fc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
|
||||
#include "timelineabstractrenderer.h"
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
namespace Timeline {
|
||||
|
||||
class TRACING_EXPORT TimelineAbstractRenderer::TimelineAbstractRendererPrivate {
|
||||
@@ -36,9 +38,9 @@ public:
|
||||
|
||||
int selectedItem;
|
||||
bool selectionLocked;
|
||||
TimelineModel *model;
|
||||
TimelineNotesModel *notes;
|
||||
TimelineZoomControl *zoomer;
|
||||
QPointer<TimelineModel> model;
|
||||
QPointer<TimelineNotesModel> notes;
|
||||
QPointer<TimelineZoomControl> zoomer;
|
||||
|
||||
bool modelDirty;
|
||||
bool rowHeightsDirty;
|
||||
|
Reference in New Issue
Block a user