Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlightGear/flightgear
/ jsonArrayToRect
Function
jsonArrayToRect
utils/fgqcanvas/jsonutils.cpp:26–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
25
26
QRect jsonArrayToRect(QJsonArray a)
27
{
28
if (a.size() < 4) {
29
return {};
30
}
31
32
return QRect(a[0].toInt(), a[1].toInt(),
33
a[2].toInt(), a[3].toInt());
34
}
Callers
3
restoreState
Method · 0.85
restoreState
Method · 0.85
restoreState
Method · 0.85
Calls
1
size
Method · 0.45
Tested by
no test coverage detected