mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #745, removed unused hover code
(this was a trial to highlight the drop position, the callback function was kept)
This commit is contained in:
@@ -465,6 +465,13 @@ namespace BlackMisc
|
||||
return this->m_modelType == TypeManuallySet && this->hasModelString();
|
||||
}
|
||||
|
||||
bool CAircraftModel::hasDescription(bool ignoreAutoGenerated) const
|
||||
{
|
||||
if (this->m_description.isEmpty()) { return false; }
|
||||
if (!ignoreAutoGenerated) { return true; }
|
||||
return (!this->getDescription().startsWith(autoGenerated(), Qt::CaseInsensitive));
|
||||
}
|
||||
|
||||
bool CAircraftModel::hasValidSimulator() const
|
||||
{
|
||||
return m_simulator.isAnySimulator();
|
||||
|
||||
@@ -305,7 +305,7 @@ namespace BlackMisc
|
||||
bool hasModelString() const { return !m_modelString.isEmpty(); }
|
||||
|
||||
//! Description
|
||||
bool hasDescription() const { return !m_description.isEmpty(); }
|
||||
bool hasDescription(bool ignoreAutoGenerated = false) const;
|
||||
|
||||
//! Valid simulator
|
||||
bool hasValidSimulator() const;
|
||||
|
||||
Reference in New Issue
Block a user