X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fpopup.cpp;h=9863887ed5dab9595e69f6c8ba5b1308186223dd;hp=ec6e60c46568b0e40fd53c80fda3ea70356e1579;hb=0bce86095e332bedff9643e3dfbe409259e2df5f;hpb=b213ef0991a13af0c74ffe5c54382c5c455c5496 diff --git a/pv/widgets/popup.cpp b/pv/widgets/popup.cpp index ec6e60c4..9863887e 100644 --- a/pv/widgets/popup.cpp +++ b/pv/widgets/popup.cpp @@ -31,9 +31,9 @@ using namespace std; namespace pv { namespace widgets { -const unsigned int Popup::ArrowLength = 15; +const unsigned int Popup::ArrowLength = 10; 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), @@ -164,6 +164,11 @@ void Popup::reposition_widget() move(_point + o); } +void Popup::closeEvent(QCloseEvent*) +{ + closed(); +} + void Popup::paintEvent(QPaintEvent*) { QPainter painter(this);