]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/popup.cpp
Added missing includes and defintions
[pulseview.git] / pv / widgets / popup.cpp
index f89e38a6b1b84e3fdc9b923060f31688277c87f1..ec6e60c46568b0e40fd53c80fda3ea70356e1579 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <algorithm>
 
+#include <assert.h>
+
 #include <QtGui>
 
 #include "popup.h"
@@ -198,11 +200,6 @@ void Popup::resizeEvent(QResizeEvent*)
        setMask(popup_region());
 }
 
-void Popup::showEvent(QShowEvent*)
-{
-       reposition_widget();
-}
-
 void Popup::mouseReleaseEvent(QMouseEvent *e)
 {
        assert(e);
@@ -213,6 +210,11 @@ void Popup::mouseReleaseEvent(QMouseEvent *e)
                close();
 }
 
+void Popup::showEvent(QShowEvent*)
+{
+       reposition_widget();
+}
+
 } // namespace widgets
 } // namespace pv