kopete/libkopete
#include <kopetelistview.h>
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
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.
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.
|
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
-
interval is the interval in ms.
Definition at line 317 of file kopetelistview.cpp.
|
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.
|
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.
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.