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
@ -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…
x
Reference in New Issue
Block a user