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/qquickpopup_p.h | |
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/qquickpopup_p.h')
-rw-r--r-- | src/quicktemplates2/qquickpopup_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/quicktemplates2/qquickpopup_p.h b/src/quicktemplates2/qquickpopup_p.h index 8a586c96..e1219a2c 100644 --- a/src/quicktemplates2/qquickpopup_p.h +++ b/src/quicktemplates2/qquickpopup_p.h @@ -238,11 +238,11 @@ public: enum ClosePolicyFlag { NoAutoClose = 0x00, - OnPressOutside = 0x01, - OnPressOutsideParent = 0x02, - OnReleaseOutside = 0x04, - OnReleaseOutsideParent = 0x08, - OnEscape = 0x10 + CloseOnPressOutside = 0x01, + CloseOnPressOutsideParent = 0x02, + CloseOnReleaseOutside = 0x04, + CloseOnReleaseOutsideParent = 0x08, + CloseOnEscape = 0x10 }; Q_DECLARE_FLAGS(ClosePolicy, ClosePolicyFlag) Q_FLAG(ClosePolicy) |