diff options
| author | Peter Penz <[email protected]> | 2011-08-24 18:11:55 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-08-24 18:12:52 +0200 |
| commit | 84010807786c352aaeb2320caf27e5f9048d8dec (patch) | |
| tree | 5b9c5fe51b397bcc906f51061dc20303ed744c1d /src/kitemviews/kitemlistview.h | |
| parent | 6e0d247d3101eb131a636e885947a6dde313422c (diff) | |
Interface cleanups for drag and drop support
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
| -rw-r--r-- | src/kitemviews/kitemlistview.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index 2a07dbb23..344221e40 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -156,9 +156,16 @@ public: bool isTransactionActive() const; /** + * @return Pixmap that is used for a drag operation based on the + * items given by \a indexes. The default implementation returns + * a null-pixmap. + */ + virtual QPixmap createDragPixmap(const QSet<int>& indexes) const; + + /** * @reimp */ - virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); signals: void offsetChanged(qreal current, qreal previous); |
