class Popup : public QWidget
{
+ Q_OBJECT
+
public:
enum Position
{
void set_position(const QPoint point, Position pos);
private:
+ bool space_for_arrow() const;
+
QPolygon arrow_polygon() const;
QRegion arrow_region() const;
void reposition_widget();
+private:
+ void closeEvent(QCloseEvent*);
+
void paintEvent(QPaintEvent*);
void resizeEvent(QResizeEvent*);
protected:
void showEvent(QShowEvent *e);
+Q_SIGNALS:
+ void closed();
+
private:
QPoint _point;
Position _pos;