diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-19 20:45:57 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-19 20:45:57 +0200 |
commit | efda425b6a569e135e6ff51a4124d52c844b28d8 (patch) | |
tree | ebbc32b0293d7f5057ba4ea9ca4dcdcd62a97211 /resources/qml/delegates | |
parent | 0278c9d5fb57c9aa703ab10361fdb17186b2ddd1 (diff) |
Some qmllint fixes
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/EncryptionEnabled.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/qml/delegates/EncryptionEnabled.qml b/resources/qml/delegates/EncryptionEnabled.qml index c8671c84..0e2b7fc0 100644 --- a/resources/qml/delegates/EncryptionEnabled.qml +++ b/resources/qml/delegates/EncryptionEnabled.qml @@ -4,7 +4,6 @@ import ".." import QtQuick 2.15 -import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import im.nheko 1.0 @@ -15,7 +14,6 @@ Rectangle { radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium width: parent.width ? Math.min(parent.width, 700) : 0 - anchors.horizontalCenter: parent.horizontalCenter height: contents.implicitHeight + Nheko.paddingMedium * 2 color: palette.alternateBase border.color: Nheko.theme.green @@ -31,8 +29,8 @@ Rectangle { Image { source: "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?" + Nheko.theme.green Layout.alignment: Qt.AlignVCenter - width: 24 - height: width + Layout.preferredWidth: 24 + Layout.preferredHeight: 24 } Column { |