Newer
Older
Pospelov, Gennady
committed
#include <iostream>
Mohammad Mahadi Hasan
committed
void messageHandler(QtMsgType type, const QMessageLogContext &, const QString &msg)
{
Q_UNUSED(type);
Q_UNUSED(msg);
}
Mohammad Mahadi Hasan
committed
if(!a.arguments().contains(QLatin1String("--with-debug"))) {
qInstallMessageHandler(messageHandler);
}
int time = 1000;
QTime dieTime = QTime::currentTime().addMSecs(1000);
QTime timer;
timer.start();
while( QTime::currentTime() < dieTime )
{
splash->setProgress(timer.elapsed()/(time/100));
QCoreApplication::processEvents( QEventLoop::AllEvents, 100 );
}
Pospelov, Gennady
committed
//#ifdef BORNAGAIN_CRASHHANDLER
// std::cout << "BORNAGAIN_CRASHHANDLER" << std::endl;
// StackTraceSetup s;
//#endif
// QVector<double> vector;
// double d = vector[0]+0.1;
// qDebug() << "main double:" << d;
Pospelov, Gennady
committed