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:
|
||||
|
||||
explicit QtAwesome(QObject *parent = nullptr);
|
||||
explicit QtAwesome(QObject *parent = QTAWESOME_NULL);
|
||||
virtual ~QtAwesome();
|
||||
|
||||
void init( const QString& fontname );
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
QtAwesomeAnimation::QtAwesomeAnimation(QWidget *parentWidget, int interval, int step)
|
||||
: parentWidgetRef_( parentWidget )
|
||||
, timer_( nullptr )
|
||||
, timer_( QTAWESOME_NULL )
|
||||
, interval_( interval )
|
||||
, step_( step )
|
||||
, angle_( 0.0f )
|
||||
|
@ -1,6 +1,12 @@
|
||||
#ifndef QTAWESOMEANIMATION_H
|
||||
#define QTAWESOMEANIMATION_H
|
||||
|
||||
#if __cplusplus <= 199711L
|
||||
#define QTAWESOME_NULL NULL
|
||||
#else
|
||||
#define QTAWESOME_NULL nullptr
|
||||
#endif
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class QPainter;
|
||||
|
Loading…
Reference in New Issue
Block a user