// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>

meta("library", "QT");

function getVersion() {
    var current = MACH.getLibraryCurrentVersion("QtCore");

    return ((current >> 16) & 0xFF) + "." + ((current >> 8) & 0xFF) + "." + (current & 0xFF);
}

function detect() {
    if (MACH.isLibraryPresent("QtCore")) {
        sVersion = getVersion();
        bDetected = true;
    }

    return result();
}