Convert more items to controls 2 for toolbox

This commit is contained in:
Jaime van Kessel 2021-11-16 10:23:32 +01:00
parent ef9b5506ce
commit 82e2f038ac
5 changed files with 20 additions and 57 deletions

View file

@ -2,8 +2,7 @@
// Toolbox is released under the terms of the LGPLv3 or higher.
import QtQuick 2.10
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import QtQuick.Controls 2.1
import UM 1.5 as UM
import Cura 1.1 as Cura
@ -120,6 +119,7 @@ Item
{
text: details === null ? "" : (details.version || catalog.i18nc("@label", "Unknown"))
}
UM.Label
{
text:
@ -134,17 +134,7 @@ Item
}
UM.Label
{
text:
{
if (details === null)
{
return ""
}
else
{
return "<a href=\"" + details.website + "\">" + details.author_name + "</a>"
}
}
text: details === null ? "" : "<a href=\"" + details.website + "\">" + details.author_name + "</a>"
onLinkActivated: UM.UrlUtil.openUrl(link, ["http", "https"])
}
UM.Label