Fix names of wxDirProperty ctor parameters
First two paramaters of ctors of wxPGProperty and its derivates are named 'label' and 'name' so wxDirProperty ctor should conform to this convention. Close #18547.
This commit is contained in:
@@ -665,8 +665,8 @@ class WXDLLIMPEXP_PROPGRID wxDirProperty : public wxEditorDialogProperty
|
||||
{
|
||||
WX_PG_DECLARE_PROPERTY_CLASS(wxDirProperty)
|
||||
public:
|
||||
wxDirProperty( const wxString& name = wxPG_LABEL,
|
||||
const wxString& label = wxPG_LABEL,
|
||||
wxDirProperty( const wxString& label = wxPG_LABEL,
|
||||
const wxString& name = wxPG_LABEL,
|
||||
const wxString& value = wxEmptyString );
|
||||
virtual ~wxDirProperty();
|
||||
|
||||
|
@@ -688,8 +688,8 @@ protected:
|
||||
class wxDirProperty : public wxEditorDialogProperty
|
||||
{
|
||||
public:
|
||||
wxDirProperty( const wxString& name = wxPG_LABEL,
|
||||
const wxString& label = wxPG_LABEL,
|
||||
wxDirProperty( const wxString& label = wxPG_LABEL,
|
||||
const wxString& name = wxPG_LABEL,
|
||||
const wxString& value = wxEmptyString );
|
||||
virtual ~wxDirProperty();
|
||||
|
||||
|
@@ -1855,8 +1855,8 @@ bool wxFlagsProperty::DoSetAttribute( const wxString& name, wxVariant& value )
|
||||
|
||||
wxPG_IMPLEMENT_PROPERTY_CLASS(wxDirProperty, wxEditorDialogProperty, TextCtrlAndButton)
|
||||
|
||||
wxDirProperty::wxDirProperty( const wxString& name, const wxString& label, const wxString& value )
|
||||
: wxEditorDialogProperty(name, label)
|
||||
wxDirProperty::wxDirProperty( const wxString& label, const wxString& name, const wxString& value )
|
||||
: wxEditorDialogProperty(label, name)
|
||||
{
|
||||
m_flags &= ~wxPG_PROP_ACTIVE_BTN; // Property button enabled only in not read-only mode.
|
||||
SetValue(value);
|
||||
|
Reference in New Issue
Block a user