Logo Search packages:      
Sourcecode: kmess version File versions  Download package

void ChatMessageView::scrollChat ( bool  forward,
bool  fast 
) [slot]

Scroll forward or backward within the chat browser.

The parameter controls the amount and direction of the scrolling operation. A forward argument set to true moves the chat viewport down, a false one goes back in the chat history. If argument fast is true, the movement goes twice as far than with the same argument set to false.

Parameters:
forwardWhether to scroll forward or backward in the chat history
fastWhether to scroll at normal speed or faster

Definition at line 600 of file chatmessageview.cpp.

{
  view()->scrollBy( 0, ( forward ? +1 : -1 ) * view()->visibleHeight() / ( fast ? 1 : 2 ) );
}

Generated by  Doxygen 1.6.0   Back to index