summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_add_binary_resources_delayed_file/main.cpp
blob: b8b6ec77173fcfd569506086d77b24f7908d0c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2015 André Klitzing <aklitzing@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include <QFile>
#include <QResource>

int main(int argc, char **argv)
{
    if (QResource::registerResource("rcc_file.rcc") &&
        QFile::exists("://resource_file.txt") && QFile::exists("://resource_file_two.txt"))
    {
        QResource::unregisterResource("rcc_file.rcc");          // avoid leaks
        return 0;
    }

    return -1;
}