You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
502 B
27 lines
502 B
11 years ago
|
|
||
|
#include "resourcetester.h"
|
||
|
|
||
|
#include <QApplication>
|
||
9 years ago
|
#include <QDebug>
|
||
11 years ago
|
#include <QFile>
|
||
|
#include <QTimer>
|
||
|
|
||
9 years ago
|
ResourceTester::ResourceTester(QObject* parent)
|
||
11 years ago
|
: QObject(parent)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void ResourceTester::doTest()
|
||
|
{
|
||
|
if (!QFile::exists(":/CMakeLists.txt"))
|
||
9 years ago
|
qApp->exit(EXIT_FAILURE);
|
||
10 years ago
|
if (!QFile::exists(":/main.cpp"))
|
||
9 years ago
|
qApp->exit(EXIT_FAILURE);
|
||
10 years ago
|
#ifdef TEST_DEBUG_CLASS
|
||
|
if (!QFile::exists(":/debug_class.ui"))
|
||
9 years ago
|
qApp->exit(EXIT_FAILURE);
|
||
10 years ago
|
#endif
|
||
11 years ago
|
|
||
|
QTimer::singleShot(0, qApp, SLOT(quit()));
|
||
|
}
|