kopete/libkopete
Kopete::UI::ListView::ListView Class Reference
#include <kopetelistview.h>

Detailed Description
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.
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 |
| bool Kopete::UI::ListView::ListView::scrollAutoHide | ( | ) | const |
| int Kopete::UI::ListView::ListView::scrollAutoHideTimeout | ( | ) | const |
| bool Kopete::UI::ListView::ListView::scrollHide | ( | ) | const |
| 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 | ) |
| 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] |
| bool Kopete::UI::ListView::ListView::smoothScrolling | ( | ) | const |
| double Kopete::UI::ListView::ListView::smoothScrollingTimerInterval | ( | ) | const |
| 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:
KDE 4.2 API Reference