Ref T529, model loader improvements

* XP loader improved progress messages
* added LoadingFailed
* use "Qt::QueuedConnection" for CMultiAircraftModelLoaderProvider

In some cases the loading progress signal was not send properly changing to Qt::QueuedConnection has solved the issue
This commit is contained in:
Klaus Basan
2019-02-07 03:12:16 +01:00
committed by Mat Sutcliffe
parent 91050e198c
commit 02f638501e
3 changed files with 30 additions and 14 deletions

View File

@@ -71,11 +71,18 @@ namespace BlackMisc
//! Load mode
enum LoadFinishedInfo
{
CacheLoaded, //!< cache was loaded
ParsedData, //!< parsed data
LoadingSkipped //!< Loading skipped (empty directory)
CacheLoaded, //!< cache was loaded
ParsedData, //!< parsed data
LoadingSkipped, //!< loading skipped (empty directory)
LoadingFailed //!< loading failed
};
//! Loaded info
static bool isLoadedInfo(LoadFinishedInfo info)
{
return info == CacheLoaded || info == ParsedData;
}
//! Enum as string
static const QString &enumToString(LoadFinishedInfo info);