1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-05 15:05:40 +02:00
vcmi/mapeditor/objectbrowser.h

28 lines
646 B
C
Raw Normal View History

2022-10-13 01:51:55 +04:00
/*
* objectbrowser.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
2022-09-25 00:55:05 +04:00
#pragma once
2022-09-18 03:23:17 +04:00
#include <QSortFilterProxyModel>
#include "../lib/Terrain.h"
class ObjectBrowser : public QSortFilterProxyModel
{
public:
explicit ObjectBrowser(QObject *parent = nullptr);
2022-10-08 23:54:45 +04:00
TerrainId terrain;
2022-09-18 03:23:17 +04:00
QString filter;
protected:
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const override;
bool filterAcceptsRowText(int source_row, const QModelIndex &source_parent) const;
};