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

KNewStuff

  • sources
  • kde-4.12
  • kdelibs
  • knewstuff
  • knewstuff3
  • ui
knewstuff3/ui/itemsviewdelegate.h
Go to the documentation of this file.
1 /*
2  This file is part of KNewStuff2.
3  Copyright (C) 2008 Jeremy Whiting <jpwhiting@kde.org>
4  Copyright (C) 2010 Reza Fatahilah Shah <rshah0385@kireihana.com>
5  Copyright (C) 2010 Frederik Gladhorn <gladhorn@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef KNEWSTUFF3_UI_ITEMSVIEWDELEGATE_H
22 #define KNEWSTUFF3_UI_ITEMSVIEWDELEGATE_H
23 
24 #include "itemsviewbasedelegate.h"
25 
26 namespace KNS3
27 {
28 
29 class ItemsViewDelegate: public ItemsViewBaseDelegate
30 {
31  Q_OBJECT
32 public:
33  explicit ItemsViewDelegate(QAbstractItemView* itemView, Engine* engine, QObject* parent = 0);
34  ~ItemsViewDelegate();
35 
36 
37  // paint the item at index with all its attributes shown
38  virtual void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const;
39 
40  // get the list of widgets
41  virtual QList<QWidget*> createItemWidgets() const;
42 
43  // update the widgets
44  virtual void updateItemWidgets(const QList<QWidget*> widgets,
45  const QStyleOptionViewItem &option,
46  const QPersistentModelIndex &index) const;
47 
48  virtual QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const;
49 };
50 }
51 
52 #endif
KNS3::ItemsViewDelegate::updateItemWidgets
virtual void updateItemWidgets(const QList< QWidget * > widgets, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const
Definition: knewstuff3/ui/itemsviewdelegate.cpp:87
itemsviewbasedelegate.h
KNS3::ItemsViewDelegate::sizeHint
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: knewstuff3/ui/itemsviewdelegate.cpp:318
KNS3::Engine
KNewStuff engine.
Definition: knewstuff3/core/engine.h:52
KNS3::ItemsViewDelegate::createItemWidgets
virtual QList< QWidget * > createItemWidgets() const
Definition: knewstuff3/ui/itemsviewdelegate.cpp:51
KWidgetItemDelegate::itemView
QAbstractItemView * itemView() const
KNS3::ItemsViewDelegate
Definition: knewstuff3/ui/itemsviewdelegate.h:29
QObject
KNS3::ItemsViewDelegate::~ItemsViewDelegate
~ItemsViewDelegate()
Definition: knewstuff3/ui/itemsviewdelegate.cpp:47
KNS3::ItemsViewBaseDelegate
Definition: itemsviewbasedelegate.h:40
QSize
KNS3::ItemsViewDelegate::paint
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: knewstuff3/ui/itemsviewdelegate.cpp:272
KNS3::ItemsViewDelegate::ItemsViewDelegate
ItemsViewDelegate(QAbstractItemView *itemView, Engine *engine, QObject *parent=0)
Definition: knewstuff3/ui/itemsviewdelegate.cpp:42
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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