Crossfire Server, Trunk
AssetUseTree.cpp
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #include "AssetUseTree.h"
14 #include "assets/AssetModel.h"
15 
16 AssetUseTree::AssetUseTree(AssetModel *assets, QWidget *parent) : QTreeView(parent) {
17  myFilter = new UseFilterAssetModel(this);
18  myFilter->setSourceModel(assets);
19  setModel(myFilter);
20  setIconSize(QSize(32, 32));
21  setRootIsDecorated(true);
22 }
23 
26 }
AssetUseTree::setFilter
void setFilter(AssetWrapper *filter)
Definition: AssetUseTree.cpp:24
filter
Definition: filter.py:1
UseFilterAssetModel::setFilter
void setFilter(AssetWrapper *asset)
Definition: AssetModel.cpp:197
AssetWrapper
Definition: AssetWrapper.h:25
UseFilterAssetModel
Definition: AssetModel.h:58
AssetModel
Definition: AssetModel.h:29
AssetModel.h
AssetUseTree.h
AssetUseTree::AssetUseTree
AssetUseTree(AssetModel *assets, QWidget *parent)
Definition: AssetUseTree.cpp:16
AssetUseTree::myFilter
UseFilterAssetModel * myFilter
Definition: AssetUseTree.h:33