From 929b077894476ead9d14c4a05eab6bdff63e77fb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Dec 2015 14:37:34 +0100 Subject: [PATCH] Remove comments and declarations copy-pasted from wxMSW Mentioning MSW-specific styles in wxOSX or wxQt code doesn't make sense. Closes https://github.com/wxWidgets/wxWidgets/pull/146 --- include/wx/osx/listctrl.h | 12 ------------ include/wx/qt/listctrl.h | 6 ------ 2 files changed, 18 deletions(-) diff --git a/include/wx/osx/listctrl.h b/include/wx/osx/listctrl.h index 8e36535dd9..652af605f0 100644 --- a/include/wx/osx/listctrl.h +++ b/include/wx/osx/listctrl.h @@ -170,22 +170,10 @@ public: // Returns the item or -1 if unsuccessful. long GetNextItem(long item, int geometry = wxLIST_NEXT_ALL, int state = wxLIST_STATE_DONTCARE) const ; - // Implementation: converts wxWidgets style to MSW style. - // Can be a single style flag or a bit list. - // oldStyle is 'normalised' so that it doesn't contain - // conflicting styles. - long ConvertToMSWStyle(long& oldStyle, long style) const; - // Gets one of the three image lists wxImageList *GetImageList(int which) const ; // Sets the image list - // N.B. There's a quirk in the Win95 list view implementation. - // If in wxLC_LIST mode, it'll *still* display images by the labels if - // there's a small-icon image list set for the control - even though you - // haven't specified wxLIST_MASK_IMAGE when inserting. - // So you have to set a NULL small-icon image list to be sure that - // the wxLC_LIST mode works without icons. Of course, you may want icons... void SetImageList(wxImageList *imageList, int which) ; // Operations diff --git a/include/wx/qt/listctrl.h b/include/wx/qt/listctrl.h index 0030688534..b534a0128e 100644 --- a/include/wx/qt/listctrl.h +++ b/include/wx/qt/listctrl.h @@ -173,12 +173,6 @@ public: wxImageList *GetImageList(int which) const; // Sets the image list - // N.B. There's a quirk in the Win95 list view implementation. - // If in wxLC_LIST mode, it'll *still* display images by the labels if - // there's a small-icon image list set for the control - even though you - // haven't specified wxLIST_MASK_IMAGE when inserting. - // So you have to set a NULL small-icon image list to be sure that - // the wxLC_LIST mode works without icons. Of course, you may want icons... void SetImageList(wxImageList *imageList, int which); void AssignImageList(wxImageList *imageList, int which);