KFile
#include <kurlnavigatorbutton_p.h>

Signals | |
void | clicked (const KUrl &url, Qt::MouseButton button) |
void | finishedTextResolving () |
void | startedTextResolving () |
void | urlsDropped (const KUrl &destination, QDropEvent *event) |
Public Member Functions | |
KUrlNavigatorButton (const KUrl &url, QWidget *parent) | |
virtual | ~KUrlNavigatorButton () |
QString | activeSubDirectory () const |
void | setActiveSubDirectory (const QString &subDir) |
void | setShowMnemonic (bool show) |
void | setText (const QString &text) |
void | setUrl (const KUrl &url) |
bool | showMnemonic () const |
virtual QSize | sizeHint () const |
KUrl | url () const |
![]() | |
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 | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
virtual void | enterEvent (QEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | leaveEvent (QEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | paintEvent (QPaintEvent *event) |
virtual void | wheelEvent (QWheelEvent *event) |
![]() | |
void | drawHoverBackground (QPainter *painter) |
virtual void | focusInEvent (QFocusEvent *event) |
virtual void | focusOutEvent (QFocusEvent *event) |
QColor | foregroundColor () const |
bool | isDisplayHintEnabled (DisplayHint hint) const |
void | setDisplayHintEnabled (DisplayHint hint, bool enable) |
Additional Inherited Members | |
![]() | |
enum | { BorderWidth = 2 } |
enum | DisplayHint { EnteredHint = 1, DraggedHint = 2, PopupActiveHint = 4 } |
Detailed Description
Button of the URL navigator which contains one part of an URL.
It is possible to drop a various number of items to an UrlNavigatorButton. In this case a context menu is opened where the user must select whether he wants to copy, move or link the dropped items to the URL part indicated by the button.
Definition at line 53 of file kurlnavigatorbutton_p.h.
Constructor & Destructor Documentation
◆ KUrlNavigatorButton()
|
explicit |
Definition at line 61 of file kurlnavigatorbutton.cpp.
◆ ~KUrlNavigatorButton()
|
virtual |
Definition at line 85 of file kurlnavigatorbutton.cpp.
Member Function Documentation
◆ activeSubDirectory()
QString KDEPrivate::KUrlNavigatorButton::activeSubDirectory | ( | ) | const |
Definition at line 148 of file kurlnavigatorbutton.cpp.
◆ clicked
|
signal |
◆ dragEnterEvent()
|
protectedvirtual |
Definition at line 323 of file kurlnavigatorbutton.cpp.
◆ dragLeaveEvent()
|
protectedvirtual |
Definition at line 360 of file kurlnavigatorbutton.cpp.
◆ dragMoveEvent()
|
protectedvirtual |
Definition at line 333 of file kurlnavigatorbutton.cpp.
◆ dropEvent()
|
protectedvirtual |
Definition at line 310 of file kurlnavigatorbutton.cpp.
◆ enterEvent()
|
protectedvirtual |
Reimplemented from KDEPrivate::KUrlNavigatorButtonBase.
Definition at line 272 of file kurlnavigatorbutton.cpp.
◆ finishedTextResolving
|
signal |
Is emitted, if the asynchronous resolving of the text has been finished (see startTextResolving()).
KUrlNavigatorButton::text() contains the resolved text.
◆ keyPressEvent()
|
protectedvirtual |
Definition at line 294 of file kurlnavigatorbutton.cpp.
◆ leaveEvent()
|
protectedvirtual |
Reimplemented from KDEPrivate::KUrlNavigatorButtonBase.
Definition at line 283 of file kurlnavigatorbutton.cpp.
◆ mouseMoveEvent()
|
protectedvirtual |
Definition at line 389 of file kurlnavigatorbutton.cpp.
◆ mousePressEvent()
|
protectedvirtual |
Definition at line 369 of file kurlnavigatorbutton.cpp.
◆ mouseReleaseEvent()
|
protectedvirtual |
Definition at line 378 of file kurlnavigatorbutton.cpp.
◆ paintEvent()
|
protectedvirtual |
Definition at line 176 of file kurlnavigatorbutton.cpp.
◆ setActiveSubDirectory()
void KDEPrivate::KUrlNavigatorButton::setActiveSubDirectory | ( | const QString & | subDir | ) |
Sets the name of the sub directory that should be marked when opening the sub directories popup.
Definition at line 139 of file kurlnavigatorbutton.cpp.
◆ setShowMnemonic()
void KDEPrivate::KUrlNavigatorButton::setShowMnemonic | ( | bool | show | ) |
Definition at line 163 of file kurlnavigatorbutton.cpp.
◆ setText()
void KDEPrivate::KUrlNavigatorButton::setText | ( | const QString & | text | ) |
Definition at line 122 of file kurlnavigatorbutton.cpp.
◆ setUrl()
void KDEPrivate::KUrlNavigatorButton::setUrl | ( | const KUrl & | url | ) |
Definition at line 89 of file kurlnavigatorbutton.cpp.
◆ showMnemonic()
bool KDEPrivate::KUrlNavigatorButton::showMnemonic | ( | ) | const |
Definition at line 171 of file kurlnavigatorbutton.cpp.
◆ sizeHint()
|
virtual |
- See also
- QWidget::sizeHint()
Definition at line 153 of file kurlnavigatorbutton.cpp.
◆ startedTextResolving
|
signal |
Is emitted, if KUrlNavigatorButton::setUrl() cannot resolve the text synchronously and KUrlNavigator::text() will return an empty string in this case.
The signal finishedTextResolving() is emitted, as soon as the text has been resolved.
◆ url()
KUrl KDEPrivate::KUrlNavigatorButton::url | ( | ) | const |
Definition at line 117 of file kurlnavigatorbutton.cpp.
◆ urlsDropped
|
signal |
Is emitted if URLs have been dropped to the destination destination.
◆ wheelEvent()
|
protectedvirtual |
Definition at line 400 of file kurlnavigatorbutton.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.