Qt Graphical Objects & Multi-Thread
Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Updater Class Reference

This separated thread updates regularly the position drawn towards the aimed one, either directly (if BUGGY is defined) or through a signal (by default). More...

#include <WidgetUpdate.hpp>

Inheritance diagram for Updater:
Inheritance graph
[legend]
Collaboration diagram for Updater:
Collaboration graph
[legend]

Signals

void updatePosRequest (const int dist)
 Sends a signal to ask for an update of the widget. More...
 

Public Member Functions

 Updater ()
 The thread's constructor. More...
 
void stop ()
 Stops the thread. More...
 

Private Member Functions

void run ()
 The main method of this thread. More...
 

Private Attributes

bool still_running
 Should the thread continue to run? More...
 

Detailed Description

This separated thread updates regularly the position drawn towards the aimed one, either directly (if BUGGY is defined) or through a signal (by default).

Definition at line 65 of file WidgetUpdate.hpp.

Constructor & Destructor Documentation

Updater::Updater ( )
inline

The thread's constructor.

Definition at line 83 of file WidgetUpdate.hpp.

Member Function Documentation

void Updater::run ( )
private

The main method of this thread.

Definition at line 17 of file WidgetUpdate.cpp.

void Updater::stop ( )
inline

Stops the thread.

Definition at line 88 of file WidgetUpdate.hpp.

void Updater::updatePosRequest ( const int  dist)
signal

Sends a signal to ask for an update of the widget.

Parameters
distThe number of pixels of the motion in the update.

Member Data Documentation

bool Updater::still_running
private

Should the thread continue to run?

Definition at line 72 of file WidgetUpdate.hpp.


The documentation for this class was generated from the following files: