diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-04-20 15:43:07 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-04-20 18:05:16 +0000 |
commit | b12641c50c9cd82e65e14df70cd1dbb388acc006 (patch) | |
tree | 7d209aa8b00c895c58bc5a6549a688556ce80eab /src/quicktemplates2/qquickcombobox.cpp | |
parent | 692f49e85f3b3b38ba4cb8835b6e505b9648b07f (diff) |
Popup: rename close policy flags
Even though it gets a bit long, it's much easier to remember close
policy values that start with "Close". Even with auto-completion, one
still has to type something for Qt Creator to know what to complete.
That's where consistency (closePolicy -> CloseFoo, snapMode -> SnapBar)
helps.
Change-Id: Idc86322c0d1e367fad87eb1deafbf58ef6ddb04d
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
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 766cabe8..61ce5ce6 100644 --- a/src/quicktemplates2/qquickcombobox.cpp +++ b/src/quicktemplates2/qquickcombobox.cpp @@ -623,7 +623,7 @@ void QQuickComboBox::setPopup(QQuickPopup *popup) delete d->popup; if (popup) - popup->setClosePolicy(QQuickPopup::OnEscape | QQuickPopup::OnPressOutsideParent); + popup->setClosePolicy(QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutsideParent); d->popup = popup; emit popupChanged(); } |