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.cpp
diff --git
a/pv/widgets/popup.cpp
b/pv/widgets/popup.cpp
index 399f5e28b6d56d4d525b896a371208f304c7bb97..9863887ed5dab9595e69f6c8ba5b1308186223dd 100644
(file)
--- a/
pv/widgets/popup.cpp
+++ b/
pv/widgets/popup.cpp
@@
-20,6
+20,8
@@
#include <algorithm>
#include <algorithm>
+#include <assert.h>
+
#include <QtGui>
#include "popup.h"
#include <QtGui>
#include "popup.h"
@@
-29,9
+31,9
@@
using namespace std;
namespace pv {
namespace widgets {
namespace pv {
namespace widgets {
-const unsigned int Popup::ArrowLength = 1
5
;
+const unsigned int Popup::ArrowLength = 1
0
;
const unsigned int Popup::ArrowOverlap = 3;
const unsigned int Popup::ArrowOverlap = 3;
-const unsigned int Popup::MarginWidth =
10
;
+const unsigned int Popup::MarginWidth =
6
;
Popup::Popup(QWidget *parent) :
QWidget(parent, Qt::Popup | Qt::FramelessWindowHint),
Popup::Popup(QWidget *parent) :
QWidget(parent, Qt::Popup | Qt::FramelessWindowHint),
@@
-162,6
+164,11
@@
void Popup::reposition_widget()
move(_point + o);
}
move(_point + o);
}
+void Popup::closeEvent(QCloseEvent*)
+{
+ closed();
+}
+
void Popup::paintEvent(QPaintEvent*)
{
QPainter painter(this);
void Popup::paintEvent(QPaintEvent*)
{
QPainter painter(this);