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

KNewStuff

  • KNS3
  • ItemsViewBaseDelegate
Signals | Public Member Functions | Protected Slots | Protected Attributes

KNS3::ItemsViewBaseDelegate Class Reference

#include <itemsviewbasedelegate.h>

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

List of all members.

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

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

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 
) [protected, slot]

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) [protected, slot]

Definition at line 104 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotDetailsClicked ( ) [protected, slot]

Definition at line 98 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotInstallActionTriggered ( QAction *  action) [protected, slot]

Definition at line 87 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotInstallClicked ( ) [protected, slot]

Definition at line 69 of file itemsviewbasedelegate.cpp.

void KNS3::ItemsViewBaseDelegate::slotLinkClicked ( const QString &  url) [protected, slot]

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

KNewStuff

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal