Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
47fa3039
Commit
47fa3039
authored
Oct 12, 2022
by
Laurent Montel
Browse files
This method was removed in qt6
parent
ac4f61f5
Pipeline
#246378
passed with stage
in 20 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/webengineurlinterceptor/adblock/lib/adblockrule.cpp
View file @
47fa3039
...
...
@@ -21,7 +21,12 @@ using namespace AdBlock;
static
QString
toSecondLevelDomain
(
const
QUrl
&
url
)
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
const
QString
topLevelDomain
=
url
.
topLevelDomain
();
#else
qWarning
()
<<
"QT6! topLevelDomain not ported"
;
const
QString
topLevelDomain
=
url
.
toString
();
#endif
const
QString
urlHost
=
url
.
host
();
if
(
topLevelDomain
.
isEmpty
()
||
urlHost
.
isEmpty
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment