vnote/src/widgets/editors/texteditor.h
2021-09-26 14:43:55 +08:00

25 lines
598 B
C++

#ifndef TEXTEDITOR_H
#define TEXTEDITOR_H
#include <vtextedit/vtexteditor.h>
namespace vnotex
{
class TextEditor : public vte::VTextEditor
{
Q_OBJECT
public:
TextEditor(const QSharedPointer<vte::TextEditorConfig> &p_config,
const QSharedPointer<vte::TextEditorParameters> &p_paras,
QWidget *p_parent = nullptr);
signals:
void applySnippetRequested();
private slots:
void handleContextMenuEvent(QContextMenuEvent *p_event, bool *p_handled, QScopedPointer<QMenu> *p_menu);
};
}
#endif // TEXTEDITOR_H