Skip to content

Commit

Permalink
Github Issue #201: Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryFender committed Aug 2, 2024
1 parent 97b1c78 commit 2d5b904
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions mkedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,6 @@ MkEdit::MkEdit(QWidget *parent):QTextEdit(parent){
preUndoSetup();
}

void MkEdit::initialialCursorPosition()
{
disconnectSignals(true);
QTextCursor cursor = this->textCursor();
cursor.movePosition(QTextCursor::End, QTextCursor::MoveAnchor);
this->setTextCursor(cursor);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
this->update();
this->verticalScrollBar()->setSliderPosition(0);

emit cursorPosChanged(&selectRange);
connectSignals(true);
}

void MkEdit::paintEvent(QPaintEvent *e)
{
QPainter painter(viewport());
Expand Down
1 change: 0 additions & 1 deletion mkedit.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class MkEdit : public QTextEdit

public:
explicit MkEdit(QWidget *parent = nullptr);
void initialialCursorPosition();
void paintEvent(QPaintEvent *event) override;
void keyPressEvent(QKeyEvent *event)override;
void keyReleaseEvent(QKeyEvent *event)override;
Expand Down

0 comments on commit 2d5b904

Please sign in to comment.