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/qquickmenu.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/qquickmenu.cpp')
-rw-r--r-- | src/quicktemplates2/qquickmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickmenu.cpp b/src/quicktemplates2/qquickmenu.cpp index 8c3d9168..b3716bf9 100644 --- a/src/quicktemplates2/qquickmenu.cpp +++ b/src/quicktemplates2/qquickmenu.cpp @@ -266,7 +266,7 @@ QQuickMenu::QQuickMenu(QObject *parent) : QQuickPopup(*(new QQuickMenuPrivate), parent) { setFocus(true); - setClosePolicy(OnEscape | OnPressOutside | OnReleaseOutside); + setClosePolicy(CloseOnEscape | CloseOnPressOutside | CloseOnReleaseOutside); } /*! |