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

rocs/RocsCore

  • sources
  • kde-4.14
  • kdeedu
  • rocs
  • RocsCore
  • DataStructures
  • RootedTree
RootedTreeNodeItem.h
Go to the documentation of this file.
1 /*
2  This file is part of RootedTree (Rocs Plugin).
3  Copyright 2012 Wagner Reck <wagner.reck@gmail.com>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of
8  the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef ROOTEDTREENODEITEM_H
20 #define ROOTEDTREENODEITEM_H
21 
22 #include "Scene/DataItem.h"
23 #include <QGraphicsScene>
24 
25 class Data;
26 
27 class RootedTreeNodeItem : public DataItem
28 {
29  Q_OBJECT
30 
31 public:
32  explicit RootedTreeNodeItem(DataPtr n);
33  ~RootedTreeNodeItem();
34 
35  QRectF boundingRect() const;
36 
37  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
38 
39 };
40 
41 #endif //ROOTEDTREENODEITEM_H
QWidget
RootedTreeNodeItem::boundingRect
QRectF boundingRect() const
Definition: RootedTreeNodeItem.cpp:34
RootedTreeNodeItem::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: RootedTreeNodeItem.cpp:55
QPainter
RootedTreeNodeItem::RootedTreeNodeItem
RootedTreeNodeItem(DataPtr n)
Definition: RootedTreeNodeItem.cpp:27
RootedTreeNodeItem
Definition: RootedTreeNodeItem.h:27
RootedTreeNodeItem::~RootedTreeNodeItem
~RootedTreeNodeItem()
Definition: RootedTreeNodeItem.cpp:32
QRectF
DataPtr
boost::shared_ptr< Data > DataPtr
Definition: CoreTypes.h:34
DataItem
QStyleOptionGraphicsItem
Data
Definition: Data.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/RocsCore

Skip menu "rocs/RocsCore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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