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_popupmenu.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/modules/objects/class_popupmenu.cpp') diff --git a/src/modules/objects/class_popupmenu.cpp b/src/modules/objects/class_popupmenu.cpp index 8ff9a2e19..ee0762ae1 100644 --- a/src/modules/objects/class_popupmenu.cpp +++ b/src/modules/objects/class_popupmenu.cpp @@ -55,20 +55,20 @@ The widget is treats as a separator; this means that the item is not selectable and you can, for example, simply insert a label if you need a popup menu with a title. !fn: $insertHandle(,,[icon]) Inserts a submenu with optional icon into the popup menu. - !fn: $exec([,,]) + !fn: $exec([,,]) If called without paramaters show the popup menu at the current pointer position.[br] With the optional parameters show the popup menu at the coordinate x,y widget parameter relative. - !fn: $removeItem() + !fn: $removeItem() Removes the menu item that has the identifier id. - !fn: $removeItemAt() + !fn: $removeItemAt() Removes the menu item at position index. - !fn: $insertSeparator() + !fn: $insertSeparator() Inserts a separator at position index.[br] If the index is negative the separator becomes the last menu item. - !fn: $activatedEvent() + !fn: $activatedEvent() This function is called when a menu item and return the the item id.[br] The default implementation emits the [classfnc]$activated[/classfnc]() signal. - !fn: $highligthtedEvent() + !fn: $highligthtedEvent() This function is called when a menu item is highlighted and return the item id.[br] The default implementation emits the [classfnc]$highlighted[/classfnc]() signal. @signals: @@ -278,7 +278,7 @@ bool KviKvsObject_popupmenu::functionexec(KviKvsObjectFunctionCall *c) } KviKvsObject *pObject; - kvs_int_t iX,iY; + kvs_uint_t iX,iY; QString szLabel,szIcon; kvs_hobject_t hObject; KVSO_PARAMETERS_BEGIN(c) @@ -309,7 +309,7 @@ bool KviKvsObject_popupmenu::functionexec(KviKvsObjectFunctionCall *c) } bool KviKvsObject_popupmenu::functionremoveItem(KviKvsObjectFunctionCall *c) { - kvs_int_t uItem; + kvs_uint_t uItem; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("item_id",KVS_PT_UNSIGNEDINTEGER,0,uItem) KVSO_PARAMETERS_END(c) @@ -318,7 +318,7 @@ bool KviKvsObject_popupmenu::functionremoveItem(KviKvsObjectFunctionCall *c) } bool KviKvsObject_popupmenu::functionremoveItemAt(KviKvsObjectFunctionCall *c) { - kvs_int_t uIndex; + kvs_uint_t uIndex; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("index",KVS_PT_UNSIGNEDINTEGER,0,uIndex) KVSO_PARAMETERS_END(c) @@ -328,7 +328,7 @@ bool KviKvsObject_popupmenu::functionremoveItemAt(KviKvsObjectFunctionCall *c) bool KviKvsObject_popupmenu::functioninsertSeparator(KviKvsObjectFunctionCall *c) { - kvs_int_t uIndex; + kvs_uint_t uIndex; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("index",KVS_PT_UNSIGNEDINTEGER,0,uIndex) KVSO_PARAMETERS_END(c) -- cgit v1.3.1-10-gc9f91