port category delegate to qtcontrols

This commit is contained in:
Marco Martin 2013-07-16 23:37:20 +02:00
parent 6f8cda6fea
commit 0234bae6d4
2 changed files with 5 additions and 5 deletions

View File

@ -99,6 +99,7 @@ Rectangle {
QtControls.ScrollView{ QtControls.ScrollView{
id: categoriesScroll id: categoriesScroll
frameVisible: true
anchors { anchors {
top: parent.top top: parent.top
bottom: parent.bottom bottom: parent.bottom
@ -121,7 +122,7 @@ Rectangle {
color: syspal.base color: syspal.base
Rectangle { Rectangle {
color: theme.highlightColor color: syspal.highlight
width: parent.width width: parent.width
height: theme.iconSizes.IconSizeHuge height: theme.iconSizes.IconSizeHuge
y: index * height y: index * height
@ -132,7 +133,7 @@ Rectangle {
} }
} }
} }
ColumnLayout { Column {
id: categoriesColumn id: categoriesColumn
width: parent.width width: parent.width
Repeater { Repeater {

View File

@ -17,8 +17,7 @@
*/ */
import QtQuick 2.0 import QtQuick 2.0
import org.kde.plasma.components 2.0 as PlasmaComponents import QtQuick.Controls 1.0 as QtControls
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
MouseArea { MouseArea {
@ -68,7 +67,7 @@ MouseArea {
height: width height: width
source: model.icon source: model.icon
} }
PlasmaComponents.Label { QtControls.Label {
anchors { anchors {
left: parent.left left: parent.left
right: parent.right right: parent.right