Skip to content

Commit

Permalink
Merge e994a35 into 4198e53
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jul 11, 2018
2 parents 4198e53 + e994a35 commit 0497827
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ EditorWidgetFindReplaceWidget::EditorWidgetFindReplaceWidget(EditorWidget *pPare

// Some connections for our find-related widgets

connect(mGui->findEdit, &QLineEdit::textChanged,
this, &EditorWidgetFindReplaceWidget::emitCanFindReplace);

connect(this, &EditorWidgetFindReplaceWidget::canFindReplace,
mGui->findPreviousButton, &QToolButton::setEnabled);
connect(this, &EditorWidgetFindReplaceWidget::canFindReplace,
Expand Down Expand Up @@ -550,6 +553,15 @@ void EditorWidgetFindReplaceWidget::searchOptionChanged()

//==============================================================================

void EditorWidgetFindReplaceWidget::emitCanFindReplace()
{
// Let people know whether we can find/replace

emit canFindReplace(!findText().isEmpty());
}

//==============================================================================

} // namespace EditorWidget
} // namespace OpenCOR

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ private slots:
void replaceAllButtonClicked();

void searchOptionChanged();

void emitCanFindReplace();
};

//==============================================================================
Expand Down

0 comments on commit 0497827

Please sign in to comment.