Make wxPG_COLOUR_ALLOW_CUSTOM a Boolean property

So far it was implemented as property which could take int values 0/1 so it was acting essentially as a Boolean property. Implementing it explicitly as a Boolean one will make it more intuitive. Legacy code setting 0/1 int values shouldn't be affected because conversion from int to bool is implicit.
This commit is contained in:
Artur Wieczorek
2019-05-12 12:49:38 +02:00
parent bb232f42c1
commit fde9bb6d41
3 changed files with 17 additions and 6 deletions

View File

@@ -206,9 +206,9 @@ struct wxPGPaintData
*/
#define wxPG_ATTR_MULTICHOICE_USERSTRINGMODE wxS("UserStringMode")
/** Built-in attribute of wxColourProperty and its kind, type of @c int,
default value is 1. Setting this attribute to 0 hides custom colour
from property's list of choices.
/** Built-in attribute of wxColourProperty and its kind, type of @c bool,
default value is @true. Setting this attribute to @false hides custom
colour from property's list of choices.
*/
#define wxPG_COLOUR_ALLOW_CUSTOM wxS("AllowCustom")