Redesign find in files UI
This commit is contained in:
parent
595156e80f
commit
5240b1f01f
|
@ -9733,7 +9733,7 @@ void MainWindow::on_actionSubmit_Issues_triggered()
|
|||
|
||||
void MainWindow::on_actionDocument_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://royqh1979.gitee.io/redpandacpp/docsy/docs/"));
|
||||
QDesktopServices::openUrl(QUrl("https://royqh1979.gitee.io/redpandacpp/docsy/docs/usage"));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -99,6 +99,12 @@
|
|||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="cbReplace">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
|
|
@ -428,12 +428,12 @@ void SearchInFileDialog::on_btnReplace_clicked()
|
|||
|
||||
void SearchInFileDialog::on_rbFolder_toggled(bool checked)
|
||||
{
|
||||
ui->lblFilters->setVisible(checked);
|
||||
ui->txtFilters->setVisible(checked);
|
||||
ui->lblFolder->setVisible(checked);
|
||||
ui->txtFolder->setVisible(checked);
|
||||
ui->btnChangeFolder->setVisible(checked);
|
||||
ui->cbSearchSubFolders->setVisible(checked);
|
||||
// ui->lblFilters->setVisible(checked);
|
||||
ui->txtFilters->setEnabled(checked);
|
||||
// ui->lblFolder->setVisible(checked);
|
||||
ui->txtFolder->setEnabled(checked);
|
||||
ui->btnChangeFolder->setEnabled(checked);
|
||||
ui->cbSearchSubFolders->setEnabled(checked);
|
||||
if (checked) {
|
||||
if (!directoryExists(ui->txtFolder->text()))
|
||||
ui->txtFolder->setText(pSettings->environment().currentFolder());
|
||||
|
|
|
@ -40,6 +40,12 @@
|
|||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
|
@ -62,6 +68,12 @@
|
|||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lblFind">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Text to Find:</string>
|
||||
</property>
|
||||
|
|
Loading…
Reference in New Issue