From 9c4dd932c6d692178bb8d5265c634126cb415767 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 26 May 2020 22:23:25 +0300 Subject: Turn on more warnings by default - fix clazy warnings - fix various other compiler warnings - bugfix: connect profiles' downloadRequested signal --- src/mainwindow/widgets/searchform.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mainwindow/widgets/searchform.cpp') diff --git a/src/mainwindow/widgets/searchform.cpp b/src/mainwindow/widgets/searchform.cpp index 1519df2..e10933b 100644 --- a/src/mainwindow/widgets/searchform.cpp +++ b/src/mainwindow/widgets/searchform.cpp @@ -22,11 +22,11 @@ SearchForm::SearchForm(QWidget *parent) ui->result_label->setVisible(false); connect(ui->lineEdit, &QLineEdit::returnPressed, this, [this]() { - if(view) { + if(m_view) { QWebEnginePage::FindFlags searchFlags; searchFlags.setFlag(QWebEnginePage::FindCaseSensitively, ui->caseSensitivity_checkBox->isChecked()); searchFlags.setFlag(QWebEnginePage::FindBackward, ui->reverseSearch_checkBox->isChecked()); - view->findText(ui->lineEdit->text(), searchFlags, [this](bool found) { + m_view->findText(ui->lineEdit->text(), searchFlags, [this](bool found) { ui->result_label->setVisible(!found); }); } @@ -40,7 +40,7 @@ SearchForm::~SearchForm() void SearchForm::setView(QWebEngineView *view) { - this->view = view; + m_view = view; } void SearchForm::showEvent(QShowEvent *event) @@ -53,8 +53,8 @@ void SearchForm::showEvent(QShowEvent *event) void SearchForm::hideEvent(QHideEvent *event) { // clear highlighted text when hiding - if(view) { - view->findText(""); + if(m_view) { + m_view->findText(""); } event->accept(); } -- cgit v1.2.1