2017-05-31 17:24:17 +02:00
|
|
|
#ifndef SCREENAREASELECTOR_HPP
|
|
|
|
#define SCREENAREASELECTOR_HPP
|
|
|
|
|
2017-05-31 22:30:18 +02:00
|
|
|
#include <QLabel>
|
2017-05-31 17:24:17 +02:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class ScreenAreaSelector : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
ScreenAreaSelector();
|
|
|
|
~ScreenAreaSelector();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent *event) override;
|
|
|
|
void keyPressEvent(QKeyEvent *) override;
|
2017-05-31 22:30:18 +02:00
|
|
|
void resizeEvent(QResizeEvent *) override;
|
2017-05-31 17:24:17 +02:00
|
|
|
signals:
|
|
|
|
void selectedArea(QRect area);
|
2017-05-31 22:30:18 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel *hintLabel;
|
2017-05-31 17:24:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SCREENAREASELECTOR_HPP
|