SkyGui.cpp   SkyGui.cpp 
skipping to change at line 242 skipping to change at line 242
animBottomBarTimeLine->setDirection(QTimeLine::Forward); animBottomBarTimeLine->setDirection(QTimeLine::Forward);
animBottomBarTimeLine->start(); animBottomBarTimeLine->start();
} }
if (autoHideHorizontalButtonBar && (x>maxX+30 || y<maxY-30) && animB ottomBarTimeLine->state()==QTimeLine::NotRunning && animBottomBarTimeLine-> currentValue()>=0.9999999) if (autoHideHorizontalButtonBar && (x>maxX+30 || y<maxY-30) && animB ottomBarTimeLine->state()==QTimeLine::NotRunning && animBottomBarTimeLine-> currentValue()>=0.9999999)
{ {
animBottomBarTimeLine->setDirection(QTimeLine::Backward); animBottomBarTimeLine->setDirection(QTimeLine::Backward);
animBottomBarTimeLine->start(); animBottomBarTimeLine->start();
} }
} }
// Used to recompute the bars position when we toggle the gui off and on.
// This was not necessary with Qt < 5.4. So it might be a bug.
QVariant SkyGui::itemChange(GraphicsItemChange change, const QVariant & val
ue)
{
#if QT_VERSION > QT_VERSION_CHECK(5, 5, 0)
#warning Please test if this code is still needed.
#endif
if (change == QGraphicsItem::ItemVisibleHasChanged && value.toBool()
)
updateBarsPos();
return QGraphicsItem::itemChange(change, value);
}
int SkyGui::getSkyGuiWidth() const int SkyGui::getSkyGuiWidth() const
{ {
return geometry().width(); return geometry().width();
} }
int SkyGui::getSkyGuiHeight() const int SkyGui::getSkyGuiHeight() const
{ {
return geometry().height(); return geometry().height();
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/