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

KFile

Signals | Public Member Functions | Protected Member Functions

KUrlNavigatorPlacesSelector Class Reference

Allows to select a bookmark from a popup menu. More...

#include <kurlnavigatorplacesselector_p.h>

Inheritance diagram for KUrlNavigatorPlacesSelector:
Inheritance graph
[legend]

List of all members.

Signals

void placeActivated (const KUrl &url)

Public Member Functions

 KUrlNavigatorPlacesSelector (QWidget *parent, KFilePlacesModel *placesModel)
virtual ~KUrlNavigatorPlacesSelector ()
QString selectedPlaceText () const
KUrl selectedPlaceUrl () const
virtual QSize sizeHint () const
void updateSelection (const KUrl &url)

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event)
virtual void dragLeaveEvent (QDragLeaveEvent *event)
virtual void dropEvent (QDropEvent *event)
virtual void paintEvent (QPaintEvent *event)

Detailed Description

Allows to select a bookmark from a popup menu.

The icon from the current selected bookmark is shown inside the bookmark selector.

See also:
KUrlNavigator

Definition at line 40 of file kurlnavigatorplacesselector_p.h.


Constructor & Destructor Documentation

KUrlNavigatorPlacesSelector::KUrlNavigatorPlacesSelector ( QWidget *  parent,
KFilePlacesModel *  placesModel 
)
Parameters:
parentParent widget where the bookmark selector is embedded into.

Definition at line 37 of file kurlnavigatorplacesselector.cpp.

KUrlNavigatorPlacesSelector::~KUrlNavigatorPlacesSelector ( ) [virtual]

Definition at line 62 of file kurlnavigatorplacesselector.cpp.


Member Function Documentation

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

Definition at line 161 of file kurlnavigatorplacesselector.cpp.

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

Definition at line 171 of file kurlnavigatorplacesselector.cpp.

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

Definition at line 179 of file kurlnavigatorplacesselector.cpp.

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

Draws the icon of the selected Url as content of the Url selector.

Definition at line 148 of file kurlnavigatorplacesselector.cpp.

void KUrlNavigatorPlacesSelector::placeActivated ( const KUrl &  url) [signal]

Is send when a bookmark has been activated by the user.

Parameters:
urlURL of the selected place.
QString KUrlNavigatorPlacesSelector::selectedPlaceText ( ) const

Returns the selected bookmark.

Definition at line 136 of file kurlnavigatorplacesselector.cpp.

KUrl KUrlNavigatorPlacesSelector::selectedPlaceUrl ( ) const

Returns the selected bookmark.

Definition at line 130 of file kurlnavigatorplacesselector.cpp.

QSize KUrlNavigatorPlacesSelector::sizeHint ( void  ) const [virtual]
See also:
QWidget::sizeHint()

Definition at line 142 of file kurlnavigatorplacesselector.cpp.

void KUrlNavigatorPlacesSelector::updateSelection ( const KUrl &  url)

Updates the selection dependent from the given URL url.

The URL must not match exactly to one of the available bookmarks: The bookmark which is equal to the URL or at least is a parent URL is selected. If there are more than one possible parent URL candidates, the bookmark which covers the bigger range of the URL is selected.

Definition at line 113 of file kurlnavigatorplacesselector.cpp.


The documentation for this class was generated from the following files:
  • kurlnavigatorplacesselector_p.h
  • kurlnavigatorplacesselector.cpp

KFile

Skip menu "KFile"
  • Main Page
  • Namespace List
  • 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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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