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
|
protected |
Enumerator | |
---|---|
BorderWidth |
Definition at line 64 of file kurlnavigatorbuttonbase_p.h.
|
protected |
Enumerator | |
---|---|
EnteredHint | |
DraggedHint | |
PopupActiveHint |
Definition at line 58 of file kurlnavigatorbuttonbase_p.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 38 of file kurlnavigatorbuttonbase.cpp.
|
virtual |
Definition at line 50 of file kurlnavigatorbuttonbase.cpp.
Member Function Documentation
|
protected |
Definition at line 109 of file kurlnavigatorbuttonbase.cpp.
|
protectedvirtual |
Reimplemented in KDEPrivate::KUrlNavigatorButton, and KDEPrivate::KUrlNavigatorToggleButton.
Definition at line 95 of file kurlnavigatorbuttonbase.cpp.
|
protectedvirtual |
Definition at line 83 of file kurlnavigatorbuttonbase.cpp.
|
protectedvirtual |
Definition at line 89 of file kurlnavigatorbuttonbase.cpp.
|
protected |
Returns the foreground color by respecting the current display hint.
Definition at line 130 of file kurlnavigatorbuttonbase.cpp.
bool KDEPrivate::KUrlNavigatorButtonBase::isActive | ( | ) | const |
Definition at line 62 of file kurlnavigatorbuttonbase.cpp.
|
protected |
Definition at line 78 of file kurlnavigatorbuttonbase.cpp.
|
protectedvirtual |
Reimplemented in KDEPrivate::KUrlNavigatorButton, and KDEPrivate::KUrlNavigatorToggleButton.
Definition at line 102 of file kurlnavigatorbuttonbase.cpp.
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 54 of file kurlnavigatorbuttonbase.cpp.
|
protected |
Definition at line 67 of file kurlnavigatorbuttonbase.cpp.
The documentation for this class was generated from the following files:
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.