mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
30 lines
529 B
C++
30 lines
529 B
C++
#include <qapplication.h>
|
|
#include "qtwrapping.h"
|
|
|
|
#ifndef _WIN32
|
|
# include <stdlib.h>
|
|
# include <stdio.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;
|
|
}
|