mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Some qmllint fixes
This commit is contained in:
parent
0278c9d5fb
commit
efda425b6a
3 changed files with 6 additions and 8 deletions
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
import ".."
|
import ".."
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
import QtQuick.Controls 2.15
|
|
||||||
import QtQuick.Layouts 1.15
|
import QtQuick.Layouts 1.15
|
||||||
import im.nheko 1.0
|
import im.nheko 1.0
|
||||||
|
|
||||||
|
@ -15,7 +14,6 @@ Rectangle {
|
||||||
|
|
||||||
radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium
|
radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium
|
||||||
width: parent.width ? Math.min(parent.width, 700) : 0
|
width: parent.width ? Math.min(parent.width, 700) : 0
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
height: contents.implicitHeight + Nheko.paddingMedium * 2
|
height: contents.implicitHeight + Nheko.paddingMedium * 2
|
||||||
color: palette.alternateBase
|
color: palette.alternateBase
|
||||||
border.color: Nheko.theme.green
|
border.color: Nheko.theme.green
|
||||||
|
@ -31,8 +29,8 @@ Rectangle {
|
||||||
Image {
|
Image {
|
||||||
source: "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?" + Nheko.theme.green
|
source: "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?" + Nheko.theme.green
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
width: 24
|
Layout.preferredWidth: 24
|
||||||
height: width
|
Layout.preferredHeight: 24
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Nheko Contributors
|
// SPDX-FileCopyrightText: Nheko Contributors
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
pragma ComponentBehavior: Bound
|
||||||
import ".."
|
import ".."
|
||||||
import "../ui"
|
import "../ui"
|
||||||
import Qt.labs.platform 1.1 as Platform
|
import Qt.labs.platform 1.1 as Platform
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
import QtQuick 2.9
|
import QtQuick 2.9
|
||||||
import QtQuick.Controls 2.3
|
import QtQuick.Controls 2.3
|
||||||
import QtQuick.Layouts 1.2
|
import QtQuick.Layouts 1.2
|
||||||
import im.nheko 1.0
|
|
||||||
|
|
||||||
Popup {
|
Popup {
|
||||||
|
id: r
|
||||||
property string errorString
|
property string errorString
|
||||||
property var image
|
property var image
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@ Popup {
|
||||||
Image {
|
Image {
|
||||||
Layout.preferredWidth: 16
|
Layout.preferredWidth: 16
|
||||||
Layout.preferredHeight: 16
|
Layout.preferredHeight: 16
|
||||||
source: "image://colorimage/" + image + "?" + palette.windowText
|
source: "image://colorimage/" + r.image + "?" + palette.windowText
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: errorString
|
text: r.errorString
|
||||||
color: palette.windowText
|
color: palette.windowText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue