fix linux issues

This commit is contained in:
Atul
2019-06-19 00:27:24 +02:00
parent 47d5aa3ec1
commit 0beebabd10
3 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -17,10 +17,10 @@ YGSize extrautils::measureQtWidget (YGNodeRef node, float width, YGMeasureMode w
if(widget){
QSize size = widget->sizeHint();
return YGSize{
.height = static_cast<float>(size.height()),
.width = static_cast<float>(size.width())
width : static_cast<float>(size.width()),
height : static_cast<float>(size.height()),
};
}
}
return YGSize{ .height = 0, .width = 0 };
return YGSize{width : 0, height : 0};
}