![]() |
KDWinUtils
Helper library for MFC to Qt migration
|
The KHeaderCtrl class is used to replace CHeaderCtrl. More...
#include <kheaderctrl.h>
Classes | |
| struct | HeaderItem |
Public Types | |
| enum class | Mask : uint { Width = 0x0001 , Height = Width , Text = 0x0002 , Format = 0x0004 , LPARAM = 0x0008 , Bitmap = 0x0010 , Image = 0x0020 , DI_SetItem = 0x0040 , Order = 0x0080 , Filter = 0x0100 , State = 0x0200 } |
Public Member Functions | |
| bool | GetItem (int nPos, HeaderItem *pHeaderItem) const |
| Retrieves information about an item in a header control. | |
| int | GetItemCount () const |
| Retrieves a count of the items in a header control. | |
| void | GetWindowRect (KRect *r) const |
| Gets the screen coordinates of CWnd. | |
| KHeaderCtrl (QObject *parent=nullptr) | |
| Q_DECLARE_FLAGS (Masks, Mask) | |
| void | setWidget (KListModel *widget) |
| KListModel * | widget () const |
The KHeaderCtrl class is used to replace CHeaderCtrl.
This class is the equivalent of CHeaderCtrl in MFC. It is used with a KListModel, and access to the header from the KHeaderCtrl.
|
strong |
| KHeaderCtrl::KHeaderCtrl | ( | QObject * | parent = nullptr | ) |
| bool KHeaderCtrl::GetItem | ( | int | nPos, |
| HeaderItem * | pHeaderItem ) const |
Retrieves information about an item in a header control.
| int KHeaderCtrl::GetItemCount | ( | ) | const |
Retrieves a count of the items in a header control.
| void KHeaderCtrl::GetWindowRect | ( | KRect * | r | ) | const |
Gets the screen coordinates of CWnd.
| KHeaderCtrl::Q_DECLARE_FLAGS | ( | Masks | , |
| Mask | ) |
| void KHeaderCtrl::setWidget | ( | KListModel * | widget | ) |
Sets the widget the class is proxying.
| KListModel * KHeaderCtrl::widget | ( | ) | const |
Returns the underlying widget the class is proxying.