~ubuntu-branches/ubuntu/maverick/qgo/maverick

« back to all changes in this revision

Viewing changes to src/msg_handler.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2005-01-01 23:07:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050101230710-fhng6yidm47xlb2i
Tags: upstream-1.0.0-r2
ImportĀ upstreamĀ versionĀ 1.0.0-r2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
*   msg_handler.cpp
 
3
*/
 
4
 
 
5
#include "msg_handler.h"
 
6
 
 
7
#ifdef OWN_DEBUG_MODE
 
8
void myMessageHandler(QtMsgType type, const char *msg)
 
9
{
 
10
        switch (type)
 
11
        {
 
12
        case QtDebugMsg:                view->append((QString) "Debug: " + (QString) msg + (QString) "\n");
 
13
                break;
 
14
        case QtWarningMsg:      view->append((QString) "Warning: " + (QString) msg + (QString) "\n");
 
15
                break;
 
16
        case QtFatalMsg:                view->append((QString) "Fatal: " + (QString) msg + (QString) "\n");
 
17
                break;
 
18
        }
 
19
}
 
20
#endif