2002-09-12 00:41:11 +04:00
|
|
|
#include <qapplication.h>
|
|
|
|
#include "qtwrapping.h"
|
|
|
|
|
2003-04-02 18:01:33 +04:00
|
|
|
#ifndef _WIN32
|
|
|
|
# include <stdlib.h>
|
|
|
|
# include <stdio.h>
|
|
|
|
#endif
|
|
|
|
|
2002-09-12 00:41:11 +04:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2003-04-02 18:01:33 +04:00
|
|
|
#ifndef _WIN32
|
|
|
|
const char* display = getenv("DISPLAY");
|
|
|
|
if ( display && strlen(display)>0 )
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
QApplication app(argc,argv);
|
2002-09-12 00:41:11 +04:00
|
|
|
|
2003-04-02 18:01:33 +04:00
|
|
|
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
|
2002-09-12 00:41:11 +04:00
|
|
|
|
2003-04-02 18:01:33 +04:00
|
|
|
return 0;
|
2002-09-12 00:41:11 +04:00
|
|
|
}
|