MSVC warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-03-18 10:36:16 +02:00
parent 511cc14400
commit 2bdfc59c21
2 changed files with 6 additions and 6 deletions

View File

@ -46,7 +46,7 @@ FancyTab::FancyTab(QWidget *tabbar)
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
float FancyTab::fader() double FancyTab::fader()
{ {
return m_Fader; return m_Fader;
} }
@ -70,7 +70,7 @@ void FancyTab::fadeOut()
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void FancyTab::setFader(float value) void FancyTab::setFader(double value)
{ {
m_Fader = value; m_Fader = value;
m_TabBar->update(); m_TabBar->update();

View File

@ -38,12 +38,12 @@ class FancyTab : public QObject
friend class FancyTabBar; friend class FancyTabBar;
Q_OBJECT Q_OBJECT
Q_PROPERTY(float fader READ fader WRITE setFader) Q_PROPERTY(double fader READ fader WRITE setFader)
public: public:
explicit FancyTab(QWidget *tabbar); explicit FancyTab(QWidget *tabbar);
float fader(); double fader();
void setFader(float value); void setFader(double value);
void fadeIn(); void fadeIn();
void fadeOut(); void fadeOut();
@ -56,7 +56,7 @@ private:
bool m_enabled; bool m_enabled;
QPropertyAnimation m_Animator; QPropertyAnimation m_Animator;
QWidget *m_TabBar; QWidget *m_TabBar;
float m_Fader; double m_Fader;
}; };
#endif // FANCYTAB_H #endif // FANCYTAB_H