STYLE: Nightly Version update
[cmake.git] / Tests / Wrapping / qtwrappingmain.cxx
blobfabecfc72017b3abbb9823a918d33d9badab83f5
1 #include <qapplication.h>
2 #include "qtwrapping.h"
4 #ifndef _WIN32
5 # include <stdlib.h>
6 # include <stdio.h>
7 #endif
9 int main(int argc, char *argv[])
11 #ifndef _WIN32
12 const char* display = getenv("DISPLAY");
13 if ( display && strlen(display)>0 )
15 #endif
16 QApplication app(argc,argv);
18 qtwrapping qtw;
19 app.setMainWidget(&qtw);
20 #ifndef _WIN32
22 else
24 printf("Environment variable DISPLAY is not set. I will pretend like the test passed, but you should really set it.\n");
26 #endif
28 return 0;