diff options
author | Arno <am@disconnect.de> | 2012-03-10 07:29:20 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-10 07:29:20 +0100 |
commit | 08c7cc837379ae4f085a6cc0d44a8b58bdb5a030 (patch) | |
tree | 50e3a3a69a2abc68d2cbb18f5e8668dba374a40c /pictureswidget.h | |
parent | 8aae1eea458695a19a7ff36bdffbe59c9e7d4cf2 (diff) | |
download | SheMov-08c7cc837379ae4f085a6cc0d44a8b58bdb5a030.tar.gz SheMov-08c7cc837379ae4f085a6cc0d44a8b58bdb5a030.tar.bz2 SheMov-08c7cc837379ae4f085a6cc0d44a8b58bdb5a030.zip |
Slide show
Implement slide show in Pictureviewer2. Slide over all available files
and wrap around when reaching the end of the list.
Also added some more artwork.
Diffstat (limited to 'pictureswidget.h')
-rw-r--r-- | pictureswidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pictureswidget.h b/pictureswidget.h index f473140..3f2c41f 100644 --- a/pictureswidget.h +++ b/pictureswidget.h @@ -64,12 +64,14 @@ class PictureView : public QTreeView { PicFilesModel *filesModel() { return mModel; } QSortFilterProxyModel *proxy() { return mProxy; } void setPV(PictureViewer2 *pv) { mPV = pv; } + PictureViewer2 *PV() { return mPV; } public slots: void mappingChanged(int mapping); void deletePics(); void refresh(); void setPVData(int replace = false); + void setPVAll(); protected: virtual void hideEvent(QHideEvent *); @@ -107,6 +109,7 @@ class PicFilesModel : public SmTreeModel { 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; + QList<QList<QVariant> > allFiles() const; void removeFiles(const QList<QPersistentModelIndex> &files); bool changeMappings(const QList<int> &fileIds, const QList<int> &mappingIds); @@ -120,6 +123,7 @@ class PicFilesModel : public SmTreeModel { QSqlQuery *mCurMappingIdsQ; QSqlQuery *mDeleteMappingsQ; QSqlQuery *mAddMappingsQ; + QSqlQuery *mAllFilesQ; QString mCurMappingIdsQS; int mMappingId; QList<int> mCurMappingsIds; |