1879e8e646
This parameter is not modified by wxColourDialog (this might have been the case, or at least the plan, some long time ago) and so has no reason not to be "const". Just add the qualifier to ctor and Create() in all ports. Closes https://github.com/wxWidgets/wxWidgets/pull/1421 Closes #12511.
35 lines
866 B
C++
35 lines
866 B
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/qt/colordlg.h
|
|
// Author: Sean D'Epagnier
|
|
// Copyright: (c) Sean D'Epagnier 2014
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_QT_COLORDLG_H_
|
|
#define _WX_QT_COLORDLG_H_
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
class QColorDialog;
|
|
|
|
class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
|
|
{
|
|
public:
|
|
wxColourDialog() { }
|
|
wxColourDialog(wxWindow *parent,
|
|
const wxColourData *data = NULL) { Create(parent, data); }
|
|
|
|
bool Create(wxWindow *parent, const wxColourData *data = NULL);
|
|
|
|
wxColourData &GetColourData();
|
|
|
|
private:
|
|
QColorDialog *GetQColorDialog() const;
|
|
|
|
wxColourData m_data;
|
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxColourDialog);
|
|
};
|
|
|
|
#endif // _WX_QT_COLORDLG_H_
|