2021-06-10 18:54:54 +08:00
|
|
|
#ifndef RESULTTEXTVIEW_H
|
|
|
|
#define RESULTTEXTVIEW_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <DPlainTextEdit>
|
|
|
|
#include <QAction>
|
|
|
|
#include <QMenu>
|
|
|
|
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
|
|
|
|
class ResultTextView : public DPlainTextEdit
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit ResultTextView(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void contextMenuEvent(QContextMenuEvent *e) override;
|
2021-06-15 16:09:51 +08:00
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
2021-06-10 18:54:54 +08:00
|
|
|
|
2021-06-15 16:09:51 +08:00
|
|
|
signals:
|
|
|
|
void sigChangeSize();
|
2021-06-10 18:54:54 +08:00
|
|
|
private:
|
|
|
|
QMenu *m_Menu;
|
|
|
|
QAction *m_actCopy;
|
|
|
|
QAction *m_actCut;
|
|
|
|
QAction *m_actSelectAll;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RESULTTEXTVIEW_H
|