2013-09-15 16:41:07 +04:00
|
|
|
|
|
|
|
#include "resourcetester.h"
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QFile>
|
|
|
|
#include <QTimer>
|
|
|
|
|
|
|
|
ResourceTester::ResourceTester(QObject *parent)
|
|
|
|
: QObject(parent)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourceTester::doTest()
|
|
|
|
{
|
|
|
|
if (!QFile::exists(":/CMakeLists.txt"))
|
|
|
|
qApp->exit(EXIT_FAILURE);
|
2014-03-25 04:16:49 +04:00
|
|
|
if (!QFile::exists(":/main.cpp"))
|
|
|
|
qApp->exit(EXIT_FAILURE);
|
2013-09-15 16:41:07 +04:00
|
|
|
|
|
|
|
QTimer::singleShot(0, qApp, SLOT(quit()));
|
|
|
|
}
|