You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
956 B
38 lines
956 B
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <QDialog>
|
|
#include <QStyledItemDelegate>
|
|
#include <QTableView>
|
|
|
|
namespace Ui {
|
|
class DepsDialog;
|
|
}
|
|
|
|
class DepsDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DepsDialog(QWidget* parent);
|
|
~DepsDialog() override;
|
|
|
|
private:
|
|
std::unique_ptr<Ui::DepsDialog> ui;
|
|
};
|
|
|
|
class LinkItemDelegate : public QStyledItemDelegate {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LinkItemDelegate(QObject* parent = 0);
|
|
|
|
protected:
|
|
void paint(QPainter* painter, const QStyleOptionViewItem& option,
|
|
const QModelIndex& index) const override;
|
|
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
|
|
bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option,
|
|
const QModelIndex& index) override;
|
|
};
|