forked from feather/feather
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.
39 lines
661 B
39 lines
661 B
4 years ago
|
// 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
|