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

KFile

Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
KFilePlacesView Class Reference

#include <kfileplacesview.h>

Inheritance diagram for KFilePlacesView:
Inheritance graph
[legend]

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

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

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 keyPressEvent (QKeyEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void showEvent (QShowEvent *event)
 

Detailed Description

This class allows to display a KFilePlacesModel.

Definition at line 34 of file kfileplacesview.h.

Constructor & Destructor Documentation

KFilePlacesView::KFilePlacesView ( QWidget *  parent = 0)

Definition at line 366 of file kfileplacesview.cpp.

KFilePlacesView::~KFilePlacesView ( )

Definition at line 436 of file kfileplacesview.cpp.

Member Function Documentation

void KFilePlacesView::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Definition at line 556 of file kfileplacesview.cpp.

void KFilePlacesView::dataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
protectedslot

Definition at line 1191 of file kfileplacesview.cpp.

void KFilePlacesView::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 729 of file kfileplacesview.cpp.

void KFilePlacesView::dragLeaveEvent ( QDragLeaveEvent *  event)
protectedvirtual

Definition at line 740 of file kfileplacesview.cpp.

void KFilePlacesView::dragMoveEvent ( QDragMoveEvent *  event)
protectedvirtual

Definition at line 751 of file kfileplacesview.cpp.

void KFilePlacesView::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 779 of file kfileplacesview.cpp.

void KFilePlacesView::hideEvent ( QHideEvent *  event)
protectedvirtual

Definition at line 723 of file kfileplacesview.cpp.

bool KFilePlacesView::isAutoResizeItemsEnabled ( ) const

Definition at line 456 of file kfileplacesview.cpp.

bool KFilePlacesView::isDropOnPlaceEnabled ( ) const

Definition at line 446 of file kfileplacesview.cpp.

void KFilePlacesView::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 548 of file kfileplacesview.cpp.

void KFilePlacesView::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 800 of file kfileplacesview.cpp.

void KFilePlacesView::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Definition at line 711 of file kfileplacesview.cpp.

void KFilePlacesView::rowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedslot

Definition at line 854 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 451 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 441 of file kfileplacesview.cpp.

void KFilePlacesView::setModel ( QAbstractItemModel *  model)
virtualslot

Definition at line 840 of file kfileplacesview.cpp.

void KFilePlacesView::setShowAll ( bool  showAll)
slot

Definition at line 506 of file kfileplacesview.cpp.

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

Definition at line 461 of file kfileplacesview.cpp.

void KFilePlacesView::showEvent ( QShowEvent *  event)
protectedvirtual

Definition at line 717 of file kfileplacesview.cpp.

QSize KFilePlacesView::sizeHint ( void  ) const
virtualslot

Definition at line 879 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal