xuetianweng created this revision. xuetianweng added reviewers: Plasma, rizzitello, davidedmundson, apol, mart. xuetianweng added a project: Plasma. Herald added a subscriber: plasma-devel. xuetianweng requested review of this revision.
REVISION SUMMARY Whenever qqc release a new version the version need to be updated. Otherwise the feature is not available to user. This change tries to use real qml code to detect the version by creating object until success, force to use a minimal qpa platform when running it. TEST PLAN Run the cmake under a env without display server and version is detected correctly. REPOSITORY R858 Qt Quick Controls 2: Desktop Style BRANCH master REVISION DETAIL https://phabricator.kde.org/D28859 AFFECTED FILES CMakeLists.txt detectqqc2version.qml To: xuetianweng, #plasma, rizzitello, davidedmundson, apol, mart Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart