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

KFile

  • KDEPrivate
  • KUrlNavigatorPlacesSelector
Signals | Public Member Functions | Protected Member Functions | List of all members
KDEPrivate::KUrlNavigatorPlacesSelector Class Reference

#include <kurlnavigatorplacesselector_p.h>

Inheritance diagram for KDEPrivate::KUrlNavigatorPlacesSelector:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from KDEPrivate::KUrlNavigatorButtonBase
 KUrlNavigatorButtonBase (QWidget *parent)
 
virtual ~KUrlNavigatorButtonBase ()
 
bool isActive () const
 
void setActive (bool active)
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 
- Protected Member Functions inherited from KDEPrivate::KUrlNavigatorButtonBase
void drawHoverBackground (QPainter *painter)
 
virtual void enterEvent (QEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
QColor foregroundColor () const
 
bool isDisplayHintEnabled (DisplayHint hint) const
 
virtual void leaveEvent (QEvent *event)
 
void setDisplayHintEnabled (DisplayHint hint, bool enable)
 

Additional Inherited Members

- Protected Types inherited from KDEPrivate::KUrlNavigatorButtonBase
enum  { BorderWidth = 2 }
 
enum  DisplayHint { EnteredHint = 1, DraggedHint = 2, PopupActiveHint = 4 }
 

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 44 of file kurlnavigatorplacesselector_p.h.

Constructor & Destructor Documentation

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

Definition at line 40 of file kurlnavigatorplacesselector.cpp.

KDEPrivate::KUrlNavigatorPlacesSelector::~KUrlNavigatorPlacesSelector ( )
virtual

Definition at line 65 of file kurlnavigatorplacesselector.cpp.

Member Function Documentation

void KDEPrivate::KUrlNavigatorPlacesSelector::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 163 of file kurlnavigatorplacesselector.cpp.

void KDEPrivate::KUrlNavigatorPlacesSelector::dragLeaveEvent ( QDragLeaveEvent *  event)
protectedvirtual

Definition at line 173 of file kurlnavigatorplacesselector.cpp.

void KDEPrivate::KUrlNavigatorPlacesSelector::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 181 of file kurlnavigatorplacesselector.cpp.

void KDEPrivate::KUrlNavigatorPlacesSelector::paintEvent ( QPaintEvent *  event)
protectedvirtual

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

Definition at line 150 of file kurlnavigatorplacesselector.cpp.

void KDEPrivate::KUrlNavigatorPlacesSelector::placeActivated ( const KUrl &  url)
signal

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

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

Returns the selected bookmark.

Definition at line 138 of file kurlnavigatorplacesselector.cpp.

KUrl KDEPrivate::KUrlNavigatorPlacesSelector::selectedPlaceUrl ( ) const

Returns the selected bookmark.

Definition at line 132 of file kurlnavigatorplacesselector.cpp.

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

Definition at line 144 of file kurlnavigatorplacesselector.cpp.

void KDEPrivate::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 116 of file kurlnavigatorplacesselector.cpp.


The documentation for this class was generated from the following files:
  • kurlnavigatorplacesselector_p.h
  • kurlnavigatorplacesselector.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