liblancelot
Lancelot::PopupMenu Class Reference
#include <PopupMenu.h>
Inheritance diagram for Lancelot::PopupMenu:
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.
Definition at line 37 of file PopupMenu.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new Lancelot::PopupMenu.
- Parameters
-
parent parent item
Definition at line 98 of file PopupMenu.cpp.
|
virtual |
Destroys Lancelot::PopupMenu.
Definition at line 108 of file PopupMenu.cpp.
Member Function Documentation
|
protectedslot |
Definition at line 145 of file PopupMenu.cpp.
|
protectedslot |
Definition at line 139 of file PopupMenu.cpp.
Definition at line 118 of file PopupMenu.cpp.
void Lancelot::PopupMenu::addAction | ( | QAction * | action | ) |
Definition at line 113 of file PopupMenu.cpp.
Definition at line 127 of file PopupMenu.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.