Serialize current index of SectionWidget

This commit is contained in:
mfreiholz
2016-02-11 14:51:38 +01:00
parent cb3324284a
commit 861d5187e3
3 changed files with 11 additions and 4 deletions

View File

@@ -206,6 +206,11 @@ int SectionWidget::indexOfContentByTitlePos(const QPoint& p, QWidget* exclude) c
return index;
}
int SectionWidget::currentIndex() const
{
return _contentsLayout->currentIndex();
}
void SectionWidget::moveContent(int from, int to)
{
if (from >= _contents.size() || from < 0 || to >= _contents.size() || to < 0 || from == to)