• 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
CustomItemBackground_p.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 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_CUSTOM_ITEM_BACKGROUND_H
21 #define LANCELOT_CUSTOM_ITEM_BACKGROUND_H
22 
23 #include <QtGui/QIcon>
24 
25 #include <Plasma/Plasma>
26 #include <Plasma/ItemBackground>
27 #include <Plasma/FrameSvg>
28 
29 #include <lancelot/Global.h>
30 
31 namespace Lancelot
32 {
33 
37 class CustomItemBackground: public Plasma::ItemBackground {
38 public:
39  CustomItemBackground(QGraphicsWidget * parent = 0);
40 
41  ~CustomItemBackground();
42 
43  void setTarget(const QRectF & target);
44  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
45 
46  void setSvgElementPrefix(const QString & prefix = QString());
47  void setGroup(Group * group);
48 
49 private:
50  QString m_svgPrefix;
51  bool m_animation : 1;
52  Group * m_group;
53 
54 };
55 
56 } // namespace Lancelot
57 
58 #endif /* LANCELOT_CUSTOM_ITEM_BACKGROUND_H */
59 
QWidget
Lancelot::CustomItemBackground::setTarget
void setTarget(const QRectF &target)
Lancelot::CustomItemBackground::setGroup
void setGroup(Group *group)
Lancelot::CustomItemBackground::~CustomItemBackground
~CustomItemBackground()
Lancelot::CustomItemBackground::CustomItemBackground
CustomItemBackground(QGraphicsWidget *parent=0)
QPainter
Lancelot::Group
Represents a group of object.
Definition: Global.h:63
QGraphicsWidget
Global.h
QString
Lancelot::CustomItemBackground
Definition: CustomItemBackground_p.h:37
Lancelot::CustomItemBackground::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
QRectF
QStyleOptionGraphicsItem
Lancelot::CustomItemBackground::setSvgElementPrefix
void setSvgElementPrefix(const QString &prefix=QString())
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