mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Ladybird/Qt: Rename new_tab to new_tab_from_url and make it take AK::URL
Instead of having QString be the API for these load() calls, just pipe AK::URL throughout the UI.
This commit is contained in:
parent
a91680dd55
commit
c75bd4ed15
Notes:
sideshowbarker
2024-07-17 09:47:09 +09:00
Author: https://github.com/ADKaster
Commit: c75bd4ed15
Pull-request: https://github.com/SerenityOS/serenity/pull/23051
Reviewed-by: https://github.com/kalenikaliaksandr
Reviewed-by: https://github.com/trflynn89 ✅
6 changed files with 29 additions and 17 deletions
|
@ -21,3 +21,13 @@ QString qstring_from_ak_string(StringView ak_string)
|
|||
{
|
||||
return QString::fromUtf8(ak_string.characters_without_null_termination(), static_cast<qsizetype>(ak_string.length()));
|
||||
}
|
||||
|
||||
AK::URL ak_url_from_qstring(QString const& qstring)
|
||||
{
|
||||
return AK::URL(qstring.toUtf8().data());
|
||||
}
|
||||
|
||||
AK::URL ak_url_from_qurl(QUrl const& qurl)
|
||||
{
|
||||
return AK::URL(qurl.toString().toUtf8().data());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue