diff --git a/NEWS.md b/NEWS.md index 36623e43..23cc8b97 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -Version 0.3.0 +Version 0.5.0 - enhancement: support C++ using type alias; - fix: when press shift, completion popu window will hide - enhancement: options in debugger setting widget, to skip system/project/custom header&project files when step into diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index d891d09f..a3e81e20 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -1573,8 +1573,7 @@ void MainWindow::buildContextMenus() }); mDebugConsole_SelectAll=createActionFor( tr("Select All"), - ui->debugConsole, - QKeySequence("Ctrl+A")); + ui->debugConsole); connect(mDebugConsole_SelectAll, &QAction::triggered, [this]() { ui->debugConsole->selectAll(); diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index 091c2b7a..43494389 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -469,7 +469,7 @@ QTabWidget::North - 4 + 0 @@ -817,7 +817,7 @@ 0 0 946 - 22 + 25 diff --git a/RedPandaIDE/systemconsts.h b/RedPandaIDE/systemconsts.h index b1709be6..0799efd7 100644 --- a/RedPandaIDE/systemconsts.h +++ b/RedPandaIDE/systemconsts.h @@ -3,7 +3,7 @@ #include -#define DEVCPP_VERSION "0.2.2" +#define DEVCPP_VERSION "0.5.0" #ifdef Q_OS_WIN #define APP_SETTSINGS_FILENAME "redpandacpp.ini" diff --git a/RedPandaIDE/widgets/qconsole.cpp b/RedPandaIDE/widgets/qconsole.cpp index 116a6a31..e2f03e97 100644 --- a/RedPandaIDE/widgets/qconsole.cpp +++ b/RedPandaIDE/widgets/qconsole.cpp @@ -684,12 +684,12 @@ void QConsole::keyPressEvent(QKeyEvent *event) QAbstractScrollArea::keyPressEvent(event); } -void QConsole::focusInEvent(QFocusEvent *event) +void QConsole::focusInEvent(QFocusEvent *) { showCaret(); } -void QConsole::focusOutEvent(QFocusEvent *event) +void QConsole::focusOutEvent(QFocusEvent *) { hideCaret(); } @@ -715,7 +715,9 @@ void QConsole::paintEvent(QPaintEvent *event) nL2 = std::min(std::max(mTopRow + (rcClip.bottom() + mRowHeight - 1) / mRowHeight, 1), maxScrollHeight() + mRowsInWindow - 1); QPainter cachePainter(mContentImage.get()); cachePainter.setFont(font()); - painter.fillRect(rcClip,mBackground); + if (viewport()->rect() == rcClip) { + painter.fillRect(rcClip, mBackground); + } paintRows(cachePainter,nL1,nL2); painter.drawImage(rcClip,*mContentImage,rcClip); }