File use-native-plasma-components.patch of Package plasma5-pk-updates
From: Jan Grulich <jgrulich@redhat.com>
Date: Mon, 15 Feb 2016 12:40:45 +0000
Subject: Use native plasma components
X-Git-Url: http://quickgit.kde.org/?p=plasma-pk-updates.git&a=commitdiff&h=fccda5d0a74348b9eb252fc21069cca36a5dc516
---
Use native plasma components
BUG:359308
---
--- a/src/plasma/contents/ui/Full.qml
+++ b/src/plasma/contents/ui/Full.qml
@@ -90,7 +90,8 @@
rightMargin: Math.round(units.gridUnit / 2)
}
spacing: units.largeSpacing
- Label {
+
+ PlasmaComponents.Label {
id: timestampLabel
visible: !PkUpdates.isActive
wrapMode: Text.WordWrap
@@ -99,7 +100,8 @@
opacity: 0.6;
text: PkUpdates.timestamp
}
- Label {
+
+ PlasmaComponents.Label {
visible: PkUpdates.isActive
font.pointSize: theme.smallestFont.pointSize;
opacity: 0.6;
@@ -159,7 +161,7 @@
}
}
- Button {
+ PlasmaComponents.Button {
id: btnCheck
visible: !PkUpdates.count && PkUpdates.isNetworkOnline && !PkUpdates.isActive
enabled: !PkUpdates.isActive
@@ -173,7 +175,7 @@
onClicked: PkUpdates.checkUpdates() // circumvent the checks, the user knows what they're doing ;)
}
- Button {
+ PlasmaComponents.Button {
id: btnUpdate
visible: PkUpdates.count && PkUpdates.isNetworkOnline && !PkUpdates.isActive
enabled: __anySelected
@@ -187,7 +189,7 @@
onClicked: PkUpdates.installUpdates(selectedPackages())
}
- BusyIndicator {
+ PlasmaComponents.BusyIndicator {
running: PkUpdates.isActive
visible: running
anchors.horizontalCenter: parent.horizontalCenter
--- a/src/plasma/contents/ui/PackageDelegate.qml
+++ b/src/plasma/contents/ui/PackageDelegate.qml
@@ -72,6 +72,7 @@
elide: Text.ElideRight;
text: i18nc("Package Name (Version)", "%1 (%2)", name, version)
}
+
PlasmaComponents.Label {
id: packageDescriptionLabel
height: paintedHeight