swh:1:snp:3cba5856b0ddc3feab6c3c2d096d614b02c883ec
Tip revision: 6d01a8e004c5faf2d0b2c3b7c0645ce3726181b6 authored by Brad King on 30 September 2019, 18:01:30 UTC
CMake 3.14.7
CMake 3.14.7
Tip revision: 6d01a8e
qtwrappingmain.cxx
#include "qtwrapping.h"
#include <qapplication.h>
#ifndef _WIN32
# include <stdio.h>
# include <stdlib.h>
#endif
int main(int argc, char* argv[])
{
#ifndef _WIN32
const char* display = getenv("DISPLAY");
if (display && strlen(display) > 0) {
#endif
QApplication app(argc, argv);
qtwrapping qtw;
app.setMainWidget(&qtw);
#ifndef _WIN32
} else {
printf("Environment variable DISPLAY is not set. I will pretend like the "
"test passed, but you should really set it.\n");
}
#endif
return 0;
}