Put private wxQtChoice class inside an anonymous namespace
No real changes, just avoid polluting global scope unnecessarily.
This commit is contained in:
@@ -12,6 +12,9 @@
|
|||||||
#include "wx/qt/private/winevent.h"
|
#include "wx/qt/private/winevent.h"
|
||||||
#include <QtWidgets/QComboBox>
|
#include <QtWidgets/QComboBox>
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
class wxQtChoice : public wxQtEventSignalHandler< QComboBox, wxChoice >
|
class wxQtChoice : public wxQtEventSignalHandler< QComboBox, wxChoice >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -36,6 +39,8 @@ void wxQtChoice::activated(int WXUNUSED(index))
|
|||||||
handler->SendSelectionChangedEvent(wxEVT_CHOICE);
|
handler->SendSelectionChangedEvent(wxEVT_CHOICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // anonymous namespace
|
||||||
|
|
||||||
|
|
||||||
wxChoice::wxChoice() :
|
wxChoice::wxChoice() :
|
||||||
m_qtComboBox(NULL)
|
m_qtComboBox(NULL)
|
||||||
|
Reference in New Issue
Block a user