As per wx-dev, split the sort arrow options out to a separate parameter.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,6 +47,7 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0,
|
||||
wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE,
|
||||
wxHeaderButtonParams* params = NULL);
|
||||
|
||||
// draw the expanded/collapsed icon for a tree control item
|
||||
@@ -185,6 +186,7 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags,
|
||||
wxHeaderSortIconType sortArrow,
|
||||
wxHeaderButtonParams* params)
|
||||
{
|
||||
|
||||
@@ -208,7 +210,7 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
|
||||
dc.LogicalToDeviceX(rect.x) - x_diff, rect.y, rect.width, rect.height
|
||||
);
|
||||
|
||||
DrawHeaderButtonContents(win, dc, rect, flags, params);
|
||||
DrawHeaderButtonContents(win, dc, rect, flags, sortArrow, params);
|
||||
}
|
||||
|
||||
// draw a ">" or "v" button
|
||||
|
Reference in New Issue
Block a user