X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01b2eeec59f924bc1af582e70d010f89dc29d3d3..258e5c7427015e93a233c4d1a5d3cd164abbe57c:/include/wx/qt/pen.h diff --git a/include/wx/qt/pen.h b/include/wx/qt/pen.h index 0e23c99daf..8989d44435 100644 --- a/include/wx/qt/pen.h +++ b/include/wx/qt/pen.h @@ -17,8 +17,9 @@ #endif #include "wx/gdiobj.h" +#include "wx/gdicmn.h" -typedef WXDWORD wxDash ; +typedef WXDWORD wxQTDash; class WXDLLEXPORT wxPen; @@ -37,7 +38,7 @@ protected: int m_cap ; wxBitmap m_stipple ; int m_nbDash ; - wxDash * m_dash ; + wxQTDash * m_dash; wxColour m_colour; /* TODO: implementation WXHPEN m_hPen; @@ -82,8 +83,10 @@ public: inline int GetStyle() const { return (M_PENDATA ? M_PENDATA->m_style : 0); }; inline int GetJoin() const { return (M_PENDATA ? M_PENDATA->m_join : 0); }; inline int GetCap() const { return (M_PENDATA ? M_PENDATA->m_cap : 0); }; - inline int GetDashes(wxDash **ptr) const { - *ptr = (M_PENDATA ? M_PENDATA->m_dash : NULL); return (M_PENDATA ? M_PENDATA->m_nbDash : 0); + inline int GetDashes(wxDash **ptr) const + { + *ptr = (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : (wxDash*)NULL); + return (M_PENDATA ? M_PENDATA->m_nbDash : 0); } inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : NULL); };