mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2024-11-15 13:35:44 +08:00
fixup! Fix warnings
This commit is contained in:
parent
b2ad2e287b
commit
300d50945c
@ -826,7 +826,7 @@ Q_OBJECT
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit QtAwesome(QObject *parent = nullptr);
|
explicit QtAwesome(QObject *parent = QTAWESOME_NULL);
|
||||||
virtual ~QtAwesome();
|
virtual ~QtAwesome();
|
||||||
|
|
||||||
void init( const QString& fontname );
|
void init( const QString& fontname );
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
QtAwesomeAnimation::QtAwesomeAnimation(QWidget *parentWidget, int interval, int step)
|
QtAwesomeAnimation::QtAwesomeAnimation(QWidget *parentWidget, int interval, int step)
|
||||||
: parentWidgetRef_( parentWidget )
|
: parentWidgetRef_( parentWidget )
|
||||||
, timer_( nullptr )
|
, timer_( QTAWESOME_NULL )
|
||||||
, interval_( interval )
|
, interval_( interval )
|
||||||
, step_( step )
|
, step_( step )
|
||||||
, angle_( 0.0f )
|
, angle_( 0.0f )
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
#ifndef QTAWESOMEANIMATION_H
|
#ifndef QTAWESOMEANIMATION_H
|
||||||
#define QTAWESOMEANIMATION_H
|
#define QTAWESOMEANIMATION_H
|
||||||
|
|
||||||
|
#if __cplusplus <= 199711L
|
||||||
|
#define QTAWESOME_NULL NULL
|
||||||
|
#else
|
||||||
|
#define QTAWESOME_NULL nullptr
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
class QPainter;
|
class QPainter;
|
||||||
|
Loading…
Reference in New Issue
Block a user