#include <algorithm>
+#include <assert.h>
+
#include <QtGui>
#include "popup.h"
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),
setMask(popup_region());
}
-void Popup::showEvent(QShowEvent*)
-{
- reposition_widget();
-}
-
void Popup::mouseReleaseEvent(QMouseEvent *e)
{
assert(e);
close();
}
+void Popup::showEvent(QShowEvent*)
+{
+ reposition_widget();
+}
+
} // namespace widgets
} // namespace pv