Avoid further QML warnings of Plasmoid
This should avoid: ``` file:///usr/share/plasma/plasmoids/martchus.syncthingplasmoid-git/contents/ui/main.qml:13:34: QML FullRepresentation: Binding loop detected for property "implicitWidth" … qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead. … file:///usr/share/plasma/plasmoids/martchus.syncthingplasmoid-git/contents/ui/TabButton.qml:27:13: Unable to assign [undefined] to QFont … file:///usr/share/plasma/plasmoids/martchus.syncthingplasmoid-git/contents/ui/ToolButton.qml:23:13: Unable to assign [undefined] to QFont ```
This commit is contained in:
parent
56bc9b09d1
commit
4c920b6418
|
@ -4,13 +4,12 @@ import QtQml.Models 2.2
|
|||
import org.kde.plasma.components 2.0 as PlasmaComponents // for Menu and MenuItem
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||
|
||||
Item {
|
||||
property alias view: deviceView
|
||||
objectName: "DevicesPage"
|
||||
|
||||
PlasmaExtras.ScrollArea {
|
||||
PlasmaComponents3.ScrollView {
|
||||
anchors.fill: parent
|
||||
|
||||
TopLevelView {
|
||||
|
|
|
@ -4,7 +4,6 @@ import QtQml.Models 2.2
|
|||
import org.kde.plasma.components 2.0 as PlasmaComponents // for Menu and MenuItem
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||
import martchus.syncthingplasmoid 0.6 as SyncthingPlasmoid
|
||||
|
||||
ColumnLayout {
|
||||
|
@ -22,7 +21,7 @@ ColumnLayout {
|
|||
onTextChanged: directoryView.model.filterRegularExpression = new RegExp(text)
|
||||
}
|
||||
|
||||
PlasmaExtras.ScrollArea {
|
||||
PlasmaComponents3.ScrollView {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
|
|
|
@ -4,13 +4,12 @@ import QtQml.Models 2.2
|
|||
import org.kde.plasma.components 2.0 as PlasmaComponents // for Menu and MenuItem
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||
|
||||
Item {
|
||||
property alias view: downloadView
|
||||
objectName: "DownloadsPage"
|
||||
|
||||
PlasmaExtras.ScrollArea {
|
||||
PlasmaComponents3.ScrollView {
|
||||
anchors.fill: parent
|
||||
|
||||
TopLevelView {
|
||||
|
|
|
@ -4,13 +4,12 @@ import QtQml.Models 2.2
|
|||
import org.kde.plasma.components 2.0 as PlasmaComponents // for Menu and MenuItem
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||
|
||||
Item {
|
||||
property alias view: recentChangesView
|
||||
objectName: "RecentChangesPage"
|
||||
|
||||
PlasmaExtras.ScrollArea {
|
||||
PlasmaComponents3.ScrollView {
|
||||
anchors.fill: parent
|
||||
|
||||
TopLevelView {
|
||||
|
|
|
@ -24,7 +24,6 @@ PlasmaComponents3.TabButton {
|
|||
id: label
|
||||
visible: text.length > 0
|
||||
text: root.text
|
||||
font: root.parent.font
|
||||
color: PlasmaCore.ColorScope.textColor
|
||||
elide: Text.ElideRight
|
||||
Layout.fillHeight: true
|
||||
|
|
|
@ -20,7 +20,6 @@ PlasmaComponents3.ToolButton {
|
|||
id: label
|
||||
visible: text.length > 0
|
||||
text: root.text
|
||||
font: root.parent.font
|
||||
color: PlasmaCore.ColorScope.textColor
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
|
|
|
@ -17,12 +17,7 @@ Item {
|
|||
Plasmoid.icon: "syncthingtray"
|
||||
Plasmoid.toolTipMainText: plasmoid.nativeInterface.statusText
|
||||
Plasmoid.toolTipSubText: plasmoid.nativeInterface.additionalStatusText
|
||||
Plasmoid.toolTipItem: ToolTipView {
|
||||
Layout.minimumWidth: item ? item.width : 0
|
||||
Layout.maximumWidth: item ? item.width : 0
|
||||
Layout.minimumHeight: item ? item.height : 0
|
||||
Layout.maximumHeight: item ? item.height : 0
|
||||
}
|
||||
Plasmoid.toolTipItem: ToolTipView {}
|
||||
|
||||
Plasmoid.hideOnWindowDeactivate: true
|
||||
|
||||
|
|
Loading…
Reference in New Issue