mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-21 02:04:32 +00:00
39 lines
661 B
C
39 lines
661 B
C
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2020, The Monero Project.
|
||
|
|
||
|
#ifndef REDDITWIDGET_H
|
||
|
#define REDDITWIDGET_H
|
||
|
|
||
|
#include <QMenu>
|
||
|
#include <QWidget>
|
||
|
#include <QItemSelection>
|
||
|
|
||
|
#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();
|
||
|
|
||
|
private:
|
||
|
void setupTable();
|
||
|
void showContextMenu(const QPoint &pos);
|
||
|
|
||
|
Ui::RedditWidget *ui;
|
||
|
RedditModel* const m_model;
|
||
|
QMenu *m_contextMenu;
|
||
|
};
|
||
|
|
||
|
#endif // REDDITWIDGET_H
|