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

liblancelot

  • Lancelot
  • HoverIcon
Public Member Functions | Protected Member Functions | Properties | List of all members
Lancelot::HoverIcon Class Reference

#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.

Author
Ivan Cukic

Definition at line 39 of file HoverIcon.h.

Constructor & Destructor Documentation

Lancelot::HoverIcon::HoverIcon ( QGraphicsItem *  parent = 0)

Creates a new Lancelot::HoverIcon.

Parameters
parentparent item

Definition at line 55 of file HoverIcon.cpp.

Lancelot::HoverIcon::HoverIcon ( const QString &  text,
QGraphicsItem *  parent = 0 
)
explicit

Creates a new Lancelot::HoverIcon.

Parameters
texttitle
parentparent 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
iconicon
texttitle
parentparent 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
void Lancelot::HoverIcon::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protected

Definition at line 92 of file HoverIcon.cpp.

void Lancelot::HoverIcon::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
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
methodnew activation method

Definition at line 106 of file HoverIcon.cpp.

void Lancelot::HoverIcon::timerEvent ( QTimerEvent *  event)
protected

Definition at line 81 of file HoverIcon.cpp.

Property Documentation

int Lancelot::HoverIcon::activationMethod
readwrite

Definition at line 42 of file HoverIcon.h.


The documentation for this class was generated from the following files:
  • HoverIcon.h
  • HoverIcon.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:12 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