Skip to content

Commit

Permalink
Github Issue #194: Removed unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryFender committed Aug 15, 2024
1 parent 0b256bf commit a8d58c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
14 changes: 2 additions & 12 deletions mkedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,25 +982,15 @@ QString MkEdit::rawPlainText() const

void MkEdit::setMkState(bool enable)
{
showMarkDown = enable;

if(enable){
disableMarkdown.setText("Disable Markdown");
emit setMarkdownStatus(true);
}else{
disableMarkdown.setText("Enable Markdown");
emit setMarkdownStatus(false);
}
}

void MkEdit::updateMkState()
{
setMkState(showMarkDown);
}

bool MkEdit::getMkState()
{
return showMarkDown;
QSettings settings("Remini","Remini");
settings.setValue("markdown",enable);
}

void MkEdit::setFont(const QFont &font)
Expand Down
3 changes: 0 additions & 3 deletions mkedit.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ class MkEdit : public QTextEdit

void setFont(const QFont &font);
void setMkState(bool enable);
void updateMkState();
bool getMkState();
protected:
void insertFromMimeData(const QMimeData *source) override;
void mousePressEvent(QMouseEvent *e) override;
Expand All @@ -98,7 +96,6 @@ class MkEdit : public QTextEdit
bool isCalcuatedForStartPos;
bool isCursorChangedHandleTriggered;
bool isShiftKeyPressed;
bool showMarkDown;

bool isDisconnectedViaHighPriority;

Expand Down

0 comments on commit a8d58c4

Please sign in to comment.