diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-05-04 00:17:21 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-07-09 10:37:34 +0000 |
commit | 09706e8f9fc481d848a3616cace58baf5bc8b67c (patch) | |
tree | 53addd2a72e4c08302774929dd54bf246344814c /src/quicktemplates2/qquickcombobox.cpp | |
parent | b4cc1fc862df43d9fed90b25ee2a9ef6692d2a5a (diff) |
Popup: expose flip API
[ChangeLog][Popup] Added allowVerticalFlip and allowHorizontalFlip
properties to control whether flipping is allowed to fit a popup
inside the window.
Change-Id: Id14a8846a1e2d07e98207da7c2b2765c202dbaf9
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickcombobox.cpp')
-rw-r--r-- | src/quicktemplates2/qquickcombobox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcombobox.cpp b/src/quicktemplates2/qquickcombobox.cpp index cce61509..c70f8839 100644 --- a/src/quicktemplates2/qquickcombobox.cpp +++ b/src/quicktemplates2/qquickcombobox.cpp @@ -651,7 +651,7 @@ void QQuickComboBox::setPopup(QQuickPopup *popup) delete d->popup; if (popup) { - QQuickPopupPrivate::get(popup)->allowVerticalFlip = true; + popup->setAllowVerticalFlip(true); popup->setClosePolicy(QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutsideParent); } d->popup = popup; |