From 3d8714d797ce5b09cea2e3b36edee2fc231f28a1 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 8 May 2011 22:25:35 +0000 Subject: Objects module: fixed indentation (2nd part) git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5837 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/KvsObject_listWidget.cpp | 46 ++++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/modules/objects/KvsObject_listWidget.cpp') diff --git a/src/modules/objects/KvsObject_listWidget.cpp b/src/modules/objects/KvsObject_listWidget.cpp index 773cfe0b4..081627caa 100644 --- a/src/modules/objects/KvsObject_listWidget.cpp +++ b/src/modules/objects/KvsObject_listWidget.cpp @@ -56,19 +56,19 @@ const char * const itemflags_tbl[] = { #define itemflags_num (sizeof(itemflags_tbl) / sizeof(itemflags_tbl[0])) /* - @doc:listbox - @title: - listbox class - @type: - class - @short: - A widget displaying a list of items. - @inherits: - [class]object[/class] - [class]widget[/class] + @doc:listbox + @title: + listbox class + @type: + class + @short: + A widget displaying a list of items. + @inherits: + [class]object[/class] + [class]widget[/class] @description: - The listbox class is a widget displaying a list of string items.[br] - The listbox can operate in four selection modes: single, multi, extended + The listbox class is a widget displaying a list of string items.[br] + The listbox can operate in four selection modes: single, multi, extended and none. In the "single" mode only one item can be selected at a time and that item is also the current one. In the "multi" mode multiple items can be selected and unselected and the current item may or may not @@ -92,14 +92,14 @@ const char * const itemflags_tbl[] = { !fn: $setFlag(,, , ...) Sets the flags for the item at index idz to the given flags. These determine whether the item can be selected or modified. This is often used to disable an item. Supported flags are: - - noitemflag : no flag sets; - - selectable : item is selecatble; - - editable : item is editable; - - dragEnabled : item can dragged; - - dropEnabled : item can used as drop target; - - userCheckable : item is checkable; - - enabled :item is enabled; - - tristate : item is checkable with three separate states. + [br]- noitemflag : no flag sets; + [br]- selectable : item is selecatble; + [br]- editable : item is editable; + [br]- dragEnabled : item can dragged; + [br]- dropEnabled : item can used as drop target; + [br]- userCheckable : item is checkable; + [br]- enabled :item is enabled; + [br]- tristate : item is checkable with three separate states. !fn: $setChecked() Sets the eventual item check box 'checked state' to . !fn: $isChecked() @@ -122,7 +122,7 @@ const char * const itemflags_tbl[] = { !fn: $textAt() Returns item at given index. !fn: $setCurrentItem() - Sets the current listbox item. + Sets the current listbox item. !fn: $clear() Removes all the items !fn: $setFont(,,[,, , ...]) @@ -234,8 +234,8 @@ KVSO_CLASS_FUNCTION(listWidget,setFlags) QStringList itemflags; kvs_uint_t iIdx; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("index",KVS_PT_UNSIGNEDINTEGER,0,iIdx) - KVSO_PARAMETER("flags",KVS_PT_STRINGLIST,KVS_PF_OPTIONAL,itemflags) + KVSO_PARAMETER("index",KVS_PT_UNSIGNEDINTEGER,0,iIdx) + KVSO_PARAMETER("flags",KVS_PT_STRINGLIST,KVS_PF_OPTIONAL,itemflags) KVSO_PARAMETERS_END(c) int flag,sum=0; QListWidgetItem *pItem=((QListWidget *)widget())->item(iIdx); -- cgit v1.3.1-10-gc9f91