From 33a47a53614eb3ab2a09a57081f8c5dd40b66082 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 24 Mar 2024 09:09:22 +0800 Subject: [PATCH] remove nouse code --- libs/qsynedit/qsynedit/qsynedit.cpp | 9 --------- libs/qsynedit/qsynedit/qsynedit.h | 1 - 2 files changed, 10 deletions(-) diff --git a/libs/qsynedit/qsynedit/qsynedit.cpp b/libs/qsynedit/qsynedit/qsynedit.cpp index 6742fa49..d9446001 100644 --- a/libs/qsynedit/qsynedit/qsynedit.cpp +++ b/libs/qsynedit/qsynedit/qsynedit.cpp @@ -5876,15 +5876,6 @@ bool QSynEdit::isCaretVisible() void QSynEdit::paintEvent(QPaintEvent *event) { - if (mPainting) { - qDebug()<<"painting!"; - return; - } - mPainting = true; - auto action = finally([&,this] { - mPainting = false; - }); - // Now paint everything while the caret is hidden. QPainter painter(viewport()); //Get the invalidated rect. diff --git a/libs/qsynedit/qsynedit/qsynedit.h b/libs/qsynedit/qsynedit/qsynedit.h index b8578b4c..384e3dc4 100644 --- a/libs/qsynedit/qsynedit/qsynedit.h +++ b/libs/qsynedit/qsynedit/qsynedit.h @@ -688,7 +688,6 @@ private: int mMouseScrollOldTop; bool mInserting; - bool mPainting; PDocument mDocument; int mLinesInWindow; int mLeftPos;