blob: 042288b60d78e3354e8c7a2d193d698ba000fdbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <QImage>
#include <QFile>
#include <QString>
int main(int argc, char **argv) {
#ifndef UNITY_BUILD
Q_INIT_RESOURCE(stuff3);
Q_INIT_RESOURCE(stuff4);
#endif
QImage img1(":/thing.png");
if(img1.width() != 640) {
return 1;
}
QImage img2(":/thing4.png");
if(img2.width() != 640) {
return 1;
}
QFile file(":/txt_resource.txt");
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
return 1;
QString line = file.readLine();
if(line.compare("Hello World"))
return 1;
return 0;
}
|