Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/timeline_frames_view.cpp
Context not available. | |||||
387 | void TimelineFramesView::slotColorLabelChanged(int label) | 387 | void TimelineFramesView::slotColorLabelChanged(int label) | ||
---|---|---|---|---|---|
388 | { | 388 | { | ||
389 | Q_FOREACH(QModelIndex index, selectedIndexes()) { | 389 | Q_FOREACH(QModelIndex index, selectedIndexes()) { | ||
390 | m_d->model->setData(index, label, TimelineFramesModel::ColorLabel); | 390 | m_d->model->setData(index, label, TimelineFramesModel::FrameColorLabelIndexRole); | ||
391 | } | 391 | } | ||
392 | 392 | | |||
393 | KisImageConfig config; | 393 | KisImageConfig config; | ||
Context not available. | |||||
861 | 861 | | |||
862 | { | 862 | { | ||
863 | KisSignalsBlocker b(m_d->colorSelector); | 863 | KisSignalsBlocker b(m_d->colorSelector); | ||
864 | QVariant colorLabel = index.data(TimelineFramesModel::ColorLabel); | 864 | QVariant colorLabel = index.data(TimelineFramesModel::FrameColorLabelIndexRole); | ||
865 | int labelIndex = colorLabel.isValid() ? colorLabel.toInt() : 0; | 865 | int labelIndex = colorLabel.isValid() ? colorLabel.toInt() : 0; | ||
866 | m_d->colorSelector->setCurrentIndex(labelIndex); | 866 | m_d->colorSelector->setCurrentIndex(labelIndex); | ||
867 | } | 867 | } | ||
Context not available. | |||||
875 | bool haveFrames = false; | 875 | bool haveFrames = false; | ||
876 | Q_FOREACH(QModelIndex index, selectedIndexes()) { | 876 | Q_FOREACH(QModelIndex index, selectedIndexes()) { | ||
877 | haveFrames |= index.data(TimelineFramesModel::FrameExistsRole).toBool(); | 877 | haveFrames |= index.data(TimelineFramesModel::FrameExistsRole).toBool(); | ||
878 | QVariant colorLabel = index.data(TimelineFramesModel::ColorLabel); | 878 | QVariant colorLabel = index.data(TimelineFramesModel::FrameColorLabelIndexRole); | ||
879 | if (colorLabel.isValid()) { | 879 | if (colorLabel.isValid()) { | ||
880 | if (labelIndex == 0) { | 880 | if (labelIndex == 0) { | ||
881 | labelIndex = colorLabel.toInt(); | 881 | labelIndex = colorLabel.toInt(); | ||
Context not available. |