mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Add select Map Layers to View menu
This commit is contained in:
parent
54047b7645
commit
9e3b2916e1
6 changed files with 199 additions and 5 deletions
|
|
@ -37,8 +37,8 @@ public:
|
|||
void UpdateMapDisplayColumns();
|
||||
void UpdateMoveButtonsEnabled();
|
||||
|
||||
std::vector<int> GetSelectedRows();
|
||||
std::vector<std::vector<int>> GetContiguousRows();
|
||||
std::vector<int> GetSelectedRows() const;
|
||||
std::vector<std::vector<int>> GetContiguousRows() const;
|
||||
|
||||
LayerDialog* self_;
|
||||
std::shared_ptr<model::LayerModel> layerModel_;
|
||||
|
|
@ -247,7 +247,7 @@ void LayerDialogImpl::ConnectSignals()
|
|||
});
|
||||
}
|
||||
|
||||
std::vector<int> LayerDialogImpl::GetSelectedRows()
|
||||
std::vector<int> LayerDialogImpl::GetSelectedRows() const
|
||||
{
|
||||
QModelIndexList selectedRows =
|
||||
self_->ui->layerTreeView->selectionModel()->selectedRows();
|
||||
|
|
@ -260,7 +260,7 @@ std::vector<int> LayerDialogImpl::GetSelectedRows()
|
|||
return rows;
|
||||
}
|
||||
|
||||
std::vector<std::vector<int>> LayerDialogImpl::GetContiguousRows()
|
||||
std::vector<std::vector<int>> LayerDialogImpl::GetContiguousRows() const
|
||||
{
|
||||
std::vector<std::vector<int>> contiguousRows {};
|
||||
std::vector<int> currentContiguousRows {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue