summaryrefslogtreecommitdiffstats
path: root/filestreewidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-12-06 19:10:19 +0100
committerArno <am@disconnect.de>2010-12-06 19:10:19 +0100
commita87e4d8c3c2102e9728dd5df303acca7ae08b343 (patch)
tree29b2b7d2c5f532da2ea18152e7cf34ad51b1016f /filestreewidget.h
parentcb4d80e6a642ef0cd3180aed2155d86144c83395 (diff)
downloadSheMov-a87e4d8c3c2102e9728dd5df303acca7ae08b343.tar.gz
SheMov-a87e4d8c3c2102e9728dd5df303acca7ae08b343.tar.bz2
SheMov-a87e4d8c3c2102e9728dd5df303acca7ae08b343.zip
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.
Diffstat (limited to 'filestreewidget.h')
-rw-r--r--filestreewidget.h18
1 files changed, 1 insertions, 17 deletions
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 &current, 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