initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
39
libs/wxWidgets-3.3.1/include/wx/qt/private/timer.h
Normal file
39
libs/wxWidgets-3.3.1/include/wx/qt/private/timer.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/qt/timer.h
|
||||
// Author: Javier Torres
|
||||
// Copyright: (c) Javier Torres
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_QT_TIMER_H_
|
||||
#define _WX_QT_TIMER_H_
|
||||
|
||||
#if wxUSE_TIMER
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include "wx/private/timer.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxTimer
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class QTimerEvent;
|
||||
class WXDLLIMPEXP_CORE wxQtTimerImpl : public wxTimerImpl, QObject
|
||||
{
|
||||
public:
|
||||
wxQtTimerImpl( wxTimer* timer );
|
||||
|
||||
virtual bool Start( int millisecs = -1, bool oneShot = false ) override;
|
||||
virtual void Stop() override;
|
||||
virtual bool IsRunning() const override;
|
||||
|
||||
protected:
|
||||
virtual void timerEvent( QTimerEvent * event ) override;
|
||||
|
||||
private:
|
||||
int m_timerId;
|
||||
};
|
||||
|
||||
#endif // wxUSE_TIMER
|
||||
|
||||
#endif // _WX_QT_TIMER_H_
|
||||
Reference in New Issue
Block a user