diff --git a/NEWS.md b/NEWS.md index 35151a6f..c62d08da 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,6 +11,12 @@ Red Panda C++ Version 2.18 - enhancement: Options in compiler set settings, to generate syntax error for large stack objects. (Enable for Debug settings by default) - enhancement: Options in compiler set settings, to generate protection code for stack smashing attack. (Enable for Debug settings by default) - enhancement: Options in compiler set settings, to enable address sanitizer. Not available in windows.(Enable for Debug settings by default) + - fix: The comboxbox to input search keyword in the search dialog is case insensitive. + - fix: The comboxbox to input replace text in the search dialog is case insensitive. + - fix: The comboxbox to input search keyword in the search in files dialog is case insensitive. + - fix: The comboxbox to input address expression in the debug panel's memory view is case insensitive. + - fix: The comboxbox to input evaluation expression in the debug panel is case insensitive. + - fix: The comboxbox to input replace text in the search panel is case insensitive. Red Panda C++ Version 2.17 diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 0d985370..198da6ed 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -77,6 +77,7 @@ #include #include #include +#include #include "mainwindow.h" #include @@ -260,6 +261,11 @@ MainWindow::MainWindow(QWidget *parent) // updateEditorActions(); // updateCaretActions(); + ui->cbReplaceInHistory->completer()->setCaseSensitivity(Qt::CaseSensitive); + ui->cbEvaluate->completer()->setCaseSensitivity(Qt::CaseSensitive); + ui->cbMemoryAddress->completer()->setCaseSensitivity(Qt::CaseSensitive); + ui->cbFilesPath->completer()->setCaseSensitivity(Qt::CaseInsensitive); + connect(ui->debugConsole,&QConsole::commandInput,this,&MainWindow::onDebugCommandInput); connect(ui->cbEvaluate->lineEdit(), &QLineEdit::returnPressed, this, &MainWindow::onDebugEvaluateInput); diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index 7901310b..3da4f4e7 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -487,7 +487,7 @@ QTabWidget::West - 1 + 0 true @@ -971,7 +971,6 @@ - 50 false @@ -1133,7 +1132,7 @@ QTabWidget::North - 1 + 2 diff --git a/RedPandaIDE/widgets/searchdialog.cpp b/RedPandaIDE/widgets/searchdialog.cpp index 45d5dee6..061d3ab3 100644 --- a/RedPandaIDE/widgets/searchdialog.cpp +++ b/RedPandaIDE/widgets/searchdialog.cpp @@ -1,6 +1,7 @@ #include "searchdialog.h" #include "ui_searchdialog.h" +#include #include #include #include @@ -29,6 +30,8 @@ SearchDialog::SearchDialog(QWidget *parent) : onTabBarCurrentChanged(mSearchTabIdx); mBasicSearchEngine = std::make_shared(); mRegexSearchEngine = std::make_shared(); + ui->cbFind->completer()->setCaseSensitivity(Qt::CaseSensitive); + ui->cbReplace->completer()->setCaseSensitivity(Qt::CaseSensitive); } SearchDialog::~SearchDialog() diff --git a/RedPandaIDE/widgets/searchinfiledialog.cpp b/RedPandaIDE/widgets/searchinfiledialog.cpp index 276edd05..61615a2d 100644 --- a/RedPandaIDE/widgets/searchinfiledialog.cpp +++ b/RedPandaIDE/widgets/searchinfiledialog.cpp @@ -27,6 +27,7 @@ #include #include #include +#include SearchInFileDialog::SearchInFileDialog(QWidget *parent) : @@ -38,6 +39,8 @@ SearchInFileDialog::SearchInFileDialog(QWidget *parent) : mSearchOptions&=0; mBasicSearchEngine= QSynedit::PSynSearchBase(new QSynedit::BasicSearcher()); mRegexSearchEngine= QSynedit::PSynSearchBase(new QSynedit::RegexSearcher()); + ui->cbFind->completer()->setCaseSensitivity(Qt::CaseSensitive); + } SearchInFileDialog::~SearchInFileDialog()