Mercurial > hg > svgui
comparison view/AlignmentView.cpp @ 1183:57d192e26331 zoom
Some hackery toward having a zoomlevel type
author | Chris Cannam |
---|---|
date | Mon, 12 Dec 2016 15:18:52 +0000 |
parents | f2c63ec85901 |
children | 13d9b422f7fe |
comparison
equal
deleted
inserted
replaced
1182:6605984fa98f | 1183:57d192e26331 |
---|---|
55 { | 55 { |
56 update(); | 56 update(); |
57 } | 57 } |
58 | 58 |
59 void | 59 void |
60 AlignmentView::viewAboveZoomLevelChanged(int level, bool) | 60 AlignmentView::viewAboveZoomLevelChanged(ZoomLevel level, bool) |
61 { | 61 { |
62 m_zoomLevel = level; | 62 m_zoomLevel = level; |
63 update(); | 63 update(); |
64 } | 64 } |
65 | 65 |
66 void | 66 void |
67 AlignmentView::viewBelowZoomLevelChanged(int, bool) | 67 AlignmentView::viewBelowZoomLevelChanged(ZoomLevel, bool) |
68 { | 68 { |
69 update(); | 69 update(); |
70 } | 70 } |
71 | 71 |
72 void | 72 void |
78 | 78 |
79 m_above = v; | 79 m_above = v; |
80 | 80 |
81 if (m_above) { | 81 if (m_above) { |
82 connect(m_above, | 82 connect(m_above, |
83 SIGNAL(zoomLevelChanged(int, bool)), | 83 SIGNAL(zoomLevelChanged(ZoomLevel, bool)), |
84 this, | 84 this, |
85 SLOT(viewAboveZoomLevelChanged(int, bool))); | 85 SLOT(viewAboveZoomLevelChanged(ZoomLevel, bool))); |
86 } | 86 } |
87 } | 87 } |
88 | 88 |
89 void | 89 void |
90 AlignmentView::setViewBelow(View *v) | 90 AlignmentView::setViewBelow(View *v) |
95 | 95 |
96 m_below = v; | 96 m_below = v; |
97 | 97 |
98 if (m_below) { | 98 if (m_below) { |
99 connect(m_below, | 99 connect(m_below, |
100 SIGNAL(zoomLevelChanged(int, bool)), | 100 SIGNAL(zoomLevelChanged(ZoomLevel, bool)), |
101 this, | 101 this, |
102 SLOT(viewBelowZoomLevelChanged(int, bool))); | 102 SLOT(viewBelowZoomLevelChanged(ZoomLevel, bool))); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 void | 106 void |
107 AlignmentView::paintEvent(QPaintEvent *) | 107 AlignmentView::paintEvent(QPaintEvent *) |