// SPDX-License-Identifier: BSD-3-Clause // SPDX-FileCopyrightText: 2020-2022 The Monero Project #ifndef FEATHER_REDDITWIDGET_H #define FEATHER_REDDITWIDGET_H #include #include #include #include "model/RedditModel.h" namespace Ui { class RedditWidget; } class RedditWidget : public QWidget { Q_OBJECT public: explicit RedditWidget(QWidget *parent = nullptr); ~RedditWidget(); RedditModel* model(); public slots: void linkClicked(); signals: void setStatusText(const QString &msg, bool override, int timeout); private: void setupTable(); void showContextMenu(const QPoint &pos); void copyUrl(); QString getLink(const QString &permaLink); QScopedPointer ui; RedditModel* const m_model; QMenu *m_contextMenu; }; #endif // FEATHER_REDDITWIDGET_H