Merge pull request #1509 from Fizztastic/1505_fix

Fix library, grave, exile crash on windows
This commit is contained in:
ctrlaltca 2015-09-12 23:38:22 +02:00
commit d5afd97ff4

View file

@ -141,12 +141,7 @@ void ZoneViewWidget::moveEvent(QGraphicsSceneMoveEvent * /* event */)
if(!scene())
return;
static int titleBarHeight = 0;
if(titleBarHeight == 0)
{
QStyleOptionTitleBar so;
titleBarHeight = style()->pixelMetric(QStyle::PM_TitleBarHeight, &so, (QWidget*) this);
}
int titleBarHeight = 24;
QPointF scenePos = pos();