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

KNewStuff

  • KNS3
  • ItemsViewBaseDelegate
Signals | Public Member Functions | Protected Slots | Protected Attributes | List of all members
KNS3::ItemsViewBaseDelegate Class Referenceabstract

#include <itemsviewbasedelegate.h>

Inheritance diagram for KNS3::ItemsViewBaseDelegate:
Inheritance graph
[legend]

Signals

void signalShowDetails (const KNS3::EntryInternal &entry)
 

Public Member Functions

 ItemsViewBaseDelegate (QAbstractItemView *itemView, Engine *engine, QObject *parent=0)
 
virtual ~ItemsViewBaseDelegate ()
 
virtual QList< QWidget * > createItemWidgets () const =0
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const =0
 
virtual void updateItemWidgets (const QList< QWidget * > widgets, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const =0
 
- Public Member Functions inherited from KWidgetItemDelegate
 KWidgetItemDelegate (QAbstractItemView *itemView, QObject *parent=0)
 
virtual ~KWidgetItemDelegate ()
 
QPersistentModelIndex focusedIndex () const
 
QAbstractItemView * itemView () const
 

Protected Slots

bool eventFilter (QObject *watched, QEvent *event)
 
void slotDetailsClicked (const QModelIndex &index)
 
void slotDetailsClicked ()
 
void slotInstallActionTriggered (QAction *action)
 
void slotInstallClicked ()
 
void slotLinkClicked (const QString &url)
 

Protected Attributes

QSize m_buttonSize
 
Engine * m_engine
 
QPixmap m_frameImage
 
KIcon m_iconDelete
 
KIcon m_iconDownloadable
 
KIcon m_iconInstall
 
KIcon m_iconInvalid
 
KIcon m_iconUpdate
 
QAbstractItemView * m_itemView
 
QPixmap m_noImage
 

Additional Inherited Members

- Protected Member Functions inherited from KWidgetItemDelegate
QList< QEvent::Type > blockedEventTypes (QWidget *widget) const
 
void paintWidgets (QPainter *painter, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const
 
void setBlockedEventTypes (QWidget *widget, QList< QEvent::Type > types) const
 

Detailed Description

Definition at line 40 of file itemsviewbasedelegate.h.

Constructor & Destructor Documentation

KNS3::ItemsViewBaseDelegate::ItemsViewBaseDelegate ( QAbstractItemView *  itemView,
Engine *  engine,
QObject *  parent = 0 
)
explicit

Definition at line 31 of file itemsviewbasedelegate.cpp.

KNS3::ItemsViewBaseDelegate::~ItemsViewBaseDelegate ( )
virtual

Definition at line 45 of file itemsviewbasedelegate.cpp.

Member Function Documentation

virtual QList<QWidget*> KNS3::ItemsViewBaseDelegate::createItemWidgets ( ) const
pure virtual

Implements KWidgetItemDelegate.

Implemented in KNS3::ItemsGridViewDelegate, and KNS3::ItemsViewDelegate.

bool KNS3::ItemsViewBaseDelegate::eventFilter ( QObject *  watched,
QEvent *  event 
)
protectedslot

Definition at line 49 of file itemsviewbasedelegate.cpp.

virtual void KNS3::ItemsViewBaseDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
pure virtual

Implemented in KNS3::ItemsGridViewDelegate, and KNS3::ItemsViewDelegate.

void KNS3::ItemsViewBaseDelegate::signalShowDetails ( const KNS3::EntryInternal &  entry)
signal
virtual QSize KNS3::ItemsViewBaseDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
pure virtual

Implemented in KNS3::ItemsGridViewDelegate, and KNS3::ItemsViewDelegate.

void KNS3::ItemsViewBaseDelegate::slotDetailsClicked ( const QModelIndex &  index)
protectedslot

Definition at line 104 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotDetailsClicked ( )
protectedslot

Definition at line 98 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotInstallActionTriggered ( QAction *  action)
protectedslot

Definition at line 87 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotInstallClicked ( )
protectedslot

Definition at line 69 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotLinkClicked ( const QString &  url)
protectedslot

Definition at line 59 of file itemsviewbasedelegate.cpp.

virtual void KNS3::ItemsViewBaseDelegate::updateItemWidgets ( const QList< QWidget * >  widgets,
const QStyleOptionViewItem &  option,
const QPersistentModelIndex &  index 
) const
pure virtual

Implements KWidgetItemDelegate.

Implemented in KNS3::ItemsGridViewDelegate, and KNS3::ItemsViewDelegate.

Member Data Documentation

QSize KNS3::ItemsViewBaseDelegate::m_buttonSize
protected

Definition at line 80 of file itemsviewbasedelegate.h.

Engine* KNS3::ItemsViewBaseDelegate::m_engine
protected

Definition at line 71 of file itemsviewbasedelegate.h.

QPixmap KNS3::ItemsViewBaseDelegate::m_frameImage
protected

Definition at line 78 of file itemsviewbasedelegate.h.

KIcon KNS3::ItemsViewBaseDelegate::m_iconDelete
protected

Definition at line 77 of file itemsviewbasedelegate.h.

KIcon KNS3::ItemsViewBaseDelegate::m_iconDownloadable
protected

Definition at line 74 of file itemsviewbasedelegate.h.

KIcon KNS3::ItemsViewBaseDelegate::m_iconInstall
protected

Definition at line 75 of file itemsviewbasedelegate.h.

KIcon KNS3::ItemsViewBaseDelegate::m_iconInvalid
protected

Definition at line 73 of file itemsviewbasedelegate.h.

KIcon KNS3::ItemsViewBaseDelegate::m_iconUpdate
protected

Definition at line 76 of file itemsviewbasedelegate.h.

QAbstractItemView* KNS3::ItemsViewBaseDelegate::m_itemView
protected

Definition at line 72 of file itemsviewbasedelegate.h.

QPixmap KNS3::ItemsViewBaseDelegate::m_noImage
protected

Definition at line 79 of file itemsviewbasedelegate.h.


The documentation for this class was generated from the following files:
  • itemsviewbasedelegate.h
  • itemsviewbasedelegate.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:49 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