From a87e4d8c3c2102e9728dd5df303acca7ae08b343 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 6 Dec 2010 19:10:19 +0100 Subject: Edit values in archive This commit introduces QInputDialogs for all values editable in the archive. Inline editing in the view doesn't seem the right choice regarding usability. Fixed a long standing bug in nextDvdNo(). That was off by one. Return one more than max(value). Also got rid of DvdNoDialog, replaced by a QInputDialog. --- filestreewidget.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'filestreewidget.h') diff --git a/filestreewidget.h b/filestreewidget.h index ae8e27b..a0c9c2f 100644 --- a/filestreewidget.h +++ b/filestreewidget.h @@ -33,12 +33,10 @@ class FilesTreeWidget : public QWidget { public slots: void moveToBurn(); - void setDvdNo(); void removeFiles(); void moveToDirectory(); void fileProperties(); - void editQuality(); - void editPart(); + void edit(int column); private slots: void fileSelectionChanged(const QModelIndex ¤t, const QModelIndex &previous); @@ -91,18 +89,4 @@ class FilesTreeSortModel : public QSortFilterProxyModel { protected: virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const; }; - -class DvdNoDialog : public QDialog { - Q_OBJECT - public: - DvdNoDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); - ~DvdNoDialog() {} - int dvdNo() const; - - private: - QSpinBox *mDvdNo; - QPushButton *mOk; - QPushButton *mCancel; -}; - #endif -- cgit v1.2.3-70-g09d2