Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Revert keyframe selection changing layer selection

Carsten Hartenfels3713225956c7
diff --git a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp b/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
index a52d4fa4e2..9ac71c6088 100644
--- a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
+++ b/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp
@@ -843,12 +843,6 @@ bool KisAnimTimelineFramesModel::removeRows(int row, int count, const QModelInde
return result;
}
-void KisAnimTimelineFramesModel::requestNodeChange(const QModelIndex& nodeIndex)
-{
- KisNodeSP node = nodeAt(nodeIndex);
- Q_EMIT requestCurrentNodeChanged(node);
-}
-
bool KisAnimTimelineFramesModel::insertOtherLayer(int index, int dstRow)
{
Q_UNUSED(dstRow);
diff --git a/plugins/dockers/animation/KisAnimTimelineFramesModel.h b/plugins/dockers/animation/KisAnimTimelineFramesModel.h
index e2ec214746..d4b485bc97 100644
--- a/plugins/dockers/animation/KisAnimTimelineFramesModel.h
+++ b/plugins/dockers/animation/KisAnimTimelineFramesModel.h
@@ -111,8 +111,6 @@ public:
bool insertRows(int row, int count, const QModelIndex &parent) override;
bool removeRows(int row, int count, const QModelIndex &parent) override;
- void requestNodeChange(const QModelIndex& nodeIndex);
-
enum ItemDataRole
{
ActiveLayerRole = KisTimeBasedItemModel::UserRole,
diff --git a/plugins/dockers/animation/KisAnimTimelineFramesView.cpp b/plugins/dockers/animation/KisAnimTimelineFramesView.cpp
index 75f88b342a..d10891e819 100644
--- a/plugins/dockers/animation/KisAnimTimelineFramesView.cpp
+++ b/plugins/dockers/animation/KisAnimTimelineFramesView.cpp
@@ -1341,10 +1341,6 @@ void KisAnimTimelineFramesView::currentChanged(const QModelIndex &current, const
m_d->model->setData(current, QVariant(int(SEEK_FINALIZE | SEEK_PUSH_AUDIO)), KisAnimTimelineFramesModel::ScrubToRole);
}
}
-
- if (current.row() != previous.row()) {
- m_d->model->requestNodeChange(current);
- }
}
QItemSelectionModel::SelectionFlags KisAnimTimelineFramesView::selectionCommand(const QModelIndex &index,