| 403 | } |
| 404 | |
| 405 | std::optional<qint64> LayerListView::currentId() const { |
| 406 | const QListWidgetItem* item = list_->currentItem(); |
| 407 | if (item == nullptr) { |
| 408 | return std::nullopt; |
| 409 | } |
| 410 | return item->data(kLayerIdRole).toLongLong(); |
| 411 | } |
| 412 | |
| 413 | std::vector<qint64> LayerListView::order() const { |
| 414 | std::vector<qint64> ids; |