Skip to content

Commit

Permalink
register QgsMessageLog::MessageLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 29, 2013
1 parent dc728f6 commit a8b1db8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsmessagelog.cpp
Expand Up @@ -16,6 +16,7 @@
#include "qgsmessagelog.h"
#include <qgslogger.h>
#include <QDateTime>
#include <QMetaType>
#include <iostream>

class QgsMessageLogConsole;
Expand All @@ -31,7 +32,10 @@ QgsMessageLog::QgsMessageLog()
QgsMessageLog *QgsMessageLog::instance()
{
if ( !sInstance )
{
qRegisterMetaType<QgsMessageLog::MessageLevel>( "QgsMessageLog::MessageLevel" );
sInstance = new QgsMessageLog();
}

return sInstance;
}
Expand Down

0 comments on commit a8b1db8

Please sign in to comment.