Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

KDChartSignalCompressor.cpp

Go to the documentation of this file.
00001 #include "KDChartSignalCompressor.h"
00002 
00003 using namespace KDChart;
00004 
00005 SignalCompressor::SignalCompressor( QObject* receiver, const char* signal,
00006                                     QObject* parent )
00007     : QObject( parent )
00008 {
00009     connect( this, SIGNAL( finallyEmit() ), receiver, signal );
00010     connect( &m_timer, SIGNAL( timeout() ), SLOT( nowGoAlready() ) );
00011     m_timer.setSingleShot( true );
00012     // m_timer.setIntervall( 0 ); // default, just to know...
00013 }
00014 
00015 void SignalCompressor::emitSignal()
00016 {
00017     if ( !m_timer.isActive() ) m_timer.start();
00018 }
00019 
00020 void SignalCompressor::nowGoAlready()
00021 {
00022     emit finallyEmit();
00023 }
00024 
00025 
00026 
00027 

Generated on Thu May 10 11:06:25 2007 for KD Chart 2 by doxygen 1.3.6