| 3035 | } |
| 3036 | |
| 3037 | void addToRoot(RDTreeWidgetItem *root, const TextureDescription &t) |
| 3038 | { |
| 3039 | const QVariant &res = QVariant::fromValue(t.resourceId); |
| 3040 | RDTreeWidgetItem *child = |
| 3041 | new RDTreeWidgetItem({res, t.width, t.height, (3 == t.dimension ? t.depth : t.arraysize), |
| 3042 | t.mips, t.format.Name(), QString()}); |
| 3043 | |
| 3044 | child->setTag(res); |
| 3045 | root->addChild(child); |
| 3046 | } |
| 3047 | |
| 3048 | void TextureViewer::refreshTextureList(FilterType filterType, const QString &filterStr) |
| 3049 | { |