MCPcopy Create free account
hub / github.com/KDE/krita / setStackCurrentIndex

Method setStackCurrentIndex

libs/command/kundo2model.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void KUndo2Model::setStackCurrentIndex(const QModelIndex &index)
106{
107 if (m_stack == 0)
108 return;
109
110 if (index == selectedIndex())
111 return;
112
113 if (index.column() != 0)
114 return;
115
116 m_stack->setIndex(index.row());
117}
118
119QModelIndex KUndo2Model::selectedIndex() const
120{

Callers

nothing calls this directly

Calls 2

setIndexMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected