KNewStuff
itemsviewbasedelegate.h
Go to the documentation of this file.
44 explicit ItemsViewBaseDelegate(QAbstractItemView* itemView, Engine* engine, QObject* parent = 0);
47 virtual void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const = 0;
57 virtual QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const = 0;
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
void slotLinkClicked(const QString &url)
Definition: itemsviewbasedelegate.cpp:59
QAbstractItemView * itemView() const
virtual ~ItemsViewBaseDelegate()
Definition: itemsviewbasedelegate.cpp:45
virtual void updateItemWidgets(const QList< QWidget * > widgets, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const =0
virtual bool event(QEvent *e)
KIcon m_iconDownloadable
Definition: itemsviewbasedelegate.h:74
bool eventFilter(QObject *watched, QEvent *event)
Definition: itemsviewbasedelegate.cpp:49
void signalShowDetails(const KNS3::EntryInternal &entry)
void slotInstallActionTriggered(QAction *action)
Definition: itemsviewbasedelegate.cpp:87
ItemsViewBaseDelegate(QAbstractItemView *itemView, Engine *engine, QObject *parent=0)
Definition: itemsviewbasedelegate.cpp:31
virtual QList< QWidget * > createItemWidgets() const =0
QAbstractItemView * m_itemView
Definition: itemsviewbasedelegate.h:72
void slotDetailsClicked()
Definition: itemsviewbasedelegate.cpp:98
QObject * parent() const
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const =0
void slotInstallClicked()
Definition: itemsviewbasedelegate.cpp:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.