mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
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:
committed by
Mat Sutcliffe
parent
91050e198c
commit
02f638501e
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user