![]() |
KDWinUtils
Helper library for MFC to Qt migration
|
The KTabCtrl class is used to replace DDX_Control tab bar data exchange. More...
#include <ktabctrl.h>
Public Member Functions | |
| bool | DeleteAllItems () |
| Removes all items from a tab control. | |
| int | GetCurSel () const |
| Determines the currently selected tab in a tab control. | |
| int | GetItemCount () const |
| Retrieves the number of tabs in the tab control. | |
| int | InsertItem (int nItem, const QString &lpszItem) |
| Inserts a new tab in a tab control. | |
| int | SetCurSel (int nItem) |
| Selects a tab in a tab control. | |
| void | setWidget (QTabBar *widget) |
| QTabBar * | widget () const |
The KTabCtrl class is used to replace DDX_Control tab bar data exchange.
This class is the equivalent of CTabCtrl in MFC. It is a proxy for the widget, and can be used to manage tabs in a tab bar. It's using a QTabBar widget.
| bool KTabCtrl::DeleteAllItems | ( | ) |
Removes all items from a tab control.
| int KTabCtrl::GetCurSel | ( | ) | const |
Determines the currently selected tab in a tab control.
| int KTabCtrl::GetItemCount | ( | ) | const |
Retrieves the number of tabs in the tab control.
| int KTabCtrl::InsertItem | ( | int | nItem, |
| const QString & | lpszItem ) |
Inserts a new tab in a tab control.
| int KTabCtrl::SetCurSel | ( | int | nItem | ) |
Selects a tab in a tab control.
| void KTabCtrl::setWidget | ( | QTabBar * | widget | ) |
Sets the widget the class is proxying.
| QTabBar * KTabCtrl::widget | ( | ) | const |
Returns the underlying widget the class is proxying.