mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
Formatting and fixed dropbase (unimplemented function)
This commit is contained in:
@@ -33,7 +33,6 @@ namespace BlackCore
|
|||||||
//! \copydoc BlackMisc::CSettingTrait::isValid
|
//! \copydoc BlackMisc::CSettingTrait::isValid
|
||||||
static bool isValid(const BlackMisc::Audio::Settings::CSettingsAudio &value) { Q_UNUSED(value); return true; }
|
static bool isValid(const BlackMisc::Audio::Settings::CSettingsAudio &value) { Q_UNUSED(value); return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
} // ns
|
} // ns
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -23,9 +23,6 @@ namespace BlackGui
|
|||||||
class BLACKGUI_EXPORT CDropBase
|
class BLACKGUI_EXPORT CDropBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! Set text for drop site
|
|
||||||
void setInfoText(const QString &dropSiteText);
|
|
||||||
|
|
||||||
//! Accepted ids
|
//! Accepted ids
|
||||||
void setAcceptedMetaTypeIds(const QList<int> &ids);
|
void setAcceptedMetaTypeIds(const QList<int> &ids);
|
||||||
|
|
||||||
@@ -38,15 +35,15 @@ namespace BlackGui
|
|||||||
//! Drop allowed
|
//! Drop allowed
|
||||||
virtual void allowDrop(bool allowed);
|
virtual void allowDrop(bool allowed);
|
||||||
|
|
||||||
|
//! Accept drop?
|
||||||
|
bool acceptDrop(const QMimeData *mime) const;
|
||||||
|
|
||||||
//! Mime data to CVariant (normally encapsulating a value object)
|
//! Mime data to CVariant (normally encapsulating a value object)
|
||||||
BlackMisc::CVariant toCVariant(const QMimeData *mime) const;
|
BlackMisc::CVariant toCVariant(const QMimeData *mime) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
CDropBase();
|
CDropBase();
|
||||||
|
|
||||||
//! Accept drop
|
|
||||||
bool acceptDrop(const QMimeData *mime) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_allowDrop = true; //!< dropping allowed?
|
bool m_allowDrop = true; //!< dropping allowed?
|
||||||
QList<int> m_acceptedMetaTypes; //!< accepted meta types
|
QList<int> m_acceptedMetaTypes; //!< accepted meta types
|
||||||
|
|||||||
@@ -106,6 +106,9 @@ namespace BlackMisc
|
|||||||
//! Compare by index
|
//! Compare by index
|
||||||
int comparePropertyByIndex(const CAircraftModel &compareValue, const CPropertyIndex &index) const;
|
int comparePropertyByIndex(const CAircraftModel &compareValue, const CPropertyIndex &index) const;
|
||||||
|
|
||||||
|
//! \copydoc BlackMisc::Mixin::String::toQString
|
||||||
|
QString convertToQString(bool i18n = false) const;
|
||||||
|
|
||||||
//! Can be initialized from FSD
|
//! Can be initialized from FSD
|
||||||
bool canInitializeFromFsd() const;
|
bool canInitializeFromFsd() const;
|
||||||
|
|
||||||
@@ -284,9 +287,6 @@ namespace BlackMisc
|
|||||||
//! Validate
|
//! Validate
|
||||||
BlackMisc::CStatusMessageList validate(bool withNestedObjects) const;
|
BlackMisc::CStatusMessageList validate(bool withNestedObjects) const;
|
||||||
|
|
||||||
//! \copydoc BlackMisc::Mixin::String::toQString
|
|
||||||
QString convertToQString(bool i18n = false) const;
|
|
||||||
|
|
||||||
//! To database JSON
|
//! To database JSON
|
||||||
QJsonObject toDatabaseJson() const;
|
QJsonObject toDatabaseJson() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user