diff --git a/include/wx/qt/anybutton.h b/include/wx/qt/anybutton.h index f8cc359f97..d697f6be36 100644 --- a/include/wx/qt/anybutton.h +++ b/include/wx/qt/anybutton.h @@ -18,9 +18,7 @@ class QPushButton; class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase { public: - wxAnyButton() - { - } + wxAnyButton(); // implementation // -------------- diff --git a/src/qt/anybutton.cpp b/src/qt/anybutton.cpp index dc56780af2..a282231453 100644 --- a/src/qt/anybutton.cpp +++ b/src/qt/anybutton.cpp @@ -46,6 +46,12 @@ void wxQtPushButton::clicked( bool WXUNUSED(checked) ) } } +wxAnyButton::wxAnyButton() : + m_qtPushButton(NULL) +{ +} + + void wxAnyButton::QtCreate(wxWindow *parent) { // create the default push button (used in button and bmp button)