KFile
#include <kurlnavigatorbuttonbase_p.h>

Public Member Functions | |
KUrlNavigatorButtonBase (QWidget *parent) | |
virtual | ~KUrlNavigatorButtonBase () |
bool | isActive () const |
void | setActive (bool active) |
Protected Types | |
enum | { BorderWidth = 2 } |
enum | DisplayHint { EnteredHint = 1, DraggedHint = 2, PopupActiveHint = 4 } |
Protected Member Functions | |
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) |
Detailed Description
Base class for buttons of the URL navigator.
Buttons of the URL navigator offer an an active/inactive state and custom display hints.
Definition at line 39 of file kurlnavigatorbuttonbase_p.h.
Member Enumeration Documentation
◆ anonymous enum
|
protected |
Enumerator | |
---|---|
BorderWidth |
Definition at line 64 of file kurlnavigatorbuttonbase_p.h.
◆ DisplayHint
|
protected |
Enumerator | |
---|---|
EnteredHint | |
DraggedHint | |
PopupActiveHint |
Definition at line 58 of file kurlnavigatorbuttonbase_p.h.
Constructor & Destructor Documentation
◆ KUrlNavigatorButtonBase()
|
explicit |
Definition at line 56 of file kurlnavigatorbuttonbase.cpp.
◆ ~KUrlNavigatorButtonBase()
|
virtual |
Definition at line 68 of file kurlnavigatorbuttonbase.cpp.
Member Function Documentation
◆ drawHoverBackground()
|
protected |
Definition at line 127 of file kurlnavigatorbuttonbase.cpp.
◆ enterEvent()
|
protectedvirtual |
Reimplemented in KDEPrivate::KUrlNavigatorButton, and KDEPrivate::KUrlNavigatorToggleButton.
Definition at line 113 of file kurlnavigatorbuttonbase.cpp.
◆ focusInEvent()
|
protectedvirtual |
Definition at line 101 of file kurlnavigatorbuttonbase.cpp.
◆ focusOutEvent()
|
protectedvirtual |
Definition at line 107 of file kurlnavigatorbuttonbase.cpp.
◆ foregroundColor()
|
protected |
Returns the foreground color by respecting the current display hint.
Definition at line 148 of file kurlnavigatorbuttonbase.cpp.
◆ isActive()
bool KDEPrivate::KUrlNavigatorButtonBase::isActive | ( | ) | const |
Definition at line 80 of file kurlnavigatorbuttonbase.cpp.
◆ isDisplayHintEnabled()
|
protected |
Definition at line 96 of file kurlnavigatorbuttonbase.cpp.
◆ leaveEvent()
|
protectedvirtual |
Reimplemented in KDEPrivate::KUrlNavigatorButton, and KDEPrivate::KUrlNavigatorToggleButton.
Definition at line 120 of file kurlnavigatorbuttonbase.cpp.
◆ setActive()
void KDEPrivate::KUrlNavigatorButtonBase::setActive | ( | bool | active | ) |
When having several URL navigator instances, it is important to provide a visual difference to indicate which URL navigator is active (usecase: split view in Dolphin).
The activation state is independent from the the focus or hover state. Per default the URL navigator button is marked as active.
Definition at line 72 of file kurlnavigatorbuttonbase.cpp.
◆ setDisplayHintEnabled()
|
protected |
Definition at line 85 of file kurlnavigatorbuttonbase.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.