mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #618, some functions consolidated as result of reviews in previous step (removed const/const signatures)
This commit is contained in:
@@ -155,12 +155,7 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
const CAircraftModelView *CDbAutoStashingComponent::currentModelView() const
|
||||
{
|
||||
return this->getMappingComponent()->currentModelView();
|
||||
}
|
||||
|
||||
CAircraftModelView *CDbAutoStashingComponent::currentModelView()
|
||||
CAircraftModelView *CDbAutoStashingComponent::currentModelView() const
|
||||
{
|
||||
return this->getMappingComponent()->currentModelView();
|
||||
}
|
||||
|
||||
@@ -79,10 +79,7 @@ namespace BlackGui
|
||||
int getSelectedOrAllCount() const;
|
||||
|
||||
//! Model view to take models from
|
||||
const BlackGui::Views::CAircraftModelView *currentModelView() const;
|
||||
|
||||
//! Model view to take models from
|
||||
BlackGui::Views::CAircraftModelView *currentModelView();
|
||||
BlackGui::Views::CAircraftModelView *currentModelView() const;
|
||||
|
||||
//! Add a status message
|
||||
void addStatusMessage(const BlackMisc::CStatusMessage &msg);
|
||||
|
||||
@@ -125,12 +125,7 @@ namespace BlackGui
|
||||
return this->ui->tvp_StashAircraftModels->removeModelsWithModelString(modelStrings);
|
||||
}
|
||||
|
||||
const Views::CAircraftModelView *CDbStashComponent::getView() const
|
||||
{
|
||||
return ui->tvp_StashAircraftModels;
|
||||
}
|
||||
|
||||
Views::CAircraftModelView *CDbStashComponent::getView()
|
||||
Views::CAircraftModelView *CDbStashComponent::getView() const
|
||||
{
|
||||
return ui->tvp_StashAircraftModels;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include "blackgui/components/enablefordockwidgetinfoarea.h"
|
||||
#include "blackgui/components/dbmappingcomponentaware.h"
|
||||
#include "blackgui/menudelegate.h"
|
||||
#include "blackgui/views/aircraftmodelview.h"
|
||||
#include "blackmisc/verify.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
@@ -25,6 +24,7 @@ namespace Ui { class CDbStashComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views { class CAircraftModelView; }
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
@@ -60,10 +60,7 @@ namespace BlackGui
|
||||
int unstashModels(QStringList modelStrings);
|
||||
|
||||
//! The embedded view
|
||||
const BlackGui::Views::CAircraftModelView *getView() const;
|
||||
|
||||
//! The embedded view
|
||||
Views::CAircraftModelView *getView();
|
||||
BlackGui::Views::CAircraftModelView *getView() const;
|
||||
|
||||
//! Has stashed models
|
||||
bool hasStashedModels() const;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace BlackGui
|
||||
{
|
||||
// we already have a value
|
||||
// changes should not happen
|
||||
Q_ASSERT(this->m_parentDockableInfoArea == parentDockableWidget);
|
||||
Q_ASSERT_X(this->m_parentDockableInfoArea == parentDockableWidget, Q_FUNC_INFO, "Reassigned parent dock widget area");
|
||||
return this->m_parentDockableInfoArea == parentDockableWidget;
|
||||
}
|
||||
|
||||
@@ -46,14 +46,7 @@ namespace BlackGui
|
||||
return true;
|
||||
}
|
||||
|
||||
const CInfoArea *CEnableForDockWidgetInfoArea::getParentInfoArea() const
|
||||
{
|
||||
Q_ASSERT(this->m_parentDockableInfoArea);
|
||||
if (!this->m_parentDockableInfoArea) return nullptr;
|
||||
return this->m_parentDockableInfoArea->getParentInfoArea();
|
||||
}
|
||||
|
||||
CInfoArea *CEnableForDockWidgetInfoArea::getParentInfoArea()
|
||||
CInfoArea *CEnableForDockWidgetInfoArea::getParentInfoArea() const
|
||||
{
|
||||
Q_ASSERT(this->m_parentDockableInfoArea);
|
||||
if (!this->m_parentDockableInfoArea) return nullptr;
|
||||
|
||||
@@ -29,10 +29,7 @@ namespace BlackGui
|
||||
{
|
||||
public:
|
||||
//! Corresponding dockable widget in info area
|
||||
BlackGui::CDockWidgetInfoArea *getDockWidgetInfoArea() { return m_parentDockableInfoArea; }
|
||||
|
||||
//! Corresponding dockable widget in info area
|
||||
const BlackGui::CDockWidgetInfoArea *getDockWidgetInfoArea() const { return m_parentDockableInfoArea; }
|
||||
BlackGui::CDockWidgetInfoArea *getDockWidgetInfoArea() const { return m_parentDockableInfoArea; }
|
||||
|
||||
//! Has dock area?
|
||||
bool hasDockWidgetArea() const { return m_parentDockableInfoArea; }
|
||||
@@ -42,10 +39,7 @@ namespace BlackGui
|
||||
virtual bool setParentDockWidgetInfoArea(BlackGui::CDockWidgetInfoArea *parentDockableWidget);
|
||||
|
||||
//! The parent info area
|
||||
const CInfoArea *getParentInfoArea() const;
|
||||
|
||||
//! The parent info area
|
||||
CInfoArea *getParentInfoArea();
|
||||
CInfoArea *getParentInfoArea() const;
|
||||
|
||||
//! Is the parent dockable widget floating?
|
||||
bool isParentDockWidgetFloating() const;
|
||||
|
||||
Reference in New Issue
Block a user