Subversion Repositories public iLand

Rev

Rev 679 | Rev 760 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 679 Rev 704
Line 120... Line 120...
120
void ConsoleShell::runYear(int year)
120
void ConsoleShell::runYear(int year)
121
{
121
{
122
    printf("simulating year %d ...\n", year-1);
122
    printf("simulating year %d ...\n", year-1);
123
}
123
}
124
124
-
 
125
QMutex qdebug_mutex;
125
void myMessageOutput(QtMsgType type, const char *msg)
126
void myMessageOutput(QtMsgType type, const char *msg)
126
 {
127
 {
127
128
128
    //QMutexLocker m(&qdebug_mutex);
-
 
-
 
129
    QMutexLocker m(&qdebug_mutex);
129
    switch (type) {
130
    switch (type) {
130
     case QtDebugMsg:
131
     case QtDebugMsg:
131
        *ConsoleShell::logStream() << msg << endl;
132
        *ConsoleShell::logStream() << msg << endl;
132
         break;
133
         break;
133
     case QtWarningMsg:
134
     case QtWarningMsg: