A better implementation to do the same as the previous commit
This commit is contained in:
parent
c248a16b67
commit
00632aaa6a
1 changed files with 2 additions and 18 deletions
|
@ -19,7 +19,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
import org.kde.plasma.graphicswidgets 0.1 as PlasmaWidgets
|
|
||||||
import org.kde.plasma.core 0.1 as PlasmaCore
|
import org.kde.plasma.core 0.1 as PlasmaCore
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -31,26 +30,11 @@ Item {
|
||||||
return (plasmoid.formFactor == Vertical || plasmoid.formFactor == Horizontal);
|
return (plasmoid.formFactor == Vertical || plasmoid.formFactor == Horizontal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PlasmaCore.IconItem {
|
||||||
/*
|
|
||||||
PlasmaWidgets.IconWidget {
|
|
||||||
id: icon
|
id: icon
|
||||||
Component.onCompleted: setIconByName("smartphone");
|
source: "smartphone"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
PlasmaCore.Svg {
|
|
||||||
id: svg
|
|
||||||
imagePath: "icons/smartphone"
|
|
||||||
}
|
|
||||||
|
|
||||||
PlasmaCore.SvgItem {
|
|
||||||
anchors.fill: parent
|
|
||||||
svg: svg
|
|
||||||
height: view.height
|
|
||||||
width: view.width
|
|
||||||
}
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: mouseArea
|
id: mouseArea
|
||||||
|
|
Loading…
Reference in a new issue