Move some constants from QML to C++