diff options
author | Arno <am@disconnect.de> | 2012-12-30 13:42:35 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-12-30 13:42:35 +0100 |
commit | 6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55 (patch) | |
tree | cf5a50340feeccf136eb7b99cd7a0699f43b7111 /filestreewidget.h | |
parent | a069898249b863b0982b1807afa8d0b0912b496e (diff) | |
download | SheMov-6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55.tar.gz SheMov-6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55.tar.bz2 SheMov-6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55.zip |
Allow moving files from one Series to another
Allow moving files from one SeriesPart to another. Had to add another
global variable for this.
Diffstat (limited to 'filestreewidget.h')
-rw-r--r-- | filestreewidget.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/filestreewidget.h b/filestreewidget.h index 73f5d72..036ee0e 100644 --- a/filestreewidget.h +++ b/filestreewidget.h @@ -10,6 +10,8 @@ #include <QWidget> #include <QTreeView> +#include <QDialog> +#include <QPersistentModelIndex> #include <QSortFilterProxyModel> typedef QList<QPersistentModelIndex> PersistenModelIndexList; @@ -40,6 +42,7 @@ class FilesTreeWidget : public QWidget { void edit(int column); void suggest(); void playSelected(); + void moveToSeries(); private slots: void fileSelectionChanged(); @@ -99,4 +102,20 @@ class FilesTreeSortModel : public QSortFilterProxyModel { protected: virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const; }; + +class FileMoveDialog : public QDialog { + Q_OBJECT + public: + explicit FileMoveDialog(QPersistentModelIndex selected, QList<QPersistentModelIndex> files, QWidget *parent = 0, Qt::WindowFlags f = 0); + + public slots: + virtual void accept(); + + private: + QPushButton *mOk; + QPushButton *mCancel; + QTreeView *mTree; + SeriesTreeModel *mModel; + QList<QPersistentModelIndex> mFiles; +}; #endif |