mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:01:18 +02:00
Remove old model code
This commit is contained in:
parent
3467e06199
commit
fa66c0a521
1 changed files with 0 additions and 41 deletions
|
@ -219,44 +219,3 @@ void AssetMappingModel::refresh() {
|
||||||
|
|
||||||
request->start();
|
request->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
// QModelIndex AssetMappingModel::index(int row, int column, const QModelIndex& parent) const {
|
|
||||||
// if (row < 0 || column < 0) {
|
|
||||||
// return QModelIndex();
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if (parent.isValid()) {
|
|
||||||
// auto item = static_cast<AssetMappingItem*>(parent.internalPointer());
|
|
||||||
// return createIndex(row, column, )
|
|
||||||
// }
|
|
||||||
// return createIndex(row, column, getFolderNodes(
|
|
||||||
// static_cast<AssetMappingItem*>(getTreeNodeFromIndex(parent))).at(row));
|
|
||||||
// }
|
|
||||||
|
|
||||||
// QModelIndex AssetMappingModel::parent(const QModelIndex& child) const {
|
|
||||||
// AssetMappingItem* parent = (static_cast<AssetMappingItem*>(child.internalPointer()))->getParent();
|
|
||||||
// if (!parent) {
|
|
||||||
// return QModelIndex();
|
|
||||||
// }
|
|
||||||
// AssetMappingItem* grandParent = parent->getParent();
|
|
||||||
// int row = getFolderNodes(grandParent).indexOf(parent);
|
|
||||||
// return createIndex(row, 0, parent);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// QVariant AssetMappingModel::data(const QModelIndex& index, int role) const {
|
|
||||||
// if (index.isValid()) {
|
|
||||||
// AssetMappingItem* item = (static_cast<AssetMappingItem*>(index.internalPointer()));
|
|
||||||
// if (item) {
|
|
||||||
// return item->name;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// return QVariant();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// int AssetMappingModel::rowCount(const QModelIndex& parent) const {
|
|
||||||
// return 1;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// int AssetMappingModel::columnCount(const QModelIndex& parent) const {
|
|
||||||
// return 1;
|
|
||||||
// }
|
|
||||||
|
|
Loading…
Reference in a new issue