liblancelot
#include <HoverIcon.h>
Inherits IconWidget.
Public Member Functions | |
HoverIcon (QGraphicsItem *parent=0) | |
HoverIcon (const QString &text, QGraphicsItem *parent=0) | |
HoverIcon (const QIcon &icon, const QString &text, QGraphicsItem *parent=0) | |
~HoverIcon () | |
int | activationMethod () const |
void | setActivationMethod (int method) |
Protected Member Functions | |
L_Override void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | timerEvent (QTimerEvent *event) |
Properties | |
int | activationMethod |
Detailed Description
Wrapper class for Plasma::Icon which adds hover activation.
This class is not a part of the standard Lancelot framework and doesn't support groups yet.
Definition at line 39 of file HoverIcon.h.
Constructor & Destructor Documentation
Lancelot::HoverIcon::HoverIcon | ( | QGraphicsItem * | parent = 0 | ) |
Creates a new Lancelot::HoverIcon.
- Parameters
-
parent parent item
Definition at line 55 of file HoverIcon.cpp.
|
explicit |
Creates a new Lancelot::HoverIcon.
- Parameters
-
text title parent parent item
Definition at line 62 of file HoverIcon.cpp.
Lancelot::HoverIcon::HoverIcon | ( | const QIcon & | icon, |
const QString & | text, | ||
QGraphicsItem * | parent = 0 |
||
) |
Creates a new Lancelot::HoverIcon.
- Parameters
-
icon icon text title parent parent item
Definition at line 69 of file HoverIcon.cpp.
Lancelot::HoverIcon::~HoverIcon | ( | ) |
Destroys this Lancelot::HoverIcon.
Definition at line 76 of file HoverIcon.cpp.
Member Function Documentation
int Lancelot::HoverIcon::activationMethod | ( | ) | const |
- Returns
- activation method
|
protected |
Definition at line 92 of file HoverIcon.cpp.
|
protected |
Definition at line 100 of file HoverIcon.cpp.
void Lancelot::HoverIcon::setActivationMethod | ( | int | method | ) |
Sets the activation method of the ExtenderButton.
Only hover and click activations are supported. In the case of click activation, HoverIcon will follow the global system settings concerning click vs double click.
- Parameters
-
method new activation method
Definition at line 106 of file HoverIcon.cpp.
|
protected |
Definition at line 81 of file HoverIcon.cpp.
Property Documentation
|
readwrite |
Definition at line 42 of file HoverIcon.h.
The documentation for this class was generated from the following files:
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.