remove nouse code
This commit is contained in:
parent
e9d95a4682
commit
33a47a5361
|
@ -5876,15 +5876,6 @@ bool QSynEdit::isCaretVisible()
|
||||||
|
|
||||||
void QSynEdit::paintEvent(QPaintEvent *event)
|
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.
|
// Now paint everything while the caret is hidden.
|
||||||
QPainter painter(viewport());
|
QPainter painter(viewport());
|
||||||
//Get the invalidated rect.
|
//Get the invalidated rect.
|
||||||
|
|
|
@ -688,7 +688,6 @@ private:
|
||||||
int mMouseScrollOldTop;
|
int mMouseScrollOldTop;
|
||||||
|
|
||||||
bool mInserting;
|
bool mInserting;
|
||||||
bool mPainting;
|
|
||||||
PDocument mDocument;
|
PDocument mDocument;
|
||||||
int mLinesInWindow;
|
int mLinesInWindow;
|
||||||
int mLeftPos;
|
int mLeftPos;
|
||||||
|
|
Loading…
Reference in New Issue