Skip to content

Commit 504657e

Browse files
author
Éric Lemoine
committedSep 11, 2018
Add docs for more QgsMessageLogConsole methods
1 parent 212a74c commit 504657e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎python/core/auto_generated/qgsmessagelog.sip.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ be the right choice for apps without GUI.
115115
#include "qgsmessagelog.h"
116116
%End
117117
public:
118+
118119
QgsMessageLogConsole();
120+
%Docstring
121+
Constructor for QgsMessageLogConsole.
122+
%End
119123

120124
protected:
121125

@@ -129,7 +133,15 @@ Format a log message. Used by child classes.
129133
%End
130134

131135
public slots:
136+
132137
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
138+
%Docstring
139+
Log a message to stderr.
140+
141+
:param message: the message to format
142+
:param tag: the tag of the message
143+
:param level: the log level of the message
144+
%End
133145
};
134146

135147
/************************************************************************

‎src/core/qgsmessagelog.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
138138
Q_OBJECT
139139

140140
public:
141+
142+
/**
143+
* Constructor for QgsMessageLogConsole.
144+
*/
141145
QgsMessageLogConsole();
142146

143147
protected:
@@ -152,6 +156,14 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
152156
QString formatLogMessage( const QString &message, const QString &tag, Qgis::MessageLevel level = Qgis::Info ) const;
153157

154158
public slots:
159+
160+
/**
161+
* Log a message to stderr.
162+
*
163+
* \param message the message to format
164+
* \param tag the tag of the message
165+
* \param level the log level of the message
166+
*/
155167
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
156168
};
157169

0 commit comments

Comments
 (0)