kmail Library API Documentation

KCursorSaver Class Reference

sets a cursor and makes sure it's restored on destruction Create a KCursorSaver object when you want to set the cursor. As soon as it gets out of scope, it will restore the original cursor. More...

#include <kcursorsaver.h>

Inheritance diagram for KCursorSaver:

Qt List of all members.

Public Methods

 KCursorSaver (Qt::CursorShape shape)
 KCursorSaver (const KCursorSaver &rhs)
 ~KCursorSaver ()
void restoreCursor (void)

Protected Methods

void operator= (const KCursorSaver &rhs)

Detailed Description

sets a cursor and makes sure it's restored on destruction Create a KCursorSaver object when you want to set the cursor. As soon as it gets out of scope, it will restore the original cursor.

Definition at line 13 of file kcursorsaver.h.


Constructor & Destructor Documentation

KCursorSaver::KCursorSaver Qt::CursorShape    shape [inline]
 

constructor taking QCursor shapes.

Definition at line 17 of file kcursorsaver.h.

References QApplication::setOverrideCursor().

KCursorSaver::KCursorSaver const KCursorSaver &    rhs [inline]
 

copy constructor. The right side won't restore the cursor.

Definition at line 23 of file kcursorsaver.h.

KCursorSaver::~KCursorSaver   [inline]
 

restore the cursor.

Definition at line 28 of file kcursorsaver.h.

References QApplication::restoreOverrideCursor().


Member Function Documentation

void KCursorSaver::restoreCursor void    [inline]
 

call this to explitly restore the cursor.

Definition at line 34 of file kcursorsaver.h.

References QApplication::restoreOverrideCursor().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:35 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003