Files
QtZeiterfassung/eventloopwithstatus.cpp
T

25 lines
416 B
C++
Raw Permalink Normal View History

2017-12-02 10:50:30 +01:00
#include "eventloopwithstatus.h"
EventLoopWithStatus::EventLoopWithStatus(QObject *parent) :
QEventLoop(parent)
{
}
bool EventLoopWithStatus::success() const
{
return m_success;
}
const QString &EventLoopWithStatus::message() const
{
return m_message;
}
void EventLoopWithStatus::quitWithStatus(bool success, const QString &message)
{
m_success = success;
m_message = message;
quit();
}