#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.
Member Enumeration Documentation
anonymous enum [protected] |
Definition at line 64 of file kurlnavigatorbuttonbase_p.h.
enum KDEPrivate::KUrlNavigatorButtonBase::DisplayHint [protected] |
Definition at line 58 of file kurlnavigatorbuttonbase_p.h.
Constructor & Destructor Documentation
| KDEPrivate::KUrlNavigatorButtonBase::KUrlNavigatorButtonBase | ( | QWidget * | parent | ) | [explicit] |
Definition at line 38 of file kurlnavigatorbuttonbase.cpp.
| KDEPrivate::KUrlNavigatorButtonBase::~KUrlNavigatorButtonBase | ( | ) | [virtual] |
Definition at line 50 of file kurlnavigatorbuttonbase.cpp.
Member Function Documentation
| void KDEPrivate::KUrlNavigatorButtonBase::drawHoverBackground | ( | QPainter * | painter | ) | [protected] |
Definition at line 109 of file kurlnavigatorbuttonbase.cpp.
| void KDEPrivate::KUrlNavigatorButtonBase::enterEvent | ( | QEvent * | event | ) | [protected, virtual] |
Reimplemented in KDEPrivate::KUrlNavigatorButton, and KDEPrivate::KUrlNavigatorToggleButton.
Definition at line 95 of file kurlnavigatorbuttonbase.cpp.
| void KDEPrivate::KUrlNavigatorButtonBase::focusInEvent | ( | QFocusEvent * | event | ) | [protected, virtual] |
Definition at line 83 of file kurlnavigatorbuttonbase.cpp.
| void KDEPrivate::KUrlNavigatorButtonBase::focusOutEvent | ( | QFocusEvent * | event | ) | [protected, virtual] |
Definition at line 89 of file kurlnavigatorbuttonbase.cpp.
| QColor KDEPrivate::KUrlNavigatorButtonBase::foregroundColor | ( | ) | const [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.
| bool KDEPrivate::KUrlNavigatorButtonBase::isDisplayHintEnabled | ( | DisplayHint | hint | ) | const [protected] |
Definition at line 78 of file kurlnavigatorbuttonbase.cpp.
| void KDEPrivate::KUrlNavigatorButtonBase::leaveEvent | ( | QEvent * | event | ) | [protected, virtual] |
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.
| void KDEPrivate::KUrlNavigatorButtonBase::setDisplayHintEnabled | ( | DisplayHint | hint, |
| bool | enable | ||
| ) | [protected] |
Definition at line 67 of file kurlnavigatorbuttonbase.cpp.
The documentation for this class was generated from the following files:
KDE 4.7 API Reference