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

kopete/libkopete

Kopete::UI::ListView::ListView

Kopete::UI::ListView::ListView Class Reference

#include <kopetelistview.h>

Inheritance diagram for Kopete::UI::ListView::ListView:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Engin AYDOGAN <engin@bzzzt.biz>

Author:
Richard Smith <kde@metafoo.co.uk>

Definition at line 37 of file kopetelistview.h.


Public Slots

void slotSort ()

Signals

void visibleSizeChanged ()

Public Member Functions

void delayedSort ()
 ListView (QWidget *parent=0)
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
 ~ListView ()

Protected Member Functions

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

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 
) [protected, virtual]

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  )  [protected, virtual]

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:
interval is the interval in ms.

Definition at line 317 of file kopetelistview.cpp.

void Kopete::UI::ListView::ListView::slotSort (  )  [inline, slot]

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  )  [protected, virtual]

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

kopete/libkopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal