#include "TQRootApplication.h"
#include "TSystem.h"
bool TQRootApplication::fgDebug=kFALSE;
bool TQRootApplication::fgWarning=kFALSE;
ClassImp(TQRootApplication)
void qMessageOutput( QtMsgType type, const char *msg )
{
switch ( type ) {
case QtDebugMsg:
if(TQRootApplication::fgDebug)
fprintf( stderr, "QtRoot-Debug: \n %s\n", msg );
break;
case QtWarningMsg:
if(TQRootApplication::fgWarning)
fprintf( stderr, "QtRoot-Warning: \n %s\n", msg );
break;
case QtFatalMsg:
fprintf( stderr, "QtRoot-Fatal: \n %s\n", msg );
abort();
}
}
TQRootApplication::TQRootApplication(int argc, char **argv, int poll):QApplication(argc,argv)
{
if (poll == 0) {
QTimer *fQTimer= new QTimer( this );
QObject::connect( fQTimer, SIGNAL(timeout()),this, SLOT(Execute()) );
fQTimer->start( 20, FALSE );
fRTimer = new TTimer(20);
fRTimer->Start(20, kFALSE);
}
fgWarning=fgDebug=kFALSE;
qInstallMsgHandler( qMessageOutput );
}
TQRootApplication::~TQRootApplication()
{
}
void TQRootApplication::Execute()
{
gSystem->InnerLoop();
}
void TQRootApplication::Quit()
{
gSystem->Exit( 0 );
}
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.