mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Fix a few warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
49cbfdd72d
commit
5bc91f00c5
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
void logMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||
{
|
||||
Q_UNUSED(context)
|
||||
MessageHandlerModel::self()->addLog(type, msg);
|
||||
}
|
||||
|
||||
|
@ -22,13 +23,14 @@ MessageHandlerModel * MessageHandlerModel::self()
|
|||
|
||||
MessageHandlerModel::MessageHandlerModel(QObject *parent)
|
||||
{
|
||||
Q_UNUSED(parent)
|
||||
// no more than one message handler.
|
||||
qInstallMessageHandler(logMessageHandler);
|
||||
}
|
||||
|
||||
int MessageHandlerModel::rowCount(const QModelIndex& parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
Q_UNUSED(parent)
|
||||
return m_data.size();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue