mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
25 lines
598 B
C++
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
|