• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • workspace API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • sources
  • kde-4.14
  • workspace
  • kdeplasma-addons
  • libs
  • lancelot
  • widgets
HoverIcon.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser/Library General Public License version 2,
6  * or (at your option) any later version, as published by the Free
7  * Software Foundation
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser/Library General Public License for more details
13  *
14  * You should have received a copy of the GNU Lesser/Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef LANCELOT_HOVER_ICON_H
21 #define LANCELOT_HOVER_ICON_H
22 
23 #include <Plasma/IconWidget>
24 
25 #include <lancelot/lancelot.h>
26 #include <lancelot/lancelot_export.h>
27 #include <lancelot/widgets/Widget.h>
28 
29 namespace Lancelot
30 {
31 
39 class LANCELOT_EXPORT HoverIcon: public Plasma::IconWidget {
40  Q_OBJECT
41 
42  Q_PROPERTY ( int activationMethod READ activationMethod WRITE setActivationMethod )
43 
44  // @puck L_WIDGET
45  // @puck L_INCLUDE(lancelot/widgets/HoverIcon.h plasma/widgets/icon.h)
46 
47 public:
52  HoverIcon(QGraphicsItem * parent = 0);
53 
59  explicit HoverIcon(const QString & text, QGraphicsItem * parent = 0);
60 
67  HoverIcon(const QIcon & icon, const QString & text, QGraphicsItem * parent = 0);
68 
72  ~HoverIcon();
73 
81  void setActivationMethod(int method);
82 
86  int activationMethod() const;
87 
88 protected:
89  L_Override void hoverEnterEvent(QGraphicsSceneHoverEvent * event);
90  L_Override void hoverLeaveEvent(QGraphicsSceneHoverEvent * event);
91  L_Override void timerEvent(QTimerEvent * event);
92 
93 private:
94  class Private;
95  Private * const d;
96 };
97 
98 } // namespace Lancelot
99 
100 #endif /* LANCELOT_HOVER_ICON_H */
101 
102 
QGraphicsItem
L_Override
#define L_Override
Definition: lancelot_export.h:41
lancelot_export.h
QTimerEvent
LANCELOT_EXPORT
#define LANCELOT_EXPORT
Definition: lancelot_export.h:32
Lancelot::HoverIcon
Wrapper class for Plasma::Icon which adds hover activation.
Definition: HoverIcon.h:39
QString
QGraphicsSceneHoverEvent
Widget.h
lancelot.h
QIcon
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

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

workspace API Reference

Skip menu "workspace API Reference"
  • kdeplasma-addons
  •       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