mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-20 17:54:32 +00:00
43 lines
862 B
C++
43 lines
862 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
|
|
|
#ifndef FEATHER_REDDITWIDGET_H
|
|
#define FEATHER_REDDITWIDGET_H
|
|
|
|
#include <QItemSelection>
|
|
#include <QMenu>
|
|
#include <QWidget>
|
|
|
|
#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::RedditWidget> ui;
|
|
RedditModel* const m_model;
|
|
QMenu *m_contextMenu;
|
|
};
|
|
|
|
#endif // FEATHER_REDDITWIDGET_H
|