Changeset View
Changeset View
Standalone View
Standalone View
webenginepart/src/webenginepage.cpp
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | 167 | { | |||
---|---|---|---|---|---|
180 | while (u2List.count() > 2) | 180 | while (u2List.count() > 2) | ||
181 | u2List.removeFirst(); | 181 | u2List.removeFirst(); | ||
182 | 182 | | |||
183 | return (u1List == u2List); | 183 | return (u1List == u2List); | ||
184 | } | 184 | } | ||
185 | 185 | | |||
186 | bool WebEnginePage::acceptNavigationRequest(const QUrl& url, NavigationType type, bool isMainFrame) | 186 | bool WebEnginePage::acceptNavigationRequest(const QUrl& url, NavigationType type, bool isMainFrame) | ||
187 | { | 187 | { | ||
188 | qDebug() << url << "type=" << type; | 188 | // qDebug() << url << "type=" << type; | ||
189 | QUrl reqUrl(url); | 189 | QUrl reqUrl(url); | ||
190 | 190 | | |||
191 | // Handle "mailto:" url here... | 191 | // Handle "mailto:" url here... | ||
192 | if (handleMailToUrl(reqUrl, type)) | 192 | if (handleMailToUrl(reqUrl, type)) | ||
193 | return false; | 193 | return false; | ||
194 | 194 | | |||
195 | const bool isTypedUrl = property("NavigationTypeUrlEntered").toBool(); | 195 | const bool isTypedUrl = property("NavigationTypeUrlEntered").toBool(); | ||
196 | 196 | | |||
▲ Show 20 Lines • Show All 732 Lines • Show Last 20 Lines |