aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_vbox.cpp
diff options
context:
space:
mode:
authorGravatar Noldor2007-01-23 16:31:02 +0000
committerGravatar Noldor2007-01-23 16:31:02 +0000
commit52c050dd0ff72f7399cb1bd743d20c7d447e094b (patch)
tree157dff75036a7d72df47787ad3eeebc5a095944e /src/modules/objects/class_vbox.cpp
parentadded seenserv command (diff)
downloadKVIrc-52c050dd0ff72f7399cb1bd743d20c7d447e094b.tar.gz
KVIrc-52c050dd0ff72f7399cb1bd743d20c7d447e094b.tar.bz2
KVIrc-52c050dd0ff72f7399cb1bd743d20c7d447e094b.zip
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
Diffstat (limited to 'src/modules/objects/class_vbox.cpp')
-rw-r--r--src/modules/objects/class_vbox.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/objects/class_vbox.cpp b/src/modules/objects/class_vbox.cpp
index 7a16f256b..d87a24c5c 100644
--- a/src/modules/objects/class_vbox.cpp
+++ b/src/modules/objects/class_vbox.cpp
@@ -41,9 +41,9 @@
@description:
The vbox class widget provides vertical geometry management for its child widgets.
@functions:
- !fn: $setSpacing(<spacing:uint>)
+ !fn: $setSpacing(<spacing:int>)
Sets the default spacing of the widgets in pixels
- !fn: $setMargin(<margin:uint>)
+ !fn: $setMargin(<margin:int>)
Sets the dimension of the layout margin : the distance from the border to the outermost child widget edges.
!fn: $setStretchFactor(<widget:hobject>,<stretch:uint>)
Sets the stretch factor of widget to stretch.
@@ -73,21 +73,21 @@ bool KviKvsObject_vbox::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *
bool KviKvsObject_vbox::functionsetMargin(KviKvsObjectFunctionCall *c)
{
- kvs_uint_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()) ((QVBox *)widget())->setMargin(uMargin);
+ if (widget()) ((QVBox *)widget())->setMargin(iMargin);
return true;
}
bool KviKvsObject_vbox::functionsetSpacing(KviKvsObjectFunctionCall *c)
{
- kvs_uint_t uSpacing;
+ kvs_int_t iSpacing;
KVSO_PARAMETERS_BEGIN(c)
- KVSO_PARAMETER("spacing",KVS_PT_UNSIGNEDINTEGER,0,uSpacing)
+ KVSO_PARAMETER("spacing",KVS_PT_INT,0,iSpacing)
KVSO_PARAMETERS_END(c)
- if (widget()) ((QVBox *)widget())->setSpacing(uSpacing);
+ if (widget()) ((QVBox *)widget())->setSpacing(iSpacing);
return true;
}