comparison view/View.cpp @ 1044:4e5c1c326794 3.0-integration

Make ViewProxy objects share the ids of their Views; fixes incorrect colour scale drawing
author Chris Cannam
date Tue, 09 Feb 2016 10:59:36 +0000
parents 69c4f8403ebf
children ee01a4062747
comparison
equal deleted inserted replaced
1043:fccee028a522 1044:4e5c1c326794
49 //#define DEBUG_VIEW 1 49 //#define DEBUG_VIEW 1
50 //#define DEBUG_VIEW_WIDGET_PAINT 1 50 //#define DEBUG_VIEW_WIDGET_PAINT 1
51 51
52 View::View(QWidget *w, bool showProgress) : 52 View::View(QWidget *w, bool showProgress) :
53 QFrame(w), 53 QFrame(w),
54 m_id(getNextId()),
54 m_centreFrame(0), 55 m_centreFrame(0),
55 m_zoomLevel(1024), 56 m_zoomLevel(1024),
56 m_followPan(true), 57 m_followPan(true),
57 m_followZoom(true), 58 m_followZoom(true),
58 m_followPlay(PlaybackScrollPageWithCentre), 59 m_followPlay(PlaybackScrollPageWithCentre),