Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/timeline_frames_model.cpp
Context not available. | |||||
134 | frame->setColorLabel(color); | 134 | frame->setColorLabel(color); | ||
---|---|---|---|---|---|
135 | } | 135 | } | ||
136 | 136 | | |||
137 | int layerColorLabel(int row) const { | ||||
138 | KisNodeDummy *dummy = converter->dummyFromRow(row); | ||||
139 | if (!dummy) return -1; | ||||
140 | return dummy->node()->colorLabelIndex(); | ||||
141 | } | ||||
142 | | ||||
137 | QVariant layerProperties(int row) const { | 143 | QVariant layerProperties(int row) const { | ||
138 | KisNodeDummy *dummy = converter->dummyFromRow(row); | 144 | KisNodeDummy *dummy = converter->dummyFromRow(row); | ||
139 | if (!dummy) return QVariant(); | 145 | if (!dummy) return QVariant(); | ||
Context not available. | |||||
321 | case SpecialKeyframeExists: { | 327 | case SpecialKeyframeExists: { | ||
322 | return m_d->specialKeyframeExists(index.row(), index.column()); | 328 | return m_d->specialKeyframeExists(index.row(), index.column()); | ||
323 | } | 329 | } | ||
324 | case ColorLabel: { | 330 | case FrameColorLabelIndexRole: { | ||
325 | int label = m_d->frameColorLabel(index.row(), index.column()); | 331 | int label = m_d->frameColorLabel(index.row(), index.column()); | ||
326 | return label > 0 ? label : QVariant(); | 332 | return label > 0 ? label : QVariant(); | ||
327 | } | 333 | } | ||
Context not available. | |||||
362 | } | 368 | } | ||
363 | break; | 369 | break; | ||
364 | } | 370 | } | ||
365 | case ColorLabel: { | 371 | case FrameColorLabelIndexRole: { | ||
366 | m_d->setFrameColorLabel(index.row(), index.column(), value.toInt()); | 372 | m_d->setFrameColorLabel(index.row(), index.column(), value.toInt()); | ||
367 | } | 373 | } | ||
368 | break; | 374 | break; | ||
Context not available. | |||||
428 | if (!dummy) return QVariant(); | 434 | if (!dummy) return QVariant(); | ||
429 | return dummy->node()->useInTimeline(); | 435 | return dummy->node()->useInTimeline(); | ||
430 | } | 436 | } | ||
437 | case LayerColorLabelIndexRole:{ | ||||
438 | int label = m_d->layerColorLabel(section); | ||||
439 | return label > 0 ? label : QVariant(); | ||||
440 | } | ||||
431 | } | 441 | } | ||
432 | } | 442 | } | ||
433 | 443 | | |||
Context not available. |