mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
refs #643, moved aircraft model icon loading to model class
* removed iconForModel from interface and aircraft config parser * CPixmap support for loading pixmap from file * Access to model of model set loader by model string * icon path as member of CAircraftModel
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "blackmiscexport.h"
|
||||
#include "valueobject.h"
|
||||
#include "statusmessage.h"
|
||||
#include <QPixmap>
|
||||
#include <QReadWriteLock>
|
||||
|
||||
@@ -51,6 +52,9 @@ namespace BlackMisc
|
||||
//! \copydoc BlackMisc::Mixin::String::toQString
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
//! Load from file
|
||||
static CPixmap loadFromFile(const QString &filePath, CStatusMessage &msg);
|
||||
|
||||
private:
|
||||
//! Init the byte array with data
|
||||
void fillByteArray();
|
||||
|
||||
Reference in New Issue
Block a user