Turn on calculating of image statistics
This commit is contained in:
+7
-1
@@ -8,6 +8,8 @@
|
||||
#include <memory>
|
||||
#include "imageinfo.h"
|
||||
|
||||
class ImageRingList;
|
||||
|
||||
class Image : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -17,8 +19,9 @@ class Image : public QObject
|
||||
QPixmap m_pixmap;
|
||||
QString m_name;
|
||||
ImageInfoData m_info;
|
||||
ImageRingList *m_ringList;
|
||||
public:
|
||||
explicit Image(const QString name);
|
||||
explicit Image(const QString name, ImageRingList *ringList);
|
||||
void load();
|
||||
void release();
|
||||
QString name() const;
|
||||
@@ -43,6 +46,7 @@ class ImageRingList : public QObject
|
||||
QList<ImagePtr>::iterator m_lastImage;
|
||||
QFileSystemWatcher m_fileSystemWatcher;
|
||||
bool m_liveMode;
|
||||
bool m_calculateStats;
|
||||
public:
|
||||
explicit ImageRingList(QObject *parent = 0);
|
||||
~ImageRingList();
|
||||
@@ -52,6 +56,8 @@ public:
|
||||
void increment();
|
||||
void decrement();
|
||||
void setLiveMode(bool live);
|
||||
void setCalculateStats(bool stats);
|
||||
bool calculateStats() const;
|
||||
protected:
|
||||
void setFiles(const QStringList files, const QString ¤tFile = QString());
|
||||
QList<ImagePtr>::iterator increment(QList<ImagePtr>::iterator iter);
|
||||
|
||||
Reference in New Issue
Block a user