2017-06-04 01:04:42 +02:00
|
|
|
#ifndef RECORDINGPREVIEW_HPP
|
|
|
|
#define RECORDINGPREVIEW_HPP
|
|
|
|
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QRect>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class RecordingPreview : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit RecordingPreview(QRect recordingArea, QWidget *parent = 0);
|
|
|
|
~RecordingPreview();
|
|
|
|
void setPixmap(QPixmap map);
|
|
|
|
void setTime(QString time, int frame);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel *label;
|
|
|
|
QLabel *hintLabel;
|
2017-06-24 23:03:00 +02:00
|
|
|
QSize size;
|
2017-06-04 01:04:42 +02:00
|
|
|
QRect recordingArea;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RECORDINGPREVIEW_HPP
|