summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/resourcetester.cpp
blob: 43314e1f83edd0aa3c24a1beee44453ae74bef31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#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);

  QTimer::singleShot(0, qApp, SLOT(quit()));
}