- enhancement: auto complete '#undef'

This commit is contained in:
Roy Qu 2022-05-11 20:34:13 +08:00
parent 4bd6c4dd39
commit 631da69d84
5 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Red Panda C++ Version 1.0.8
- enhancement: auto complete '#undef'
Red Panda C++ Version 1.0.7 Red Panda C++ Version 1.0.7
- change: use Shift+Enter to break line - change: use Shift+Enter to break line
- change: highlight whole #define statement using one color - change: highlight whole #define statement using one color

View File

@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
} }
isEmpty(APP_VERSION) { isEmpty(APP_VERSION) {
APP_VERSION=1.0.7 APP_VERSION=1.0.8
} }

View File

@ -294,6 +294,7 @@ void initParser()
CppDirectives.append("#error"); CppDirectives.append("#error");
CppDirectives.append("#pragma"); CppDirectives.append("#pragma");
CppDirectives.append("#line"); CppDirectives.append("#line");
CppDirectives.append("#undef");
// javadoc tags // javadoc tags
JavadocTags.append("@author"); JavadocTags.append("@author");

View File

@ -18,6 +18,7 @@
#include "../mainwindow.h" #include "../mainwindow.h"
#include "../editor.h" #include "../editor.h"
#include "../editorlist.h" #include "../editorlist.h"
#include <QDebug>
CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(parent) CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(parent)
{ {
@ -27,6 +28,7 @@ CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(pare
void CodeCompletionListView::keyPressEvent(QKeyEvent *event) void CodeCompletionListView::keyPressEvent(QKeyEvent *event)
{ {
if (event->key() == Qt::Key_Up if (event->key() == Qt::Key_Up
|| event->key() == Qt::Key_Down || event->key() == Qt::Key_Down
|| event->key() == Qt::Key_PageDown || event->key() == Qt::Key_PageDown

View File

@ -17,7 +17,7 @@ SUBDIRS += \
APP_NAME = RedPandaCPP APP_NAME = RedPandaCPP
APP_VERSION = 1.0.7 APP_VERSION = 1.0.8
linux: { linux: {