mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
35 lines
639 B
C++
35 lines
639 B
C++
|
#pragma once
|
||
|
#ifndef _ITEMLISTWIDGET_HPP_
|
||
|
#define _ITEMLISTWIDGET_HPP_
|
||
|
#include <QDockWidget>
|
||
|
#include <QTableView>
|
||
|
#include <QLineEdit>
|
||
|
#include <QSortFilterProxyModel>
|
||
|
#include "ItemListModel.hpp"
|
||
|
|
||
|
class ItemListWidget : public QDockWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
QSortFilterProxyModel* filter;
|
||
|
ItemListModel* model;
|
||
|
QTableView* table;
|
||
|
QLineEdit* searchbox;
|
||
|
|
||
|
public:
|
||
|
ItemListWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
|
||
|
|
||
|
signals:
|
||
|
void selectedItemChanged(const qint16 id);
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
void worldLoaded(GameWorld* world);
|
||
|
|
||
|
void selectedIndexChanged(const QModelIndex& current);
|
||
|
|
||
|
void setFilter(const QString& f);
|
||
|
};
|
||
|
|
||
|
#endif
|