mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-28 23:06:24 +02:00
21 lines
476 B
C
21 lines
476 B
C
|
#ifndef OBJECTBROWSER_H
|
||
|
#define OBJECTBROWSER_H
|
||
|
|
||
|
#include <QSortFilterProxyModel>
|
||
|
#include "../lib/Terrain.h"
|
||
|
|
||
|
class ObjectBrowser : public QSortFilterProxyModel
|
||
|
{
|
||
|
public:
|
||
|
explicit ObjectBrowser(QObject *parent = nullptr);
|
||
|
|
||
|
Terrain terrain;
|
||
|
QString filter;
|
||
|
|
||
|
protected:
|
||
|
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const override;
|
||
|
bool filterAcceptsRowText(int source_row, const QModelIndex &source_parent) const;
|
||
|
};
|
||
|
|
||
|
#endif // OBJECTBROWSER_H
|