Zachary Hall
ae74999276
Some checks failed
Build / build-gentoo (push) Failing after 1m25s
Build / download-system-deps (push) Successful in 3m44s
Build / get-source-code (push) Successful in 6m52s
Build / build-appimage (push) Successful in 3m29s
Build / build-android (push) Failing after 2m52s
Build / build-windows (push) Failing after 6m42s
33 lines
No EOL
1 KiB
C++
33 lines
No EOL
1 KiB
C++
#pragma once
|
|
#include <QWidget>
|
|
#include <QTextBrowser>
|
|
#include <string>
|
|
#include <QListView>
|
|
#include <QAbstractListModel>
|
|
#include <QList>
|
|
#include <QBoxLayout>
|
|
#include <QSplitter>
|
|
#include <QLabel>
|
|
#include <license.hpp>
|
|
|
|
class LicenseModel : public QAbstractListModel {
|
|
Q_OBJECT;
|
|
std::vector<LicenseData> licenseData;
|
|
public:
|
|
~LicenseModel() override;
|
|
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override;
|
|
Q_INVOKABLE QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
|
Q_INVOKABLE QModelIndex parent(const QModelIndex &child) const override;
|
|
Q_INVOKABLE int rowCount(const QModelIndex &parent) const override;
|
|
Q_INVOKABLE int columnCount(const QModelIndex &parent) const override;
|
|
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override;
|
|
LicenseModel();
|
|
};
|
|
class AboutWindow : public QWidget {
|
|
Q_OBJECT;
|
|
public:
|
|
QListView *license_list;
|
|
QTextBrowser *license_text;
|
|
public:
|
|
AboutWindow();
|
|
}; |