KVIrc  4.9.2
DeveloperAPIs
Functions | Variables
KvsObject_popupMenu.cpp File Reference
#include "KvsObject_popupMenu.h"
#include "KviError.h"
#include "kvi_debug.h"
#include "KviLocale.h"
#include "KviIconManager.h"
#include <QCursor>
#include <QMenu>
#include <QAction>

Functions

static int addActionToDict (QAction *pAction)
 
static QAction * getAction (int idx)
 
 KVSO_CLASS_FUNCTION (popupMenu, insertItem)
 
 KVSO_CLASS_FUNCTION (popupMenu, setTitle)
 
 KVSO_CLASS_FUNCTION (popupMenu, exec)
 
 KVSO_CLASS_FUNCTION (popupMenu, addMenu)
 
 KVSO_CLASS_FUNCTION (popupMenu, removeItem)
 
 KVSO_CLASS_FUNCTION (popupMenu, insertSeparator)
 
 KVSO_CLASS_FUNCTION (popupMenu, highlightedEvent)
 
 KVSO_CLASS_FUNCTION (popupMenu, activatedEvent)
 
static void removeAction (int idx)
 
static void removeMenuAllActions (QMenu *pMenu)
 

Variables

static QHash< int, QAction * > actionsDict
 
static int iIdentifier = 0
 

Function Documentation

static int addActionToDict ( QAction *  pAction)
static

References actionsDict, and iIdentifier.

Referenced by KVSO_CLASS_FUNCTION().

static QAction* getAction ( int  idx)
static
KVSO_CLASS_FUNCTION ( popupMenu  ,
insertItem   
)
KVSO_CLASS_FUNCTION ( popupMenu  ,
setTitle   
)
KVSO_CLASS_FUNCTION ( popupMenu  ,
exec   
)
KVSO_CLASS_FUNCTION ( popupMenu  ,
addMenu   
)
KVSO_CLASS_FUNCTION ( popupMenu  ,
removeItem   
)
KVSO_CLASS_FUNCTION ( popupMenu  ,
insertSeparator   
)
KVSO_CLASS_FUNCTION ( popupMenu  ,
highlightedEvent   
)

References c.

KVSO_CLASS_FUNCTION ( popupMenu  ,
activatedEvent   
)

References c.

static void removeAction ( int  idx)
static
static void removeMenuAllActions ( QMenu *  pMenu)
static

References actionsDict, and i.

Referenced by KvsObject_popupMenu::aboutToDie().

Variable Documentation

QHash<int, QAction *> actionsDict
static
int iIdentifier = 0
static

Referenced by addActionToDict().