2023-08-06 08:48:11 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-07-08 09:13:02 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QTreeView>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <physis.hpp>
|
|
|
|
|
|
|
|
#include "gearview.h"
|
|
|
|
|
2023-10-12 23:44:48 -04:00
|
|
|
class GearListWidget : public QWidget
|
|
|
|
{
|
2023-07-08 09:13:02 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-10-12 23:44:48 -04:00
|
|
|
explicit GearListWidget(GameData *data, QWidget *parent = nullptr);
|
2023-07-08 09:13:02 -04:00
|
|
|
|
|
|
|
Q_SIGNALS:
|
2023-10-12 23:44:48 -04:00
|
|
|
void gearSelected(const GearInfo &gear);
|
2023-07-08 09:13:02 -04:00
|
|
|
|
|
|
|
private:
|
2023-10-12 23:44:48 -04:00
|
|
|
QTreeView *listWidget = nullptr;
|
2023-07-08 09:13:02 -04:00
|
|
|
|
2023-10-12 23:44:48 -04:00
|
|
|
GameData *data = nullptr;
|
2023-07-08 09:13:02 -04:00
|
|
|
};
|