KUrlNavigatorButtonBase Class Reference
Base class for buttons of the URL navigator. More...
#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) |
| 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 36 of file kurlnavigatorbuttonbase_p.h.
Member Enumeration Documentation
anonymous enum [protected] |
Definition at line 61 of file kurlnavigatorbuttonbase_p.h.
enum KUrlNavigatorButtonBase::DisplayHint [protected] |
Definition at line 55 of file kurlnavigatorbuttonbase_p.h.
Constructor & Destructor Documentation
| KUrlNavigatorButtonBase::KUrlNavigatorButtonBase | ( | QWidget * | parent | ) | [explicit] |
Definition at line 35 of file kurlnavigatorbuttonbase.cpp.
| KUrlNavigatorButtonBase::~KUrlNavigatorButtonBase | ( | ) | [virtual] |
Definition at line 47 of file kurlnavigatorbuttonbase.cpp.
Member Function Documentation
| void KUrlNavigatorButtonBase::drawHoverBackground | ( | QPainter * | painter | ) | [protected] |
Definition at line 94 of file kurlnavigatorbuttonbase.cpp.
| void KUrlNavigatorButtonBase::enterEvent | ( | QEvent * | event | ) | [protected, virtual] |
Reimplemented in KUrlNavigatorButton, and KUrlNavigatorToggleButton.
Definition at line 80 of file kurlnavigatorbuttonbase.cpp.
| QColor KUrlNavigatorButtonBase::foregroundColor | ( | ) | const [protected] |
Returns the foreground color by respecting the current display hint.
Definition at line 115 of file kurlnavigatorbuttonbase.cpp.
| bool KUrlNavigatorButtonBase::isActive | ( | ) | const |
Definition at line 59 of file kurlnavigatorbuttonbase.cpp.
| bool KUrlNavigatorButtonBase::isDisplayHintEnabled | ( | DisplayHint | hint | ) | const [protected] |
Definition at line 75 of file kurlnavigatorbuttonbase.cpp.
| void KUrlNavigatorButtonBase::leaveEvent | ( | QEvent * | event | ) | [protected, virtual] |
Reimplemented in KUrlNavigatorButton, and KUrlNavigatorToggleButton.
Definition at line 87 of file kurlnavigatorbuttonbase.cpp.
| void 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 51 of file kurlnavigatorbuttonbase.cpp.
| void KUrlNavigatorButtonBase::setDisplayHintEnabled | ( | DisplayHint | hint, |
| bool | enable | ||
| ) | [protected] |
Definition at line 64 of file kurlnavigatorbuttonbase.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference