Rename RiaApplication::handleEvents -> invokeProcessEvents

This commit is contained in:
Gaute Lindkvist 2019-05-06 10:40:05 +02:00
parent 57b33b0d4c
commit 274dee70fa
6 changed files with 7 additions and 7 deletions

View File

@ -1163,7 +1163,7 @@ void RiaApplication::waitUntilCommandObjectsHasBeenProcessed()
while (!mutexLockedSuccessfully)
{
handleEvents();
invokeProcessEvents();
mutexLockedSuccessfully = m_commandQueueLock.tryLock();
}

View File

@ -182,7 +182,7 @@ public:
protected:
// Protected implementation specific overrides
virtual void handleEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents) = 0;
virtual void invokeProcessEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents) = 0;
virtual void onChangedActiveReservoirView() {}
virtual void onFileSuccessfullyLoaded(const QString& fileName, RiaDefines::ImportFileType fileType) {}
virtual void onProjectBeingOpened() {}

View File

@ -335,7 +335,7 @@ void RiaConsoleApplication::showErrorMessage(const QString& errMsg)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaConsoleApplication::handleEvents(QEventLoop::ProcessEventsFlags flags /*= QEventLoop::AllEvents*/)
void RiaConsoleApplication::invokeProcessEvents(QEventLoop::ProcessEventsFlags flags /*= QEventLoop::AllEvents*/)
{
processEvents(flags);
}

View File

@ -44,7 +44,7 @@ public:
protected:
// Protected implementation specific overrides
void handleEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents) override;
void invokeProcessEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents) override;
void onProjectOpeningError(const QString& errMsg) override;
void onProjectOpened();
void onProjectClosed();

View File

@ -1230,7 +1230,7 @@ void RiaGuiApplication::showErrorMessage(const QString& errMsg)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaGuiApplication::handleEvents(QEventLoop::ProcessEventsFlags flags)
void RiaGuiApplication::invokeProcessEvents(QEventLoop::ProcessEventsFlags flags)
{
processEvents(flags);
}
@ -1374,7 +1374,7 @@ void RiaGuiApplication::onProjectClosed()
void RiaGuiApplication::cleanupBeforeProgramExit()
{
closeAllWindows();
handleEvents();
invokeProcessEvents();
}
//--------------------------------------------------------------------------------------------------

View File

@ -135,7 +135,7 @@ public:
void cleanupBeforeProgramExit() override;
protected:
// Protected RiaApplication overrides
void handleEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents) override;
void invokeProcessEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents) override;
void onChangedActiveReservoirView() override;
void onFileSuccessfullyLoaded(const QString& fileName, RiaDefines::ImportFileType fileType) override;
void onProjectBeingOpened() override;