Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HdThread.cxx

Go to the documentation of this file.
00001 
00011 // inconsistent dll linkage
00012 #ifdef _MSC_VER
00013 #include "msdevstudio/MSconfig.h"
00014 #endif
00015 
00016 #include "HdThread.h"
00017 
00018 #include "QtApp.h"
00019 
00020 #include <iostream>
00021 
00022 HdThread::HdThread ( )
00023   : QThread ()
00024 {
00025 }
00026 
00027 HdThread::~HdThread ()
00028 {
00029 }
00030 
00031 void HdThread::run ()
00032 {
00033   static int argc = 1;
00034   static char * argv[1];
00035   argv[0] = "HippoDraw";
00036 
00037   QtApp app ( argc, argv );
00038   app.setFirstWindow();
00039 
00040   try {
00041     app.exec ();
00042   }
00043   catch ( std::exception & e ) {
00044     std::cout << e.what()
00045               << std::endl;
00046   }
00047 }

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3