No need for property animator on OSX

This commit is contained in:
craig.p.drummond
2014-09-19 16:42:59 +00:00
parent 164f1db49b
commit 4f06ef2c30
2 changed files with 7 additions and 1 deletions

View File

@@ -280,25 +280,29 @@ FancyTab::FancyTab(FancyTabBar* tabbar)
{
#ifndef Q_OS_MAC
animator.setPropertyName("fader");
#endif
animator.setTargetObject(this);
#endif
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
}
void FancyTab::fadeIn()
{
#ifndef Q_OS_MAC
animator.stop();
animator.setDuration(80);
animator.setEndValue(50);
animator.start();
#endif
}
void FancyTab::fadeOut()
{
#ifndef Q_OS_MAC
animator.stop();
animator.setDuration(160);
animator.setEndValue(0);
animator.start();
#endif
}
void FancyTab::setFader(float value)