• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KFile

  • KDEPrivate
  • KUrlNavigatorButtonBase
Public Member Functions | Protected Types | Protected Member Functions | List of all members
KDEPrivate::KUrlNavigatorButtonBase Class Reference

#include <kurlnavigatorbuttonbase_p.h>

Inheritance diagram for KDEPrivate::KUrlNavigatorButtonBase:
Inheritance graph
[legend]

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.

enum KDEPrivate::KUrlNavigatorButtonBase::DisplayHint
protected
Enumerator
EnteredHint 
DraggedHint 
PopupActiveHint 

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)
protectedvirtual

Reimplemented in KDEPrivate::KUrlNavigatorButton, and KDEPrivate::KUrlNavigatorToggleButton.

Definition at line 95 of file kurlnavigatorbuttonbase.cpp.

void KDEPrivate::KUrlNavigatorButtonBase::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 83 of file kurlnavigatorbuttonbase.cpp.

void KDEPrivate::KUrlNavigatorButtonBase::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

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)
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.

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:
  • kurlnavigatorbuttonbase_p.h
  • kurlnavigatorbuttonbase.cpp
This file is part of the KDE documentation.
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.

KFile

Skip menu "KFile"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal