- 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.
This commit is contained in:
Roy Qu 2023-03-14 17:49:36 +08:00
parent a8695a96d0
commit 627ff08d23
5 changed files with 20 additions and 3 deletions

View File

@ -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 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 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) - 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 Red Panda C++ Version 2.17

View File

@ -77,6 +77,7 @@
#include <QMimeDatabase> #include <QMimeDatabase>
#include <QMimeType> #include <QMimeType>
#include <QToolTip> #include <QToolTip>
#include <QCompleter>
#include "mainwindow.h" #include "mainwindow.h"
#include <QScrollBar> #include <QScrollBar>
@ -260,6 +261,11 @@ MainWindow::MainWindow(QWidget *parent)
// updateEditorActions(); // updateEditorActions();
// updateCaretActions(); // 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->debugConsole,&QConsole::commandInput,this,&MainWindow::onDebugCommandInput);
connect(ui->cbEvaluate->lineEdit(), &QLineEdit::returnPressed, connect(ui->cbEvaluate->lineEdit(), &QLineEdit::returnPressed,
this, &MainWindow::onDebugEvaluateInput); this, &MainWindow::onDebugEvaluateInput);

View File

@ -487,7 +487,7 @@
<enum>QTabWidget::West</enum> <enum>QTabWidget::West</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<property name="usesScrollButtons"> <property name="usesScrollButtons">
<bool>true</bool> <bool>true</bool>
@ -971,7 +971,6 @@
<widget class="IssuesTable" name="tableIssues"> <widget class="IssuesTable" name="tableIssues">
<property name="font"> <property name="font">
<font> <font>
<weight>50</weight>
<bold>false</bold> <bold>false</bold>
</font> </font>
</property> </property>
@ -1133,7 +1132,7 @@
<enum>QTabWidget::North</enum> <enum>QTabWidget::North</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>2</number>
</property> </property>
<widget class="QWidget" name="tabDebugConsole"> <widget class="QWidget" name="tabDebugConsole">
<attribute name="title"> <attribute name="title">

View File

@ -1,6 +1,7 @@
#include "searchdialog.h" #include "searchdialog.h"
#include "ui_searchdialog.h" #include "ui_searchdialog.h"
#include <QCompleter>
#include <QMessageBox> #include <QMessageBox>
#include <memory> #include <memory>
#include <qsynedit/searcher/basicsearcher.h> #include <qsynedit/searcher/basicsearcher.h>
@ -29,6 +30,8 @@ SearchDialog::SearchDialog(QWidget *parent) :
onTabBarCurrentChanged(mSearchTabIdx); onTabBarCurrentChanged(mSearchTabIdx);
mBasicSearchEngine = std::make_shared<QSynedit::BasicSearcher>(); mBasicSearchEngine = std::make_shared<QSynedit::BasicSearcher>();
mRegexSearchEngine = std::make_shared<QSynedit::RegexSearcher>(); mRegexSearchEngine = std::make_shared<QSynedit::RegexSearcher>();
ui->cbFind->completer()->setCaseSensitivity(Qt::CaseSensitive);
ui->cbReplace->completer()->setCaseSensitivity(Qt::CaseSensitive);
} }
SearchDialog::~SearchDialog() SearchDialog::~SearchDialog()

View File

@ -27,6 +27,7 @@
#include <QMessageBox> #include <QMessageBox>
#include <QDebug> #include <QDebug>
#include <QProgressDialog> #include <QProgressDialog>
#include <QCompleter>
SearchInFileDialog::SearchInFileDialog(QWidget *parent) : SearchInFileDialog::SearchInFileDialog(QWidget *parent) :
@ -38,6 +39,8 @@ SearchInFileDialog::SearchInFileDialog(QWidget *parent) :
mSearchOptions&=0; mSearchOptions&=0;
mBasicSearchEngine= QSynedit::PSynSearchBase(new QSynedit::BasicSearcher()); mBasicSearchEngine= QSynedit::PSynSearchBase(new QSynedit::BasicSearcher());
mRegexSearchEngine= QSynedit::PSynSearchBase(new QSynedit::RegexSearcher()); mRegexSearchEngine= QSynedit::PSynSearchBase(new QSynedit::RegexSearcher());
ui->cbFind->completer()->setCaseSensitivity(Qt::CaseSensitive);
} }
SearchInFileDialog::~SearchInFileDialog() SearchInFileDialog::~SearchInFileDialog()