X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..10769d8c47c21fe0ec5034726791a5ad4cf19475:/include/wx/bmpbuttn.h diff --git a/include/wx/bmpbuttn.h b/include/wx/bmpbuttn.h index 4b23b568c2..ee7a64bf0b 100644 --- a/include/wx/bmpbuttn.h +++ b/include/wx/bmpbuttn.h @@ -27,7 +27,10 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr; class WXDLLEXPORT wxBitmapButtonBase : public wxButton { public: - wxBitmapButtonBase() { m_marginX = m_marginY = 0; } + wxBitmapButtonBase() + : m_bmpNormal(), m_bmpSelected(), m_bmpFocus(), m_bmpDisabled() + , m_marginX(0), m_marginY(0) + { } // set the bitmaps void SetBitmapLabel(const wxBitmap& bitmap) @@ -69,6 +72,10 @@ protected: // the margins around the bitmap int m_marginX, m_marginY; +private: + // Prevent Virtual function hiding warnings + void SetLabel(const wxString& rsLabel) + { wxWindowBase::SetLabel(rsLabel); } }; #if defined(__WXUNIVERSAL__) @@ -79,8 +86,6 @@ protected: #include "wx/motif/bmpbuttn.h" #elif defined(__WXGTK__) #include "wx/gtk/bmpbuttn.h" -#elif defined(__WXQT__) - #include "wx/qt/bmpbuttn.h" #elif defined(__WXMAC__) #include "wx/mac/bmpbuttn.h" #elif defined(__WXPM__)