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