• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KFile

KFilePlacesView Class Reference

#include <kfileplacesview.h>

Inheritance diagram for KFilePlacesView:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class allows to display a KFilePlacesModel.

Definition at line 34 of file kfileplacesview.h.


Public Slots

virtual void setModel (QAbstractItemModel *model)
void setShowAll (bool showAll)
void setUrl (const KUrl &url)
virtual QSize sizeHint () const

Signals

void urlChanged (const KUrl &url)
void urlsDropped (const KUrl &dest, QDropEvent *event, QWidget *parent)

Public Member Functions

bool isAutoResizeItemsEnabled () const
bool isDropOnPlaceEnabled () const
 KFilePlacesView (QWidget *parent=0)
void setAutoResizeItemsEnabled (bool enabled)
void setDropOnPlaceEnabled (bool enabled)
 ~KFilePlacesView ()

Protected Slots

void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
void rowsInserted (const QModelIndex &parent, int start, int end)

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event)
virtual void dragEnterEvent (QDragEnterEvent *event)
virtual void dragLeaveEvent (QDragLeaveEvent *event)
virtual void dragMoveEvent (QDragMoveEvent *event)
virtual void dropEvent (QDropEvent *event)
virtual void hideEvent (QHideEvent *event)
virtual void paintEvent (QPaintEvent *event)
virtual void resizeEvent (QResizeEvent *event)
virtual void showEvent (QShowEvent *event)

Constructor & Destructor Documentation

KFilePlacesView::KFilePlacesView ( QWidget *  parent = 0  ) 

Definition at line 366 of file kfileplacesview.cpp.

KFilePlacesView::~KFilePlacesView (  ) 

Definition at line 427 of file kfileplacesview.cpp.


Member Function Documentation

void KFilePlacesView::contextMenuEvent ( QContextMenuEvent *  event  )  [protected, virtual]

Definition at line 539 of file kfileplacesview.cpp.

void KFilePlacesView::dataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
) [protected, slot]

Definition at line 1162 of file kfileplacesview.cpp.

void KFilePlacesView::dragEnterEvent ( QDragEnterEvent *  event  )  [protected, virtual]

Definition at line 702 of file kfileplacesview.cpp.

void KFilePlacesView::dragLeaveEvent ( QDragLeaveEvent *  event  )  [protected, virtual]

Definition at line 713 of file kfileplacesview.cpp.

void KFilePlacesView::dragMoveEvent ( QDragMoveEvent *  event  )  [protected, virtual]

Definition at line 724 of file kfileplacesview.cpp.

void KFilePlacesView::dropEvent ( QDropEvent *  event  )  [protected, virtual]

Definition at line 752 of file kfileplacesview.cpp.

void KFilePlacesView::hideEvent ( QHideEvent *  event  )  [protected, virtual]

Definition at line 696 of file kfileplacesview.cpp.

bool KFilePlacesView::isAutoResizeItemsEnabled (  )  const

Definition at line 447 of file kfileplacesview.cpp.

bool KFilePlacesView::isDropOnPlaceEnabled (  )  const

Definition at line 437 of file kfileplacesview.cpp.

void KFilePlacesView::paintEvent ( QPaintEvent *  event  )  [protected, virtual]

Definition at line 773 of file kfileplacesview.cpp.

void KFilePlacesView::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Definition at line 684 of file kfileplacesview.cpp.

void KFilePlacesView::rowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 823 of file kfileplacesview.cpp.

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 442 of file kfileplacesview.cpp.

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 432 of file kfileplacesview.cpp.

void KFilePlacesView::setModel ( QAbstractItemModel *  model  )  [virtual, slot]

Definition at line 813 of file kfileplacesview.cpp.

void KFilePlacesView::setShowAll ( bool  showAll  )  [slot]

Definition at line 497 of file kfileplacesview.cpp.

void KFilePlacesView::setUrl ( const KUrl &  url  )  [slot]

Definition at line 452 of file kfileplacesview.cpp.

void KFilePlacesView::showEvent ( QShowEvent *  event  )  [protected, virtual]

Definition at line 690 of file kfileplacesview.cpp.

QSize KFilePlacesView::sizeHint ( void   )  const [virtual, slot]

Definition at line 848 of file kfileplacesview.cpp.

void KFilePlacesView::urlChanged ( const KUrl &  url  )  [signal]

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:
  • kfileplacesview.h
  • kfileplacesview.cpp

KFile

Skip menu "KFile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • kformula
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal