refs #640, renamed allowDragDrop and const

This commit is contained in:
Klaus Basan
2016-04-18 23:34:23 +02:00
parent c42df3ed4d
commit 87abbf975b
8 changed files with 9 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ namespace BlackGui
this->ui->tvp_AircraftIcao->setResizeMode(CAircraftIcaoCodeView::ResizingOff);
connect(this->ui->tvp_AircraftIcao, &CAircraftIcaoCodeView::requestNewBackendData, this, &CDbAircraftIcaoComponent::ps_reload);
this->ui->tvp_AircraftIcao->allowDragDropValueObjects(true, false);
this->ui->tvp_AircraftIcao->allowDragDrop(true, false);
this->ui->tvp_AircraftIcao->setFilterWidget(this->ui->filter_AircraftIcao);
connect(sGui->getWebDataServices(), &CWebDataServices::dataRead, this, &CDbAircraftIcaoComponent::ps_icaoRead);

View File

@@ -30,7 +30,7 @@ namespace BlackGui
this->setViewWithIndicator(this->ui->tvp_AirlineIcao);
this->ui->tvp_AirlineIcao->setResizeMode(CAirlineIcaoCodeView::ResizingOff);
this->ui->tvp_AirlineIcao->setResizeMode(CAirlineIcaoCodeView::ResizingOff);
this->ui->tvp_AirlineIcao->allowDragDropValueObjects(true, false);
this->ui->tvp_AirlineIcao->allowDragDrop(true, false);
this->ui->tvp_AirlineIcao->setFilterWidget(this->ui->filter_AirlineIcao);
connect(this->ui->tvp_AirlineIcao, &CAirlineIcaoCodeView::requestNewBackendData, this, &CDbAirlineIcaoComponent::ps_reload);

View File

@@ -32,7 +32,7 @@ namespace BlackGui
// filter and drag and drop
this->ui->tvp_Countries->setFilterWidget(this->ui->filter_CountryComponent);
this->ui->tvp_Countries->allowDragDropValueObjects(true, false);
this->ui->tvp_Countries->allowDragDrop(true, false);
connect(sApp->getWebDataServices(), &CWebDataServices::dataRead, this, &CDbCountryComponent::ps_countriesRead);
this->ps_countriesRead(CEntityFlags::CountryEntity, CEntityFlags::ReadFinished, sGui->getWebDataServices()->getCountriesCount());

View File

@@ -28,7 +28,7 @@ namespace BlackGui
ui->setupUi(this);
this->setViewWithIndicator(this->ui->tvp_Distributors);
this->ui->tvp_Distributors->setResizeMode(CViewBaseNonTemplate::ResizingAuto);
this->ui->tvp_Distributors->allowDragDropValueObjects(true, false);
this->ui->tvp_Distributors->allowDragDrop(true, false);
connect(this->ui->tvp_Distributors, &CDistributorView::requestNewBackendData, this, &CDbDistributorComponent::ps_reload);
connect(sGui->getWebDataServices(), &CWebDataServices::dataRead, this, &CDbDistributorComponent::ps_distributorsRead);
this->ps_distributorsRead(CEntityFlags::DistributorEntity, CEntityFlags::ReadFinished, sGui->getWebDataServices()->getDistributorsCount());

View File

@@ -31,7 +31,7 @@ namespace BlackGui
// filter and drag and drop
this->ui->tvp_Liveries->setFilterWidget(this->ui->filter_Livery);
this->ui->tvp_Liveries->allowDragDropValueObjects(true, false);
this->ui->tvp_Liveries->allowDragDrop(true, false);
connect(sGui->getWebDataServices(), &CWebDataServices::dataRead, this, &CDbLiveryComponent::ps_liveriesRead);
this->ps_liveriesRead(CEntityFlags::LiveryEntity, CEntityFlags::ReadFinished, sGui->getWebDataServices()->getLiveriesCount());

View File

@@ -150,7 +150,7 @@ namespace BlackGui
void CDbLiverySelectorComponent::dropEvent(QDropEvent *event)
{
if (!event || !acceptDrop(event->mimeData())) { return; }
CVariant valueVariant(toCVariant(event->mimeData()));
const CVariant valueVariant(toCVariant(event->mimeData()));
if (valueVariant.isValid())
{
if (valueVariant.canConvert<CLivery>())

View File

@@ -44,7 +44,7 @@ namespace BlackGui
// configure view
this->ui->tvp_AircraftModel->setFilterWidget(this->ui->filter_AircraftModelFilter);
this->ui->tvp_AircraftModel->allowDragDropValueObjects(true, false);
this->ui->tvp_AircraftModel->allowDragDrop(true, false);
connect(sApp->getWebDataServices(), &CWebDataServices::dataRead, this, &CDbModelComponent::ps_modelsRead);
this->ps_modelsRead(CEntityFlags::ModelEntity, CEntityFlags::ReadFinished, sApp->getWebDataServices()->getModelsCount());

View File

@@ -36,8 +36,8 @@ namespace BlackGui
{
ui->setupUi(this);
this->ui->tvp_StashAircraftModels->setAircraftModelMode(CAircraftModelListModel::StashModel);
this->ui->tvp_StashAircraftModels->allowDragDropValueObjects(false, true);
this->ui->tvp_StashAircraftModels->setImplementedMetaTypeIds();
this->ui->tvp_StashAircraftModels->allowDragDrop(false, true);
this->ui->tvp_StashAircraftModels->setAcceptedMetaTypeIds();
this->ui->tvp_StashAircraftModels->menuAddItems(CAircraftModelView::MenuLoadAndSave);
connect(this->ui->pb_Unstash, &QPushButton::pressed, this, &CDbStashComponent::ps_onUnstashPressed);