diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 4a0f9395..5e1647f5 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -326,6 +326,9 @@ MainWindow::MainWindow(QWidget *parent) mHeaderCompletionPopup = std::make_shared(); mFunctionTip = std::make_shared(); + mBottomPanelHeight = 0; + mLeftPanelWidth = 0; + mClassBrowserModel.setColors(mStatementColors); connect(&mAutoSaveTimer, &QTimer::timeout, diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index f3161725..d9b5999b 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -52,6 +52,7 @@ CppParser::CppParser(QObject *parent) : QObject(parent), mCppKeywords = CppKeywords; mCppTypeKeywords = CppTypeKeywords; + mEnabled = true; //mNamespaces; //mBlockBeginSkips; //mBlockEndSkips; diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index b31aae1a..dd53f6ba 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -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);