diff options
author | Arno <am@disconnect.de> | 2012-03-08 10:19:16 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-08 10:19:16 +0100 |
commit | 8aae1eea458695a19a7ff36bdffbe59c9e7d4cf2 (patch) | |
tree | 0454478e9d345e7a5f07ea238c098293a9920524 /pictureswidget.h | |
parent | ea30d012b7777a2aea1c5e957a7d7566eebef391 (diff) | |
download | SheMov-8aae1eea458695a19a7ff36bdffbe59c9e7d4cf2.tar.gz SheMov-8aae1eea458695a19a7ff36bdffbe59c9e7d4cf2.tar.bz2 SheMov-8aae1eea458695a19a7ff36bdffbe59c9e7d4cf2.zip |
Make PictureViewer useful
-Implement add and replace files
-use QList<QVariant> (typedef'd) for shoveling data around
-more code shuffling
-new artwork
Diffstat (limited to 'pictureswidget.h')
-rw-r--r-- | pictureswidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pictureswidget.h b/pictureswidget.h index fd0b5ac..f473140 100644 --- a/pictureswidget.h +++ b/pictureswidget.h @@ -62,11 +62,14 @@ class PictureView : public QTreeView { explicit PictureView(QWidget *parent = 0); QList<int> fileMappings() { return mFilesMappings; } PicFilesModel *filesModel() { return mModel; } + QSortFilterProxyModel *proxy() { return mProxy; } + void setPV(PictureViewer2 *pv) { mPV = pv; } public slots: void mappingChanged(int mapping); void deletePics(); void refresh(); + void setPVData(int replace = false); protected: virtual void hideEvent(QHideEvent *); @@ -87,6 +90,7 @@ class PictureView : public QTreeView { PicFilesModel *mModel; int mCursorOffset; QList<int> mFilesMappings; + PictureViewer2 *mPV; }; class PicFilesModel : public SmTreeModel { @@ -102,6 +106,7 @@ class PicFilesModel : public SmTreeModel { //some data Qt::ItemFlags flags(const QModelIndex &) const { return Qt::ItemIsEnabled | Qt::ItemIsSelectable; } QVariant data(const QModelIndex &index, int role) const; + QList<QVariant> dataList(const QModelIndex &idx) const; void removeFiles(const QList<QPersistentModelIndex> &files); bool changeMappings(const QList<int> &fileIds, const QList<int> &mappingIds); |