KFile
#include <kfileplacesview.h>
|
void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
|
void | rowsInserted (const QModelIndex &parent, int start, int end) |
|
This class allows to display a KFilePlacesModel.
Definition at line 34 of file kfileplacesview.h.
◆ KFilePlacesView()
KFilePlacesView::KFilePlacesView |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~KFilePlacesView()
KFilePlacesView::~KFilePlacesView |
( |
| ) |
|
◆ contextMenuEvent()
void KFilePlacesView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
protectedvirtual |
◆ dataChanged
void KFilePlacesView::dataChanged |
( |
const QModelIndex & |
topLeft, |
|
|
const QModelIndex & |
bottomRight |
|
) |
| |
|
protectedslot |
◆ dragEnterEvent()
void KFilePlacesView::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
◆ dragLeaveEvent()
void KFilePlacesView::dragLeaveEvent |
( |
QDragLeaveEvent * |
event | ) |
|
|
protectedvirtual |
◆ dragMoveEvent()
void KFilePlacesView::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
◆ dropEvent()
void KFilePlacesView::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
◆ hideEvent()
void KFilePlacesView::hideEvent |
( |
QHideEvent * |
event | ) |
|
|
protectedvirtual |
◆ isAutoResizeItemsEnabled()
bool KFilePlacesView::isAutoResizeItemsEnabled |
( |
| ) |
const |
◆ isDropOnPlaceEnabled()
bool KFilePlacesView::isDropOnPlaceEnabled |
( |
| ) |
const |
◆ keyPressEvent()
void KFilePlacesView::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protectedvirtual |
◆ paintEvent()
void KFilePlacesView::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protectedvirtual |
◆ resizeEvent()
void KFilePlacesView::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
◆ rowsInserted
void KFilePlacesView::rowsInserted |
( |
const QModelIndex & |
parent, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
|
protectedslot |
◆ setAutoResizeItemsEnabled()
void KFilePlacesView::setAutoResizeItemsEnabled |
( |
bool |
enabled | ) |
|
If enabled is true (the default), items will automatically resize themselves to fill the view.
- Since
- 4.1
Definition at line 451 of file kfileplacesview.cpp.
◆ setDropOnPlaceEnabled()
void KFilePlacesView::setDropOnPlaceEnabled |
( |
bool |
enabled | ) |
|
If enabled is true, it is allowed dropping items above a place for e.
g. copy or move operations. The application has to take care itself to perform the operation (see KFilePlacesView::urlsDropped()). If enabled is false, it is only possible adding items as additional place. Per default dropping on a place is disabled.
Definition at line 441 of file kfileplacesview.cpp.
◆ setModel
◆ setShowAll
void KFilePlacesView::setShowAll |
( |
bool |
showAll | ) |
|
|
slot |
◆ setUrl
void KFilePlacesView::setUrl |
( |
const KUrl & |
url | ) |
|
|
slot |
◆ showEvent()
void KFilePlacesView::showEvent |
( |
QShowEvent * |
event | ) |
|
|
protectedvirtual |
◆ sizeHint
QSize KFilePlacesView::sizeHint |
( |
| ) |
const |
|
virtualslot |
◆ urlChanged
void KFilePlacesView::urlChanged |
( |
const KUrl & |
url | ) |
|
|
signal |
◆ urlsDropped
void KFilePlacesView::urlsDropped |
( |
const KUrl & |
dest, |
|
|
QDropEvent * |
event, |
|
|
QWidget * |
parent |
|
) |
| |
|
signal |
Is emitted if items are dropped on the place dest.
The application has to take care itself about performing the corresponding action like copying or moving.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.