replace QIconItem with Latte.IconItems

pull/1/head
Michail Vourlakos 8 years ago
parent 7896919736
commit 6bcd39d07d

@ -25,6 +25,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlAddons
import org.kde.latte 0.1 as Latte
Component {
id: imageBufferingComponent
@ -53,15 +54,16 @@ Component {
visible:false
KQuickControlAddons.QIconItem{
//KQuickControlAddons.QIconItem{
Latte.IconItem{
id: iconImage
width: root.iconSize
height: width
anchors.centerIn: parent
icon: decoration
state: KQuickControlAddons.QIconItem.DefaultState
source: decoration //icon: decoration
//state: KQuickControlAddons.QIconItem.DefaultState
enabled: true
visible: true

@ -27,6 +27,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.private.taskmanager 0.1 as TaskManagerApplet
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlAddons
import org.kde.latte 0.1 as Latte
//I am using KQuickControlAddons.QIconItem even though onExit it triggers the following error
//QObject::~QObject: Timers cannot be stopped from another thread
@ -138,14 +139,16 @@ Item{
color: "transparent"
}*/
KQuickControlAddons.QIconItem{
// KQuickControlAddons.QIconItem{
Latte.IconItem{
id: iconImageBuffer
// anchors.centerIn: parent
width: Math.round(newTempSize) //+ 2*centralItem.shadowSize
height: Math.round(width)
icon: decoration
//icon: decoration
source: decoration
property int zoomedSize: root.zoomFactor * root.iconSize

Loading…
Cancel
Save