• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeplasma-addons API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • PopupMenu
Public Member Functions | Protected Slots | List of all members
Lancelot::PopupMenu Class Reference

#include <PopupMenu.h>

Inheritance diagram for Lancelot::PopupMenu:
Inheritance graph
[legend]

Public Member Functions

 PopupMenu (QWidget *parent=0, Qt::WindowFlags f=Qt::Window)
 
virtual ~PopupMenu ()
 
QAction * addAction (const QIcon &icon, const QString &title)
 
void addAction (QAction *action)
 
QAction * exec (const QPoint &p, QAction *action=0)
 
- Public Member Functions inherited from Lancelot::PopupList
 PopupList (QWidget *parent=0, Qt::WindowFlags f=Qt::Window)
 
virtual ~PopupList ()
 
int closeTimeout () const
 
void exec (const QPoint &p)
 
void setCloseTimeout (int timeout)
 
void setModel (ActionListModel *model)
 
void setSublevelOpenAction (SublevelOpenAction action)
 
SublevelOpenAction sublevelOpenAction () const
 

Protected Slots

QAction * action (int index)
 
void actionChosen (int index)
 

Additional Inherited Members

- Public Types inherited from Lancelot::PopupList
enum  SublevelOpenAction { NoAction = 0, PopupNew, OpenInside }
 
- Public Slots inherited from Lancelot::PopupList
void updateSize ()
 
- Signals inherited from Lancelot::PopupList
void activated (int index)
 
- Protected Member Functions inherited from Lancelot::PopupList
L_Override void enterEvent (QEvent *event)
 
L_Override bool eventFilter (QObject *object, QEvent *event)
 
void exec (const QPoint &p, PopupList *parent)
 
L_Override void hideEvent (QHideEvent *event)
 
L_Override void leaveEvent (QEvent *event)
 
void moveTo (const QPoint &p)
 
PopupList * parentList () const
 
L_Override void showEvent (QShowEvent *event)
 
L_Override void timerEvent (QTimerEvent *event)
 
- Properties inherited from Lancelot::PopupList
int closeTimeout
 
SublevelOpenAction sublevelOpenAction
 

Detailed Description

The popup menu class.

Author
Ivan Cukic

Definition at line 37 of file PopupMenu.h.

Constructor & Destructor Documentation

Lancelot::PopupMenu::PopupMenu ( QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Window 
)
explicit

Creates a new Lancelot::PopupMenu.

Parameters
parentparent item

Definition at line 98 of file PopupMenu.cpp.

Lancelot::PopupMenu::~PopupMenu ( )
virtual

Destroys Lancelot::PopupMenu.

Definition at line 108 of file PopupMenu.cpp.

Member Function Documentation

QAction * Lancelot::PopupMenu::action ( int  index)
protectedslot

Definition at line 145 of file PopupMenu.cpp.

void Lancelot::PopupMenu::actionChosen ( int  index)
protectedslot

Definition at line 139 of file PopupMenu.cpp.

QAction * Lancelot::PopupMenu::addAction ( const QIcon &  icon,
const QString &  title 
)

Definition at line 118 of file PopupMenu.cpp.

void Lancelot::PopupMenu::addAction ( QAction *  action)

Definition at line 113 of file PopupMenu.cpp.

QAction * Lancelot::PopupMenu::exec ( const QPoint &  p,
QAction *  action = 0 
)

Definition at line 127 of file PopupMenu.cpp.


The documentation for this class was generated from the following files:
  • PopupMenu.h
  • PopupMenu.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

Skip menu "liblancelot"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeplasma-addons API Reference

Skip menu "kdeplasma-addons API Reference"
  •     GroupingDesktop
  •   liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal