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

kopete/libkopete

  • Kopete
  • UI
  • ListView
  • ListView
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Kopete::UI::ListView::ListView Class Reference

#include <kopetelistview.h>

Inheritance diagram for Kopete::UI::ListView::ListView:
Inheritance graph
[legend]

Public Slots

void slotSort ()
 

Signals

void visibleSizeChanged ()
 

Public Member Functions

 ListView (QWidget *parent=0)
 
 ~ListView ()
 
void delayedSort ()
 
bool mouseNavigation () const
 
bool scrollAutoHide () const
 
int scrollAutoHideTimeout () const
 
bool scrollHide () const
 
void setMouseNavigation (bool b)
 
void setScrollAutoHide (bool b)
 
void setScrollAutoHideTimeout (int)
 
void setScrollHide (bool b)
 
void setShowTreeLines (bool bShowAsTree)
 
void setSmoothScrolling (bool)
 
void setSmoothScrollingTimerInterval (double interval)
 
bool smoothScrolling () const
 
double smoothScrollingTimerInterval () const
 

Protected Member Functions

virtual bool eventFilter (QObject *o, QEvent *e)
 
virtual void keyPressEvent (QKeyEvent *e)
 
virtual void timerEvent (QTimerEvent *e)
 

Detailed Description

Author
Engin AYDOGAN engin.nosp@m.@bzz.nosp@m.zt.bi.nosp@m.z
Richard Smith kde@m.nosp@m.etaf.nosp@m.oo.co.nosp@m..uk

Definition at line 37 of file kopetelistview.h.

Constructor & Destructor Documentation

Kopete::UI::ListView::ListView::ListView ( QWidget *  parent = 0)

Definition at line 145 of file kopetelistview.cpp.

Kopete::UI::ListView::ListView::~ListView ( )

Definition at line 179 of file kopetelistview.cpp.

Member Function Documentation

void Kopete::UI::ListView::ListView::delayedSort ( )

Schedule a delayed sort operation.

Sorts will be withheld for at most half a second, after which they will be performed. This way multiple sort calls can be safely bundled without writing complex code to avoid the sorts entirely.

Definition at line 245 of file kopetelistview.cpp.

bool Kopete::UI::ListView::ListView::eventFilter ( QObject *  o,
QEvent *  e 
)
protectedvirtual

To make smooth scrolling work well, we need extensive event intercepting.

This event filter is suppposed to achieve that.

Definition at line 469 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 230 of file kopetelistview.cpp.

bool Kopete::UI::ListView::ListView::mouseNavigation ( ) const

Gets the mouse navigation status.

Definition at line 387 of file kopetelistview.cpp.

bool Kopete::UI::ListView::ListView::scrollAutoHide ( ) const

Gets scroll auto hide feature status.

Definition at line 350 of file kopetelistview.cpp.

int Kopete::UI::ListView::ListView::scrollAutoHideTimeout ( ) const

Gets the scroll bar auto-hide timeout value.

Definition at line 360 of file kopetelistview.cpp.

bool Kopete::UI::ListView::ListView::scrollHide ( ) const

Gets always hide feature state.

Definition at line 377 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::setMouseNavigation ( bool  b)

Sets the mouse navigation status.

Contact list slider is always automagically adjusted to the content's Y position, which means, the scroll bar's slider will follow your cursor while it on the contact list.

Definition at line 382 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::setScrollAutoHide ( bool  b)

Sets scroll auto hide feature This method implicitly calls setIgnoreGlobalScrolLAutoHide(true) by default.

If you want not to ignore global changes, explicitly call setIgnoreGlobalScrollAutoHide(false).

Note: No matter what is the previous vScrollBarMode is, when `false' is provided to this method new vScrollBarMode will be `Auto'. So it's programmers responsibility to keep track of vScrollBarMode

See also
setVScrollBarMode( ScrollBarMode )

Definition at line 327 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::setScrollAutoHideTimeout ( int  t)

Sets the amount of time to hide scrollbar after inactivity.

( in seconds ) Note: If not called, default value 10 will be used.

Definition at line 355 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::setScrollHide ( bool  b)

Sets always hide feature Note: No matter what is the previous vScrollBarMode is, when `false' is provided to this method new vScrollBarMode will be `Auto'.

So it's programmers responsibility to keep track of vScrollBarMode

See also
setVScrollBarMode( ScrollBarMode )

Definition at line 365 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::setShowTreeLines ( bool  bShowAsTree)

Set whether to show the lines and +/- boxes in the tree.

Definition at line 207 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::setSmoothScrolling ( bool  b)

Sets the smooth scrolling.

Definition at line 268 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::setSmoothScrollingTimerInterval ( double  interval)

Sets the update interval of smooth scrolling animation.

Parameters
intervalis the interval in ms.

Definition at line 317 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::slotSort ( )
inlineslot

Calls QListView::sort()

Definition at line 135 of file kopetelistview.h.

bool Kopete::UI::ListView::ListView::smoothScrolling ( ) const

Gets the smooth scrolling status.

Definition at line 312 of file kopetelistview.cpp.

double Kopete::UI::ListView::ListView::smoothScrollingTimerInterval ( ) const

Gets the current update interval.

Definition at line 322 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::timerEvent ( QTimerEvent *  e)
protectedvirtual

Invoked on each timeout of a QTimer of this listview, This will manage the smooth scrolling animation, continuous presses to the scrollbars.

Definition at line 392 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::visibleSizeChanged ( )
signal

The documentation for this class was generated from the following files:
  • kopetelistview.h
  • kopetelistview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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