|
|
| KitTabWidget ( QWidget * parent, const char * name = 0 )
| KitTabWidget |
Default constructor
| KitTabWidget ( KitTabBar::Position pos, QWidget * parent, const char * name = 0 )
| KitTabWidget |
Constructor with bar position
| ~KitTabWidget ()
| ~KitTabWidget |
Destructor
| void addPage ( QWidget * page, const QString & label )
| addPage |
Adds a new tab with a label
| void addPage ( QWidget * page, const QIconSet & icon, const QString & label )
| addPage |
Adds a new tab with an icon and label
| void insertPage ( QWidget * page, const QString & label, int index = -1 )
| insertPage |
Inserts a new tab with a label at index
| void insertPage ( QWidget * page, const QIconSet & icon, const QString & label, int index = -1 )
| insertPage |
Inserts a new tab with an icon and label at index
| const KitTabBar::Position tabBarPos ()
| tabBarPos |
Returns: the current tab bar position
| void setTabBarPos ( KitTabBar::Position pos )
| setTabBarPos |
Sets the position of the tab bar
| KitTabBar * tabBar ()
| tabBar |
Get a pointer to the tab bar.
| QWidget * currentPage ()
| currentPage |
Get a pointer to the current page widget.
Returns: the pointer to the current page widget
| QWidget * page ( int id )
| page |
Get a pointer to the page widget.
Parameters:
| id | the tab id |
Returns: the pointer to the page widget
| int tabId ( QWidget * page )
| tabId |
Get the tab id.
| void setTabToolTip ( QWidget * page, const QString & tip )
| setTabToolTip |
Sets the tooltip text for the tab.
Parameters:
| page | the pointer of the tab's page widget |
| tip | the tooltip text for the tab |
| void removeTabToolTip ( QWidget * page )
| removeTabToolTip |
Removes the tooltip from the tab.
Parameters:
| page | the pointer of the tab's page widget |
| void setWhatsThis ( QWidget * page, const QString & text, bool both = true )
| setWhatsThis |
Sets the 'whats this' text for the tab.
Parameters:
| page | the pointer of the tab's page widget |
| text | the 'whats this' text for the tab |
| both | sets just tab if false or both tab and page if true |
| void removeWhatsThis ( QWidget * page )
| removeWhatsThis |
Removes the 'whats this' from the tab.
Parameters:
| page | the pointer of the tab's page widget |
| void setSizeHint ( QSize size )
| setSizeHint |
| QSize sizeHint ()
| sizeHint |
[const]
| void showPage ( QWidget * page )
| showPage |
[slot]
Show a page
Parameters:
| pointer | to the page widget |
| void removePage ( QWidget * page )
| removePage |
[slot]
Removes a tab. It does not delete the page widget.
Parameters:
| page | the pointer to the page |
| void aboutToShow ( QWidget * page )
| aboutToShow |
[signal]
Returns: pointer to the page widget
| void currentChanged ( QWidget * page )
| currentChanged |
[signal]
Emitted when the current page changes
Returns: pointer to the page widget
| QSize minimumSizeHint ()
| minimumSizeHint |
[protected const]
| void resizeEvent ( QResizeEvent * )
| resizeEvent |
[protected]