summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2017-01-21 01:05:46 +0300
committerLiang Qi <liang.qi@qt.io>2017-01-22 21:05:36 +0000
commit37f9c3ea771ce340e1d0e474930798a3c188055b (patch)
tree0479b926964c9e133632bd8eb374938030d6a62e
parent7bf2d2add7630f0199078631538b695f06a5de58 (diff)
Fixed conversion of QWebPage::FindFlags to QWebPageAdapter::FindFlags
After 6255cb893d4 QFlags started to detect signedness of enum type correctly, changing internal storage type of FindFlags to uint. We should use FindFlags::Int type now instead of int. Task-number: QTBUG-58316 Change-Id: Ie346b6062681b49b064fdd9ac0e5897299f4bee5 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--Source/WebKit/qt/WidgetApi/qwebpage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebpage.cpp b/Source/WebKit/qt/WidgetApi/qwebpage.cpp
index 863621391..872f23b3a 100644
--- a/Source/WebKit/qt/WidgetApi/qwebpage.cpp
+++ b/Source/WebKit/qt/WidgetApi/qwebpage.cpp
@@ -3143,7 +3143,8 @@ QWebPageAdapter *QWebPage::handle() const
*/
bool QWebPage::findText(const QString &subString, FindFlags options)
{
- return d->findText(subString, static_cast<QWebPageAdapter::FindFlag>(options.operator int()));
+ return d->findText(subString, static_cast<QWebPageAdapter::FindFlag>(
+ static_cast<FindFlags::Int>(options)));
}
/*!