Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/timeline_frames_item_delegate.cpp
Context not available. | |||||
108 | bool active = index.data(TimelineFramesModel::ActiveLayerRole).toBool(); | 108 | bool active = index.data(TimelineFramesModel::ActiveLayerRole).toBool(); | ||
---|---|---|---|---|---|
109 | bool present = index.data(TimelineFramesModel::FrameExistsRole).toBool(); | 109 | bool present = index.data(TimelineFramesModel::FrameExistsRole).toBool(); | ||
110 | bool editable = index.data(TimelineFramesModel::FrameEditableRole).toBool(); | 110 | bool editable = index.data(TimelineFramesModel::FrameEditableRole).toBool(); | ||
111 | QVariant colorLabel = index.data(TimelineFramesModel::ColorLabel); | 111 | QVariant colorLabel = index.data(TimelineFramesModel::FrameColorLabelIndexRole); | ||
112 | 112 | | |||
113 | QColor color = colorLabel.isValid() ? labelColors.at(colorLabel.toInt()) : | 113 | QColor color = colorLabel.isValid() ? labelColors.at(colorLabel.toInt()) : | ||
114 | TimelineColorScheme::instance()->frameColor(present, active); | 114 | TimelineColorScheme::instance()->frameColor(present, active); | ||
Context not available. |