Skip to content

Commit

Permalink
Github Issue #123: Dropping into the MkEdit is now disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryFender committed Jan 18, 2024
1 parent 62e2691 commit cdb1130
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mkedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,11 @@ void MkEdit::mouseDoubleClickEvent(QMouseEvent *e)
}
}

void MkEdit::dragEnterEvent(QDragEnterEvent *e)
{

}

QColor MkEdit::getTypeColor() const
{
return syntaxColor.type;
Expand Down
4 changes: 2 additions & 2 deletions mkedit.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <theme.h>

#define FILE_SAVE_TIMEOUT 300
#define BLOCKRADIUS 3
#define BLOCKRADIUS 4
#define MAXIMUM_FONT_SIZE 40
#define MINIMUM_FONT_SIZE 8

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cdb1130

Please sign in to comment.