BiblioteQ
Source
biblioteq_photograph_view.h
1
#ifndef _BIBLIOTEQ_PHOTOGRAPH_VIEW_H_
2
#define _BIBLIOTEQ_PHOTOGRAPH_VIEW_H_
3
4
#include <QGraphicsView>
5
6
class
biblioteq_photograph_view
:
public
QGraphicsView
7
{
8
Q_OBJECT
9
10
public
:
11
biblioteq_photograph_view
(QWidget *parent);
12
void
setBestFit(
const
bool
bestFit);
13
void
setImage(
const
QImage &image,
const
QString &format,
const
qint64 oid);
14
15
private
:
16
QImage m_image;
17
QString m_format;
18
bool
m_bestFit;
19
qint64 m_oid;
20
qreal m_degrees;
21
void
resizeEvent(QResizeEvent *event);
22
void
rotateImage(
const
qreal degrees);
23
24
private
slots:
25
void
slotRotateLeft(
void
);
26
void
slotRotateRight(
void
);
27
void
slotSave(
void
);
28
29
signals:
30
void
save(
const
QImage &image,
const
QString &format,
const
qint64 oid);
31
};
32
33
#endif
biblioteq_photograph_view
Definition:
biblioteq_photograph_view.h:6
Generated by
1.8.17