view Utils/LogEvent.cpp @ 14:e47e0f59101d default tip

Enable OSTC 4/5 Icon option The button for uploading the icon is now activated based on the first FW version supporting this function
author Ideenmodellierer
date Mon, 12 Jan 2026 18:47:00 +0100
parents 0b3630a29ad8
children
line wrap: on
line source

/////////////////////////////////////////////////////////////////////////////
/// \file   LogEvent.cpp
/// \brief  User event to pass async messages to the console widget.
/// \author JD Gascuel.
/// \copyright (c) 2015 JD Gascuel. All rights reserved.
/// $Id$
///////////////////////////////////////////////////////////////////////////////

#include "LogEvent.h"
#include <QEvent>

//////////////////////////////////////////////////////////////////////////////

QEvent::Type LogEvent::_logEventType = QEvent::None;

//////////////////////////////////////////////////////////////////////////////

LogEvent::LogEvent(const QString& message)
  : QEvent(_logEventType),
    _message(message)
{
}

//////////////////////////////////////////////////////////////////////////////

LogEvent* LogEvent::make(const QString& message)
{
    if( _logEventType == QEvent::None )
        _logEventType = (QEvent::Type) QEvent::registerEventType();
    return new LogEvent(message);
}