diff --git a/NEWS.md b/NEWS.md index 4278cadc..728917ea 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Red Panda C++ Version 1.0.8 + - enhancement: auto complete '#undef' + Red Panda C++ Version 1.0.7 - change: use Shift+Enter to break line - change: highlight whole #define statement using one color diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 0b076de2..7234b330 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -10,7 +10,7 @@ isEmpty(APP_NAME) { } isEmpty(APP_VERSION) { - APP_VERSION=1.0.7 + APP_VERSION=1.0.8 } diff --git a/RedPandaIDE/parser/parserutils.cpp b/RedPandaIDE/parser/parserutils.cpp index 9b6e78e4..8956f930 100644 --- a/RedPandaIDE/parser/parserutils.cpp +++ b/RedPandaIDE/parser/parserutils.cpp @@ -294,6 +294,7 @@ void initParser() CppDirectives.append("#error"); CppDirectives.append("#pragma"); CppDirectives.append("#line"); + CppDirectives.append("#undef"); // javadoc tags JavadocTags.append("@author"); diff --git a/RedPandaIDE/widgets/codecompletionlistview.cpp b/RedPandaIDE/widgets/codecompletionlistview.cpp index f4adb9f5..8b737a76 100644 --- a/RedPandaIDE/widgets/codecompletionlistview.cpp +++ b/RedPandaIDE/widgets/codecompletionlistview.cpp @@ -18,6 +18,7 @@ #include "../mainwindow.h" #include "../editor.h" #include "../editorlist.h" +#include CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(parent) { @@ -27,6 +28,7 @@ CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(pare void CodeCompletionListView::keyPressEvent(QKeyEvent *event) { + if (event->key() == Qt::Key_Up || event->key() == Qt::Key_Down || event->key() == Qt::Key_PageDown diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index db09758c..b27d7261 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -17,7 +17,7 @@ SUBDIRS += \ APP_NAME = RedPandaCPP -APP_VERSION = 1.0.7 +APP_VERSION = 1.0.8 linux: {