projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Popup::closed signal
[pulseview.git]
/
pv
/
widgets
/
popup.h
diff --git
a/pv/widgets/popup.h
b/pv/widgets/popup.h
index 1da09d85eb5965401205d459ccd038ab160e1fb0..e7c867acbad82ed0b49f4ea81d29ac0b4e71d35a 100644
(file)
--- a/
pv/widgets/popup.h
+++ b/
pv/widgets/popup.h
@@
-28,6
+28,8
@@
namespace widgets {
class Popup : public QWidget
{
class Popup : public QWidget
{
+ Q_OBJECT
+
public:
enum Position
{
public:
enum Position
{
@@
-63,6
+65,9
@@
private:
void reposition_widget();
void reposition_widget();
+private:
+ void closeEvent(QCloseEvent*);
+
void paintEvent(QPaintEvent*);
void resizeEvent(QResizeEvent*);
void paintEvent(QPaintEvent*);
void resizeEvent(QResizeEvent*);
@@
-72,6
+77,9
@@
private:
protected:
void showEvent(QShowEvent *e);
protected:
void showEvent(QShowEvent *e);
+signals:
+ void closed();
+
private:
QPoint _point;
Position _pos;
private:
QPoint _point;
Position _pos;