From 6022671ee5bd0f718cf0ad9ff2aefd2d1f154c58 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Sun, 4 Jan 2015 03:51:57 +0000 Subject: [PATCH] Added new ctor for wxBitmap using wxCursor for wxQT (similar to wxGTK) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/qt/bitmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/qt/bitmap.h b/include/wx/qt/bitmap.h index 49fcacf0f8..93164cc7ea 100644 --- a/include/wx/qt/bitmap.h +++ b/include/wx/qt/bitmap.h @@ -11,6 +11,7 @@ class WXDLLIMPEXP_FWD_CORE wxPixelDataBase; class WXDLLIMPEXP_FWD_CORE wxImage; +class WXDLLIMPEXP_FWD_CORE wxCursor; class QImage; class QPixmap; @@ -29,8 +30,9 @@ public: wxBitmap(const wxString &filename, wxBitmapType type = wxBITMAP_TYPE_XPM); wxBitmap(const wxImage& image, int depth = wxBITMAP_SCREEN_DEPTH); - // Convert from wxIcon + // Convert from wxIcon / wxCursor wxBitmap(const wxIcon& icon) { CopyFromIcon(icon); } + wxEXPLICIT wxBitmap(const wxCursor& cursor); static void InitStandardHandlers();