From d12c37e52b64184bbb50e375d17d7eca3244a360 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 28 Jan 2016 14:50:43 +0100 Subject: Add QQuickPopup::popupItem() Even though I didn't want to expose this, because I'm still hoping we could make QQuickPopup inherit QQuickControl in the future, the fact that QQuickPopupPrivate::get(popup)->popupItem was used in so many places is a good indicator that accessing the popup item is often required when dealing with popups. In any case, this is C++ only API and not exposed to QML, so it's not that big deal... and we can always deprecate it later and make it return "this" should the item plans come true. Change-Id: I6b99a499327d838ee61eae70f8ebf8e77f00ae39 Reviewed-by: J-P Nurmi --- tests/auto/popup/tst_popup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/popup/tst_popup.cpp b/tests/auto/popup/tst_popup.cpp index 0b75b7f7..61bf999c 100644 --- a/tests/auto/popup/tst_popup.cpp +++ b/tests/auto/popup/tst_popup.cpp @@ -41,7 +41,7 @@ #include #include -#include +#include #include using namespace QQuickVisualTestUtil; @@ -67,7 +67,7 @@ void tst_popup::visible() QQuickPopup *popup = helper.window->property("popup").value(); QVERIFY(popup); - QQuickItem *popupItem = QQuickPopupPrivate::get(popup)->popupItem; + QQuickItem *popupItem = popup->popupItem(); popup->open(); QVERIFY(popup->isVisible()); -- cgit v1.2.3