KDEUI
kwidgetitemdelegate.cpp
Go to the documentation of this file.
74 void KWidgetItemDelegatePrivate::_k_slotRowsInserted(const QModelIndex &parent, int start, int end)
82 void KWidgetItemDelegatePrivate::_k_slotRowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
87 void KWidgetItemDelegatePrivate::_k_slotRowsRemoved(const QModelIndex &parent, int start, int end)
95 void KWidgetItemDelegatePrivate::_k_slotDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
119 void KWidgetItemDelegatePrivate::_k_slotSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
129 void KWidgetItemDelegatePrivate::updateRowRange(const QModelIndex &parent, int start, int end, bool isRemoving)
135 QList<QWidget*> widgetList = widgetPool->findWidgets(index, optionView(index), isRemoving ? KWidgetItemDelegatePool::NotUpdateWidgets
216 const QPersistentModelIndex idx = d->widgetPool->d->widgetInIndex.value(QApplication::focusWidget());
253 disconnect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), q, SLOT(_k_slotRowsInserted(QModelIndex,int,int)));
254 disconnect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), q, SLOT(_k_slotRowsAboutToBeRemoved(QModelIndex,int,int)));
255 disconnect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), q, SLOT(_k_slotRowsRemoved(QModelIndex,int,int)));
256 disconnect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)), q, SLOT(_k_slotDataChanged(QModelIndex,QModelIndex)));
261 connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), q, SLOT(_k_slotRowsInserted(QModelIndex,int,int)));
262 connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), q, SLOT(_k_slotRowsAboutToBeRemoved(QModelIndex,int,int)));
263 connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), q, SLOT(_k_slotRowsRemoved(QModelIndex,int,int)));
264 connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)), q, SLOT(_k_slotDataChanged(QModelIndex,QModelIndex)));
272 disconnect(selectionModel, SIGNAL(selectionChanged(QItemSelection,QItemSelection)), q, SLOT(_k_slotSelectionChanged(QItemSelection,QItemSelection)));
275 connect(selectionModel, SIGNAL(selectionChanged(QItemSelection,QItemSelection)), q, SLOT(_k_slotSelectionChanged(QItemSelection,QItemSelection)));
303 void KWidgetItemDelegate::setBlockedEventTypes(QWidget *widget, QList<QEvent::Type> types) const
QModelIndexList indexes() const
Type type() const
QPersistentModelIndex focusedIndex() const
Retrieves the currently focused index.
Definition: kwidgetitemdelegate.cpp:214
QList< QEvent::Type > blockedEventTypes(QWidget *widget) const
Retrieves the list of blocked event types for the given widget.
Definition: kwidgetitemdelegate.cpp:308
QAbstractItemView * itemView() const
Retrieves the item view this delegate is monitoring.
Definition: kwidgetitemdelegate.cpp:209
virtual void setVisible(bool visible)
void setAttribute(Qt::WidgetAttribute attribute, bool on)
T value() const
QWidget * viewport() const
void setBlockedEventTypes(QWidget *widget, QList< QEvent::Type > types) const
Sets the list of event types that a widget will block.
Definition: kwidgetitemdelegate.cpp:303
void initFrom(const QWidget *widget)
This class allows to create item delegates embedding simple widgets to interact with items...
Definition: kwidgetitemdelegate.h:49
bool isValid() const
bool isValid() const
QVariant property(const char *name) const
void installEventFilter(QObject *filterObj)
KWidgetItemDelegate(QAbstractItemView *itemView, QObject *parent=0)
Creates a new ItemDelegate to be used with a given itemview.
Definition: kwidgetitemdelegate.cpp:182
QWidget * focusWidget()
int removeAll(const T &value)
int row() const
virtual bool eventFilter(QObject *watched, QEvent *event)
QModelIndex parent() const
void paintWidgets(QPainter *painter, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const
Paint the widgets of the item.
Definition: kwidgetitemdelegate.cpp:226
QPoint pos()
int column() const
void setMouseTracking(bool enable)
bool setProperty(const char *name, const QVariant &value)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 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:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.