mirror of
https://github.com/redstrate/Novus.git
synced 2025-05-15 13:07:45 +00:00
Eventually we want to load multiple LGBs at once (and categorize objects further, of course) so we need an actual tree model.
25 lines
531 B
C++
25 lines
531 B
C++
// SPDX-FileCopyrightText: 2025 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QTreeView>
|
|
#include <QWidget>
|
|
#include <physis.hpp>
|
|
|
|
class ObjectListModel;
|
|
class QStringListModel;
|
|
class AppState;
|
|
|
|
class ObjectListWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ObjectListWidget(AppState *appState, QWidget *parent = nullptr);
|
|
|
|
private:
|
|
QTreeView *treeWidget = nullptr;
|
|
AppState *m_appState = nullptr;
|
|
ObjectListModel *m_objectListModel = nullptr;
|
|
};
|