mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
Fix weak vtables
This commit is contained in:
@@ -25,6 +25,8 @@ namespace BlackGui
|
||||
class BLACKGUI_EXPORT CDbMappingComponentAware
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
//! Set the corresponding component
|
||||
virtual void setMappingComponent(CDbMappingComponent *component);
|
||||
|
||||
@@ -35,6 +37,9 @@ namespace BlackGui
|
||||
//! Constructor
|
||||
CDbMappingComponentAware(QObject *parent);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CDbMappingComponentAware() {}
|
||||
|
||||
private :
|
||||
CDbMappingComponent *m_mappingComponent = nullptr; //!< reference to component
|
||||
};
|
||||
|
||||
@@ -63,6 +63,9 @@ namespace BlackGui
|
||||
//! \remarks Normally the info area will be provided later \sa setParentDockWidgetInfoArea
|
||||
CEnableForDockWidgetInfoArea(CDockWidgetInfoArea *parentInfoArea = nullptr);
|
||||
|
||||
// Destructor
|
||||
virtual ~CEnableForDockWidgetInfoArea() {}
|
||||
|
||||
private:
|
||||
BlackGui::CDockWidgetInfoArea *m_parentDockableInfoArea = nullptr; //!< my parent dockable widget
|
||||
BlackMisc::CConnectionGuard m_connections;
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace BlackGui
|
||||
CDropBase::CDropBase()
|
||||
{ }
|
||||
|
||||
CDropBase::~CDropBase()
|
||||
{ }
|
||||
|
||||
void CDropBase::setAcceptedMetaTypeIds(const QList<int> &ids)
|
||||
{
|
||||
m_acceptedMetaTypes = ids;
|
||||
|
||||
@@ -24,6 +24,9 @@ namespace BlackGui
|
||||
class BLACKGUI_EXPORT CDropBase
|
||||
{
|
||||
public:
|
||||
//! Dtor
|
||||
virtual ~CDropBase();
|
||||
|
||||
//! Accepted ids
|
||||
void setAcceptedMetaTypeIds(const QList<int> &ids);
|
||||
|
||||
@@ -48,9 +51,6 @@ namespace BlackGui
|
||||
//! Mime data to CVariant (normally encapsulating a value object)
|
||||
BlackMisc::CVariant toCVariant(const QMimeData *mime) const;
|
||||
|
||||
//! Dtor
|
||||
virtual ~CDropBase() {}
|
||||
|
||||
protected:
|
||||
//! Ctor
|
||||
CDropBase();
|
||||
|
||||
@@ -34,6 +34,9 @@ namespace BlackGui
|
||||
{
|
||||
namespace Menus
|
||||
{
|
||||
void IAircraftModelViewMenu::anchor()
|
||||
{ }
|
||||
|
||||
const CLogCategoryList &IAircraftModelViewMenu::getLogCategories()
|
||||
{
|
||||
static const CLogCategoryList cats { CLogCategory::guiComponent() };
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace BlackGui
|
||||
//! Menu base class for aircraft model view menus
|
||||
class IAircraftModelViewMenu : public IMenuDelegate
|
||||
{
|
||||
virtual void anchor();
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
IAircraftModelViewMenu(BlackGui::Views::CAircraftModelView *modelView, bool separator = true) :
|
||||
|
||||
Reference in New Issue
Block a user