summaryrefslogtreecommitdiffstats
path: root/filestreewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filestreewidget.cpp')
-rw-r--r--filestreewidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/filestreewidget.cpp b/filestreewidget.cpp
index 2b28c93..4542ea8 100644
--- a/filestreewidget.cpp
+++ b/filestreewidget.cpp
@@ -200,6 +200,14 @@ void FilesTreeWidget::editQuality(){
}
}
+void FilesTreeWidget::editPart(){
+ QModelIndex current = mView->selectionModel()->currentIndex();
+ if(current.isValid()){
+ QModelIndex qualityIndex = mView->model()->index(current.row(), FilesTreeModel::PartNo, current.parent());
+ mView->edit(qualityIndex);
+ }
+}
+
void FilesTreeWidget::fileSelectionChanged(const QModelIndex &current, const QModelIndex &previous){
Q_UNUSED(previous);
int seriesPartId = current.data(FilesTreeModel::SeriesPartIdRole).toInt();