Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 946:36cddc3de023 alignment_view
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 09:19:52 +0100 |
parents | 8744bb5d9fd0 |
children | 66da6f009edd |
comparison
equal
deleted
inserted
replaced
897:499b637f2a26 | 946:36cddc3de023 |
---|---|
28 #include <QIcon> | 28 #include <QIcon> |
29 #include <QTabWidget> | 29 #include <QTabWidget> |
30 | 30 |
31 #include <iostream> | 31 #include <iostream> |
32 | 32 |
33 #define DEBUG_PROPERTY_STACK 1 | 33 //#define DEBUG_PROPERTY_STACK 1 |
34 | 34 |
35 PropertyStack::PropertyStack(QWidget *parent, View *client) : | 35 PropertyStack::PropertyStack(QWidget *parent, View *client) : |
36 QTabWidget(parent), | 36 QTabWidget(parent), |
37 m_client(client) | 37 m_client(client) |
38 { | 38 { |
170 // container (i.e. the layer) in the view: the view reorders its | 170 // container (i.e. the layer) in the view: the view reorders its |
171 // containers whenever one is raised to the top, while our boxes | 171 // containers whenever one is raised to the top, while our boxes |
172 // remain in the same order. So we must find this container in the | 172 // remain in the same order. So we must find this container in the |
173 // box list, not in the view. | 173 // box list, not in the view. |
174 | 174 |
175 for (size_t i = 0; i < m_boxes.size(); ++i) { | 175 for (int i = 0; in_range_for(m_boxes, i); ++i) { |
176 PropertyContainer *container = m_boxes[i]->getContainer(); | 176 PropertyContainer *container = m_boxes[i]->getContainer(); |
177 if (pc == container) { | 177 if (pc == container) { |
178 return i; | 178 return i; |
179 } | 179 } |
180 } | 180 } |