Mercurial > hg > svgui
comparison widgets/LayerTree.cpp @ 807:e4773943c9c1 warnfix_no_size_t
More unsigned/long and warning fixes
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:55:27 +0100 |
parents | 1a0dfcbffaf1 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
806:4c8ca536b54f | 807:e4773943c9c1 |
---|---|
153 ModelMetadataModel::propertyContainerSelected(PropertyContainer *) | 153 ModelMetadataModel::propertyContainerSelected(PropertyContainer *) |
154 { | 154 { |
155 } | 155 } |
156 | 156 |
157 void | 157 void |
158 ModelMetadataModel::propertyContainerPropertyChanged(PropertyContainer *pc) | 158 ModelMetadataModel::propertyContainerPropertyChanged(PropertyContainer *) |
159 { | 159 { |
160 } | 160 } |
161 | 161 |
162 void | 162 void |
163 ModelMetadataModel::playParametersAudibilityChanged(bool a) | 163 ModelMetadataModel::playParametersAudibilityChanged(bool ) |
164 { | 164 { |
165 } | 165 } |
166 | 166 |
167 QVariant | 167 QVariant |
168 ModelMetadataModel::data(const QModelIndex &index, int role) const | 168 ModelMetadataModel::data(const QModelIndex &index, int role) const |
169 { | 169 { |
170 if (!index.isValid()) return QVariant(); | 170 if (!index.isValid()) return QVariant(); |
171 | 171 |
172 QObject *obj = static_cast<QObject *>(index.internalPointer()); | 172 // QObject *obj = static_cast<QObject *>(index.internalPointer()); |
173 int row = index.row(), col = index.column(); | 173 int row = index.row(), col = index.column(); |
174 | 174 |
175 //!!! not exactly the ideal use of a std::set | 175 //!!! not exactly the ideal use of a std::set |
176 std::set<Model *>::iterator itr = m_models.begin(); | 176 std::set<Model *>::iterator itr = m_models.begin(); |
177 for (int i = 0; i < row && itr != m_models.end(); ++i, ++itr); | 177 for (int i = 0; i < row && itr != m_models.end(); ++i, ++itr); |
204 | 204 |
205 return QVariant(); | 205 return QVariant(); |
206 } | 206 } |
207 | 207 |
208 bool | 208 bool |
209 ModelMetadataModel::setData(const QModelIndex &index, const QVariant &value, int role) | 209 ModelMetadataModel::setData(const QModelIndex &, const QVariant &, int ) |
210 { | 210 { |
211 return false; | 211 return false; |
212 } | 212 } |
213 | 213 |
214 Qt::ItemFlags | 214 Qt::ItemFlags |
215 ModelMetadataModel::flags(const QModelIndex &index) const | 215 ModelMetadataModel::flags(const QModelIndex &) const |
216 { | 216 { |
217 Qt::ItemFlags flags = Qt::ItemIsEnabled; | 217 Qt::ItemFlags flags = Qt::ItemIsEnabled; |
218 return flags; | 218 return flags; |
219 } | 219 } |
220 | 220 |
235 | 235 |
236 QModelIndex | 236 QModelIndex |
237 ModelMetadataModel::index(int row, int column, const QModelIndex &parent) const | 237 ModelMetadataModel::index(int row, int column, const QModelIndex &parent) const |
238 { | 238 { |
239 if (!parent.isValid()) { | 239 if (!parent.isValid()) { |
240 if (row >= m_models.size()) return QModelIndex(); | 240 if (row >= (int)m_models.size()) return QModelIndex(); |
241 return createIndex(row, column, (void *)0); | 241 return createIndex(row, column, (void *)0); |
242 } | 242 } |
243 | 243 |
244 return QModelIndex(); | 244 return QModelIndex(); |
245 } | 245 } |
246 | 246 |
247 QModelIndex | 247 QModelIndex |
248 ModelMetadataModel::parent(const QModelIndex &index) const | 248 ModelMetadataModel::parent(const QModelIndex &) const |
249 { | 249 { |
250 return QModelIndex(); | 250 return QModelIndex(); |
251 } | 251 } |
252 | 252 |
253 int | 253 int |
256 if (!parent.isValid()) return m_models.size(); | 256 if (!parent.isValid()) return m_models.size(); |
257 return 0; | 257 return 0; |
258 } | 258 } |
259 | 259 |
260 int | 260 int |
261 ModelMetadataModel::columnCount(const QModelIndex &parent) const | 261 ModelMetadataModel::columnCount(const QModelIndex &) const |
262 { | 262 { |
263 return m_columnCount; | 263 return m_columnCount; |
264 } | 264 } |
265 | 265 |
266 | 266 |