ImageView big images property
This commit is contained in:
@@ -32,6 +32,7 @@ class QAD_WIDGETS_EXPORT ImageView: public QGraphicsView {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
|
||||
Q_PROPERTY(bool viewInteractive READ viewInteractive WRITE setViewInteractive)
|
||||
Q_PROPERTY(bool smoothBigImages READ isSmoothBigImages WRITE setSmoothBigImages)
|
||||
|
||||
public:
|
||||
ImageView(QWidget * parent = nullptr);
|
||||
@@ -44,6 +45,9 @@ public:
|
||||
bool viewInteractive() const { return interactive_; }
|
||||
void clear();
|
||||
|
||||
bool isSmoothBigImages() const { return smooth_big; }
|
||||
void setSmoothBigImages(bool yes);
|
||||
|
||||
public slots:
|
||||
void autofit();
|
||||
void setPixmap(QPixmap pixmap);
|
||||
@@ -62,7 +66,7 @@ private:
|
||||
QGraphicsPixmapItem * item;
|
||||
QByteArray im_data;
|
||||
QPoint prev_pos;
|
||||
bool autofit_, interactive_;
|
||||
bool autofit_, interactive_, smooth_big;
|
||||
QPixmap map;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user