From cdb113004cee54c3ee5ebd8500326995887b0cdf Mon Sep 17 00:00:00 2001 From: AngryFender Date: Thu, 18 Jan 2024 22:31:35 +0000 Subject: [PATCH] Github Issue #123: Dropping into the MkEdit is now disabled --- mkedit.cpp | 5 +++++ mkedit.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mkedit.cpp b/mkedit.cpp index 53bac74..bb87e24 100644 --- a/mkedit.cpp +++ b/mkedit.cpp @@ -539,6 +539,11 @@ void MkEdit::mouseDoubleClickEvent(QMouseEvent *e) } } +void MkEdit::dragEnterEvent(QDragEnterEvent *e) +{ + +} + QColor MkEdit::getTypeColor() const { return syntaxColor.type; diff --git a/mkedit.h b/mkedit.h index f574811..c6727da 100644 --- a/mkedit.h +++ b/mkedit.h @@ -15,7 +15,7 @@ #include #define FILE_SAVE_TIMEOUT 300 -#define BLOCKRADIUS 3 +#define BLOCKRADIUS 4 #define MAXIMUM_FONT_SIZE 40 #define MINIMUM_FONT_SIZE 8 @@ -61,7 +61,7 @@ class MkEdit : public QTextEdit void mousePressEvent(QMouseEvent *e) override; void mouseMoveEvent(QMouseEvent *e) override; void mouseDoubleClickEvent(QMouseEvent *e) override; - + void dragEnterEvent(QDragEnterEvent *e) override; private: QColor codeBlockColor; int widthCodeBlock;