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

kjots

  • sources
  • kde-4.14
  • kdepim
  • kjots
  • plasmoid
plasmatreeview.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Marco Martin <notmart@gmail.com>
3  * Copyright 2009 Stephen Kelly <steveire@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Library General Public License as
7  * published by the Free Software Foundation; either version 2, or
8  * (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 Library General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef AKONADI_PLASMA_TREEVIEW_H
22 #define AKONADI_PLASMA_TREEVIEW_H
23 
24 #include <QGraphicsProxyWidget>
25 
26 class QAbstractItemModel;
27 
28 namespace Akonadi
29 {
30 class EntityTreeView;
31 
32 class TreeViewPrivate;
33 
38 class PlasmaTreeView : public QGraphicsProxyWidget
39 {
40  Q_OBJECT
41 
42  Q_PROPERTY(QAbstractItemModel *model READ model WRITE setModel)
43  Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
44  Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
45  Q_PROPERTY(QTreeView *nativeWidget READ nativeWidget)
46 
47 public:
48  explicit PlasmaTreeView(QGraphicsWidget *parent = 0);
49  ~PlasmaTreeView();
50 
56  void setModel(QAbstractItemModel *model);
57 
61  QAbstractItemModel *model();
62 
68  void setStyleSheet(const QString &stylesheet);
69 
73  QString styleSheet();
74 
78  EntityTreeView *nativeWidget() const;
79 
80 private:
81  TreeViewPrivate *const d;
82 };
83 
84 }
85 #endif // multiple inclusion guard
QGraphicsItem::parentWidget
QGraphicsWidget * parentWidget() const
Akonadi::PlasmaTreeView::styleSheet
QString styleSheet()
Akonadi::PlasmaTreeView::nativeWidget
EntityTreeView * nativeWidget() const
Akonadi::PlasmaTreeView::setStyleSheet
void setStyleSheet(const QString &stylesheet)
Sets the stylesheet used to control the visual display of this TreeView.
Definition: plasmatreeview.cpp:68
QGraphicsProxyWidget
Akonadi::PlasmaTreeView::setModel
void setModel(QAbstractItemModel *model)
Sets a model for this weather view.
Definition: plasmatreeview.cpp:58
QGraphicsWidget
Akonadi::PlasmaTreeView::model
QAbstractItemModel * model()
QString
QTreeView
QAbstractItemModel
QObject::parent
QObject * parent() const
Akonadi::PlasmaTreeView
Provides a plasma-themed Akonadi::EntityTreeView.
Definition: plasmatreeview.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjots

Skip menu "kjots"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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