ScreenTranslator/SelectionDialog.h

35 lines
592 B
C
Raw Normal View History

2013-11-23 13:48:34 +07:00
#ifndef SELECTIONDIALOG_H
#define SELECTIONDIALOG_H
#include <QDialog>
#include <QPixmap>
namespace Ui {
class SelectionDialog;
}
class SelectionDialog : public QDialog
{
Q_OBJECT
public:
explicit SelectionDialog(QWidget *parent = 0);
~SelectionDialog();
bool eventFilter (QObject *object, QEvent *event);
signals:
void selected (QPixmap pixmap);
public slots:
void setPixmap (QPixmap pixmap);
private:
Ui::SelectionDialog *ui;
QPoint startSelectPos_;
QPoint currentSelectPos_;
QPixmap currentPixmap_;
};
#endif // SELECTIONDIALOG_H