#include <klflibview_p.h>
Public Member Functions | |
KLFLibDefViewCommon (KLFLibDefaultView *dview) | |
virtual | ~KLFLibDefViewCommon () |
virtual bool | evDragEnter (QDragEnterEvent *de, const QPoint &pos) |
virtual bool | evDragMove (QDragMoveEvent *de, const QPoint &pos) |
virtual bool | evDrop (QDropEvent *de, const QPoint &pos) |
virtual void | commonStartDrag (Qt::DropActions supportedActions) |
QModelIndex | curVisibleIndex (bool firstOrLast) const |
virtual void | modelInitialized () |
Protected Member Functions | |
virtual QModelIndexList | commonSelectedIndexes () const =0 |
virtual void | commonInternalDrag (Qt::DropActions a)=0 |
virtual QAbstractItemView * | thisView ()=0 |
virtual const QAbstractItemView * | thisConstView () const =0 |
virtual QPoint | scrollOffset () const =0 |
virtual QPoint | eventPos (QObject *object, QDragEnterEvent *event, int horoffset, int veroffset) |
virtual bool | setTheModel (QAbstractItemModel *m) |
Protected Attributes | |
KLFLibModel * | pModel |
KLFLibDefaultView * | pDView |
KLFLibDefaultView::ViewType | pViewType |
QPoint | mousePressedContentsPos |
Definition at line 408 of file klflibview_p.h.
|
inline |
Definition at line 411 of file klflibview_p.h.
|
inlinevirtual |
Definition at line 415 of file klflibview_p.h.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
|
inlinevirtual |
Definition at line 494 of file klflibview_p.h.
References KLFLibModel::dragImage(), QPixmap::fromImage(), KLFLibDefaultView::IconView, klfDbg, KLFLibModel::mimeData(), KLFLibModelCache::pModel, QDrag::setHotSpot(), QDrag::setMimeData(), and QDrag::setPixmap().
|
inline |
Definition at line 534 of file klflibview_p.h.
References klfDbg, KLFLibModelCache::pModel, and KLFLibModel::walkNextIndex().
Referenced by KLFLibDefaultView::currentVisibleIndex().
|
inlinevirtual |
Definition at line 420 of file klflibview_p.h.
References KLFLibModel::dropFlags(), KLFLibModel::DropWillAccept, KLFLibModel::DropWillCategorize, KLFLibDefaultView::IconView, klfDbg, and KLFLibModelCache::pModel.
|
inlinevirtual |
Definition at line 445 of file klflibview_p.h.
References QDragMoveEvent::accept(), KLFLibModel::dropFlags(), KLFLibModel::DropWillAccept, KLFLibModel::DropWillMove, KLFLibDefaultView::IconView, QDragMoveEvent::ignore(), klfDbg, and KLFLibModelCache::pModel.
|
inlinevirtual |
Definition at line 470 of file klflibview_p.h.
References KLFLibDefaultView::IconView, klfDbg, QDropEvent::mimeData(), QDropEvent::pos(), and QDropEvent::source().
|
inlineprotectedvirtual |
Returns contents position
Definition at line 594 of file klflibview_p.h.
Referenced by KLFLibDefTreeView::eventPos(), and KLFLibDefListView::eventPos().
|
inlinevirtual |
Reimplemented in KLFLibDefListView.
Definition at line 579 of file klflibview_p.h.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
|
inlineprotectedvirtual |
Definition at line 603 of file klflibview_p.h.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
|
protectedpure virtual |
Implemented in KLFLibDefListView, and KLFLibDefTreeView.
|
protected |
Definition at line 585 of file klflibview_p.h.
|
protected |
Definition at line 583 of file klflibview_p.h.
|
protected |
Definition at line 582 of file klflibview_p.h.
|
protected |
Definition at line 584 of file klflibview_p.h.