fix valgrind problems

This commit is contained in:
Roy Qu 2022-04-25 10:47:19 +08:00
parent 19c2096e5e
commit 2056d42286
3 changed files with 7 additions and 1 deletions

View File

@ -326,6 +326,9 @@ MainWindow::MainWindow(QWidget *parent)
mHeaderCompletionPopup = std::make_shared<HeaderCompletionPopup>();
mFunctionTip = std::make_shared<FunctionTooltipWidget>();
mBottomPanelHeight = 0;
mLeftPanelWidth = 0;
mClassBrowserModel.setColors(mStatementColors);
connect(&mAutoSaveTimer, &QTimer::timeout,

View File

@ -52,6 +52,7 @@ CppParser::CppParser(QObject *parent) : QObject(parent),
mCppKeywords = CppKeywords;
mCppTypeKeywords = CppTypeKeywords;
mEnabled = true;
//mNamespaces;
//mBlockBeginSkips;
//mBlockEndSkips;

View File

@ -42,6 +42,7 @@
SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent),
mDropped(false)
{
mCharWidth=1;
mLastKey = 0;
mLastKeyModifiers = Qt::NoModifier;
mModified = false;
@ -66,6 +67,8 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent),
mDocument->connect(mDocument.get(), &SynDocument::inserted, this, &SynEdit::onLinesInserted);
mDocument->connect(mDocument.get(), &SynDocument::putted, this, &SynEdit::onLinesPutted);
mGutterWidth = 0;
mScrollBars = SynScrollStyle::ssBoth;
mFontDummy.setStyleStrategy(QFont::PreferAntialias);
setFont(mFontDummy);
@ -100,7 +103,6 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent),
this->setCursor(Qt::CursorShape::IBeamCursor);
//TabStop := True;
mInserting = true;
mScrollBars = SynScrollStyle::ssBoth;
mExtraLineSpacing = 0;
this->setFrameShape(QFrame::Panel);