mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
18 lines
414 B
C++
18 lines
414 B
C++
#pragma once
|
|
|
|
#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;
|
|
};
|