mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-04 14:03:59 +01:00
48 lines
960 B
C++
48 lines
960 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
|
|
|
|
#ifndef FEATHER_REVUOWIDGET_H
|
|
#define FEATHER_REVUOWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QMenu>
|
|
|
|
#include "RevuoItem.h"
|
|
|
|
namespace Ui {
|
|
class RevuoWidget;
|
|
}
|
|
|
|
class RevuoWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit RevuoWidget(QWidget *parent = nullptr);
|
|
~RevuoWidget();
|
|
|
|
signals:
|
|
void donate(const QString &address, const QString &description);
|
|
|
|
public slots:
|
|
void updateItems(const QList<QSharedPointer<RevuoItem>>& items);
|
|
void skinChanged();
|
|
|
|
private slots:
|
|
void onLinkActivated(const QUrl &link);
|
|
void onSelectItem(const QString &item);
|
|
void onOpenLink();
|
|
void onDonate();
|
|
void showContextMenu(const QPoint &pos);
|
|
|
|
private:
|
|
QScopedPointer<Ui::RevuoWidget> ui;
|
|
|
|
QMenu *m_contextMenu;
|
|
QHash<QString, QString> m_items;
|
|
QHash<QString, QString> m_links;
|
|
};
|
|
|
|
|
|
#endif //FEATHER_REVUOWIDGET_H
|