From 52c050dd0ff72f7399cb1bd743d20c7d447e094b Mon Sep 17 00:00:00 2001 From: Noldor Date: Tue, 23 Jan 2007 16:31:02 +0000 Subject: added new buttongroup classes,dcc.setBandwidthLimit; fixed/removed some old code, added doc to dynamictooltips git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@234 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_tabwidget.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/modules/objects/class_tabwidget.cpp') diff --git a/src/modules/objects/class_tabwidget.cpp b/src/modules/objects/class_tabwidget.cpp index 7ddaf4fbf..351fa7045 100644 --- a/src/modules/objects/class_tabwidget.cpp +++ b/src/modules/objects/class_tabwidget.cpp @@ -48,7 +48,7 @@ @functions: !fn: $addTab(,,[]) Adds another page to the tab view with the text label and optional icon. - !fn: $insertTab(,,) + !fn: $insertTab(,,) Inserts another tab and page to the tab view with name and label-text specified.[br] If index is not specified, the tab is simply appended.[br] Otherwise the new tab is inserted at the specified position. @@ -60,16 +60,16 @@ Sets the tab label for to label. !fn: $changeTab(,,[]) Defines a new label, and optional icon, for the tab . - !fn: $setCurrentPage() + !fn: $setCurrentPage() Sets the index position of the current tab page to . !fn: $currentPageIndex() Returns the current page index. - !fn: $label() + !fn: $label() Retunrs the label to the . !fn: $currentTabLabel() Returns the label of the current tab. !fn: $setMargin() - Sets the margin in this tab widget to . + Sets the margin in this tab widget to . !fn: $margin() Returns the margin in this tab widget. !fn: $removePage() @@ -224,7 +224,7 @@ bool KviKvsObject_tabwidget::functioninsertTab(KviKvsObjectFunctionCall *c) { KviKvsObject *ob; QString szLabel,szIcon; - kvs_int_t uIndex; + kvs_uint_t uIndex; kvs_hobject_t hObject; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("tab_widget",KVS_PT_HOBJECT,0,hObject) @@ -257,11 +257,11 @@ bool KviKvsObject_tabwidget::functioninsertTab(KviKvsObjectFunctionCall *c) bool KviKvsObject_tabwidget::functionsetCurrentPage(KviKvsObjectFunctionCall *c) { - kvs_int_t iIndex; + kvs_uint_t uIndex; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("index",KVS_PT_INT,0,iIndex) + KVSO_PARAMETER("index",KVS_PT_UNSIGNEDINTEGER,0,uIndex) KVSO_PARAMETERS_END(c) - if (widget()) ((QTabWidget *)widget())->setCurrentPage(iIndex); + if (widget()) ((QTabWidget *)widget())->setCurrentPage(uIndex); return true; } bool KviKvsObject_tabwidget::functionsetTabToolTip(KviKvsObjectFunctionCall *c) @@ -375,22 +375,22 @@ bool KviKvsObject_tabwidget::functioncurrentPageIndex(KviKvsObjectFunctionCall * } bool KviKvsObject_tabwidget::functiontabLabel(KviKvsObjectFunctionCall *c) { - kvs_int_t iIndex; + kvs_uint_t uIndex; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("index",KVS_PT_INT,0,iIndex) + KVSO_PARAMETER("index",KVS_PT_INT,0,uIndex) KVSO_PARAMETERS_END(c) if (!widget()) return true; - QString label=((QTabWidget *)widget())->label(iIndex); + QString label=((QTabWidget *)widget())->label(uIndex); c->returnValue()->setString(label); return true; } bool KviKvsObject_tabwidget::functionsetMargin(KviKvsObjectFunctionCall *c) { - kvs_int_t uMargin; + kvs_int_t iMargin; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("margin",KVS_PT_UNSIGNEDINTEGER,0,uMargin) + KVSO_PARAMETER("margin",KVS_PT_INT,0,iMargin) KVSO_PARAMETERS_END(c) - if (widget()) ((QTabWidget *)widget())->setMargin(uMargin); + if (widget()) ((QTabWidget *)widget())->setMargin(iMargin); return true; } bool KviKvsObject_tabwidget::functionmargin(KviKvsObjectFunctionCall *c) -- cgit v1.3.1-10-gc9f91