From 057da448ad06de20b8054ae1ba5ed7f6fb656c1b Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 13 Jul 2013 06:42:57 +0200 Subject: Make all NodeTypes editable Use plpgsql functions to edit nodes. Makes the program logic much easier. Also, rename rename() to edit() :) --- archiveview.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'archiveview.cpp') diff --git a/archiveview.cpp b/archiveview.cpp index c376c06..ca5615c 100644 --- a/archiveview.cpp +++ b/archiveview.cpp @@ -260,13 +260,8 @@ void ArchiveTree::setModel(ArchiveProxy *model){ QTreeView::setModel(model); } -void ArchiveTree::rename(){ +void ArchiveTree::edit(){ QModelIndex idx = currentIndex(); - /*int nodeType = idx.data(ArchiveModel::TypeRole).toInt(); - if(nodeType == ArchiveModel::SeriesPartNode){ - impossible(); - return; - }*/ QString currentName = idx.data(ArchiveModel::NameRole).toString(); QString question = QString(tr("Rename %1 to:")).arg(currentName); QString newName = QInputDialog::getText(this, tr("Rename"), question, QLineEdit::Normal, currentName); -- cgit v1.2.3-70-g09d2