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)
|
WX_PG_DECLARE_PROPERTY_CLASS(wxDirProperty)
|
||||||
public:
|
public:
|
||||||
wxDirProperty( const wxString& name = wxPG_LABEL,
|
wxDirProperty( const wxString& label = wxPG_LABEL,
|
||||||
const wxString& label = wxPG_LABEL,
|
const wxString& name = wxPG_LABEL,
|
||||||
const wxString& value = wxEmptyString );
|
const wxString& value = wxEmptyString );
|
||||||
virtual ~wxDirProperty();
|
virtual ~wxDirProperty();
|
||||||
|
|
||||||
|
@@ -688,8 +688,8 @@ protected:
|
|||||||
class wxDirProperty : public wxEditorDialogProperty
|
class wxDirProperty : public wxEditorDialogProperty
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxDirProperty( const wxString& name = wxPG_LABEL,
|
wxDirProperty( const wxString& label = wxPG_LABEL,
|
||||||
const wxString& label = wxPG_LABEL,
|
const wxString& name = wxPG_LABEL,
|
||||||
const wxString& value = wxEmptyString );
|
const wxString& value = wxEmptyString );
|
||||||
virtual ~wxDirProperty();
|
virtual ~wxDirProperty();
|
||||||
|
|
||||||
|
@@ -1855,8 +1855,8 @@ bool wxFlagsProperty::DoSetAttribute( const wxString& name, wxVariant& value )
|
|||||||
|
|
||||||
wxPG_IMPLEMENT_PROPERTY_CLASS(wxDirProperty, wxEditorDialogProperty, TextCtrlAndButton)
|
wxPG_IMPLEMENT_PROPERTY_CLASS(wxDirProperty, wxEditorDialogProperty, TextCtrlAndButton)
|
||||||
|
|
||||||
wxDirProperty::wxDirProperty( const wxString& name, const wxString& label, const wxString& value )
|
wxDirProperty::wxDirProperty( const wxString& label, const wxString& name, const wxString& value )
|
||||||
: wxEditorDialogProperty(name, label)
|
: wxEditorDialogProperty(label, name)
|
||||||
{
|
{
|
||||||
m_flags &= ~wxPG_PROP_ACTIVE_BTN; // Property button enabled only in not read-only mode.
|
m_flags &= ~wxPG_PROP_ACTIVE_BTN; // Property button enabled only in not read-only mode.
|
||||||
SetValue(value);
|
SetValue(value);
|
||||||
|
Reference in New Issue
Block a user