summaryrefslogtreecommitdiff
path: root/src/qtdesktop/qtmenupopupwindow_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtdesktop/qtmenupopupwindow_p.h')
-rw-r--r--src/qtdesktop/qtmenupopupwindow_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qtdesktop/qtmenupopupwindow_p.h b/src/qtdesktop/qtmenupopupwindow_p.h
index fb0f56ac..b1a9c051 100644
--- a/src/qtdesktop/qtmenupopupwindow_p.h
+++ b/src/qtdesktop/qtmenupopupwindow_p.h
@@ -54,11 +54,13 @@ class QtMenuPopupWindow : public QQuickWindow
public:
QtMenuPopupWindow(QWindow *parent = 0);
void setMenuContentItem(QQuickItem *contentItem);
+ void setItemAt(const QQuickItem *menuItem);
void setParentWindow(QQuickWindow *parentWindow);
public Q_SLOTS:
void dismissMenu();
void updateSize();
+ void updatePosition();
Q_SIGNALS:
void menuDismissed();
@@ -72,6 +74,8 @@ private:
void forwardEventToTransientParent(QMouseEvent *);
bool m_pressedInside;
+ const QQuickItem *m_itemAt;
+ QPointF m_oldItemPos;
};
QT_END_NAMESPACE