fix todos and cleanup names

This commit is contained in:
Atul R 2019-06-06 16:15:15 +02:00
parent eaa9c55390
commit 99b73ed46d
3 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"includes": [
"./config/application.gypi",
"./config/moc.gypi",
'./config/yoga.gypi'
'./config/deps.gypi'
],
"targets": []
}

View File

@ -1,6 +1,7 @@
{
"includes": [],
"target_defaults": {
"include_dirs": ['../deps/'],
"sources": [
"../deps/yoga/Yoga.cpp",
"../deps/yoga/YGValue.cpp",

View File

@ -102,7 +102,7 @@ void FlexLayout::setGeometry(const QRect &rect)
}
int availableWidth = rect.width();
int availableHeight = rect.height();
YGDirection direction = YGDirection::YGDirectionLTR; //TODO
YGDirection direction = YGNodeStyleGetDirection(this->node);
YGNodeCalculateLayout(this->node,availableWidth,availableHeight,direction);
uint count = YGNodeGetChildCount(this->node);