mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: don't initialize flags with just an integer
This is slightly different from the previous cleanup around QFlag use as this one is related to QtWebKit flags. But the logic is the same. Just syntax to avoid a warning. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d58c962bdb
commit
bbf76f9ee7
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ UserManual::UserManual(QWidget *parent) : QDialog(parent)
|
|||
setLayout(vboxLayout);
|
||||
}
|
||||
|
||||
void UserManual::search(QString text, QWebPage::FindFlags flags = 0)
|
||||
void UserManual::search(QString text, QWebPage::FindFlags flags = QFlag(0))
|
||||
{
|
||||
if (userManual->findText(text, QWebPage::FindWrapsAroundDocument | flags) || text.length() == 0) {
|
||||
searchBar->setStyleSheet("");
|
||||
|
|
Loading…
Add table
Reference in a new issue