remove no use fields
This commit is contained in:
parent
d9259fb9e4
commit
e7db1a3a6f
|
@ -56,7 +56,6 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent),
|
||||||
#error "Not supported!"
|
#error "Not supported!"
|
||||||
#endif
|
#endif
|
||||||
mDocument = std::make_shared<SynDocument>(mFontDummy, this);
|
mDocument = std::make_shared<SynDocument>(mFontDummy, this);
|
||||||
mOrigLines = mDocument;
|
|
||||||
//fPlugins := TList.Create;
|
//fPlugins := TList.Create;
|
||||||
mMouseMoved = false;
|
mMouseMoved = false;
|
||||||
mUndoing = false;
|
mUndoing = false;
|
||||||
|
@ -74,10 +73,8 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent),
|
||||||
|
|
||||||
mUndoList = std::make_shared<SynEditUndoList>();
|
mUndoList = std::make_shared<SynEditUndoList>();
|
||||||
mUndoList->connect(mUndoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onUndoAdded);
|
mUndoList->connect(mUndoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onUndoAdded);
|
||||||
mOrigUndoList = mUndoList;
|
|
||||||
mRedoList = std::make_shared<SynEditUndoList>();
|
mRedoList = std::make_shared<SynEditUndoList>();
|
||||||
mRedoList->connect(mRedoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onRedoAdded);
|
mRedoList->connect(mRedoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onRedoAdded);
|
||||||
mOrigRedoList = mRedoList;
|
|
||||||
|
|
||||||
mForegroundColor=palette().color(QPalette::Text);
|
mForegroundColor=palette().color(QPalette::Text);
|
||||||
mBackgroundColor=palette().color(QPalette::Base);
|
mBackgroundColor=palette().color(QPalette::Base);
|
||||||
|
@ -6590,10 +6587,6 @@ void SynEdit::onLinesPutted(int index, int count)
|
||||||
int vEndLine = index + 1;
|
int vEndLine = index + 1;
|
||||||
if (mHighlighter) {
|
if (mHighlighter) {
|
||||||
vEndLine = std::max(vEndLine, scanFrom(index, index+count) + 1);
|
vEndLine = std::max(vEndLine, scanFrom(index, index+count) + 1);
|
||||||
// If this editor is chained then the real owner of text buffer will probably
|
|
||||||
// have already parsed the changes, so ScanFrom will return immediately.
|
|
||||||
if (mDocument != mOrigLines)
|
|
||||||
vEndLine = INT_MAX;
|
|
||||||
}
|
}
|
||||||
invalidateLines(index + 1, vEndLine);
|
invalidateLines(index + 1, vEndLine);
|
||||||
}
|
}
|
||||||
|
|
|
@ -644,9 +644,6 @@ private:
|
||||||
bool mInserting;
|
bool mInserting;
|
||||||
bool mPainting;
|
bool mPainting;
|
||||||
PSynDocument mDocument;
|
PSynDocument mDocument;
|
||||||
PSynDocument mOrigLines;
|
|
||||||
PSynEditUndoList mOrigUndoList;
|
|
||||||
PSynEditUndoList mOrigRedoList;
|
|
||||||
int mLinesInWindow;
|
int mLinesInWindow;
|
||||||
int mLeftChar;
|
int mLeftChar;
|
||||||
int mPaintLock; // lock counter for internal calculations
|
int mPaintLock; // lock counter for internal calculations
|
||||||
|
|
Loading…
Reference in New Issue