Skip to content
Snippets Groups Projects
Commit 1a498a98 authored by Prince Gupta's avatar Prince Gupta :speech_balloon: Committed by Hugo Beauzée-Luyssen
Browse files

qml: implement Helpers.isInteger

parent f6f4339c
No related branches found
No related tags found
1 merge request!1876qml: use async api to query data for context menu handling
......@@ -72,3 +72,7 @@ function contains(rect, pos) {
return (clamp(pos.x, rect.x, rect.x + rect.width) === pos.x)
&& (clamp(pos.y, rect.y, rect.y + rect.height) === pos.y)
}
function isInteger(data) {
return (typeof data === 'number' && (data % 1) === 0)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment