[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdeplasma-addons] applets/konsoleprofiles/package/contents/ui: fix indents
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-09 16:30:40
Message-ID: 20120209163040.59BDCA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 3c0fb6589d083244b422a773a47b2d37182cec26 by Shaun Reich.
Committed on 09/02/2012 at 17:30.
Pushed by sreich into branch 'master'.

fix indents

M  +77   -108  applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml

http://commits.kde.org/kdeplasma-addons/3c0fb6589d083244b422a773a47b2d37182cec26

diff --git a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml \
b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml index \
                bf48d49..6ed73fd 100644
--- a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
+++ b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
@@ -46,139 +46,108 @@ Item {
         plasmoid.aspectRatioMode = IgnoreAspectRatio;
     }
 
-
    PlasmaCore.Svg {
        id: lineSvg
        imagePath: "widgets/line"
     }
 
+    Row {
+        id: headerRow
+        anchors { left: parent.left; right: parent.right}
 
+        QIconItem {
+            icon: QIcon("utilities-terminal")
+            width: 32
+            height: 32
+        }
 
-        Row {
-            id: headerRow
-            anchors { left: parent.left; right: parent.right}
+        PlasmaComponents.Label {
+            id: header
+            text: i18n("Konsole Profiles")
+            anchors { top: parent.top;}
+            horizontalAlignment: Text.AlignHCenter
+        }
+    }
 
-//            height: parent.height
- //           width: parent.width
+    PlasmaCore.SvgItem {
+        id: separator
 
-            QIconItem {
-                icon: QIcon("utilities-terminal")
-                width: 32
-                height: 32
-            }
+        anchors { left: headerRow.left; right: headerRow.right; top: \
headerRow.bottom } +        svg: lineSvg
+        elementId: "horizontal-line"
+        height: lineSvg.elementSize("horizontal-line").height
+    }
 
-            PlasmaComponents.Label {
-                id: header
-                text: i18n("Konsole Profiles")
-                anchors { top: parent.top;}// left: parent.left; right: parent.right \
                }
-                horizontalAlignment: Text.AlignHCenter
-            }
-        }
+    //we use this to compute a fixed height for the items, and also to implement
+    //the said constant below (itemHeight)
+    Text {
+        id: textMetric
+        visible: false
+        // i think this should indeed technically be translated, even though we \
won't ever use it, just +        // its height/width
+        text: i18n("Arbitrary String Which Says The Dictionary Type")
+    }
 
-            PlasmaCore.SvgItem {
-                id: separator
+    ListView {
+        id: view
 
-//                anchors { left: parent.left; right: parent.right } //top: \
                header.bottom;  }
-//                anchors { topMargin: 3 }
-anchors { left: headerRow.left; right: headerRow.right; top: headerRow.bottom }
+        anchors { left: parent.left; right: scrollBar.left; bottom: parent.bottom; \
top: separator.bottom; topMargin: 10}  
-                svg: lineSvg
-                elementId: "horizontal-line"
-                height: lineSvg.elementSize("horizontal-line").height
-            }
+        model: profilesModel
+        spacing: 15
+        clip: true
 
+        delegate: Item {
+            id: listdelegate
+            height: textMetric.paintedHeight * 2
+            anchors { left: parent.left; leftMargin: 10; right: parent.right; \
rightMargin: 10 }  
-        //we use this to compute a fixed height for the items, and also to implement
-        //the said constant below (itemHeight)
-        Text {
-            id: textMetric
-            visible: false
-            // i think this should indeed technically be translated, even though we \
                won't ever use it, just
-            // its height/width
-            text: i18n("Arbitrary String Which Says The Dictionary Type")
-        }
+            Text {
+                id: profileText
+                anchors.fill: parent
+                text: model.prettyName
+            }
 
-//            anchors { top: parent.top; bottom: parent.bottom }
-//            width: parent.width //- scrollBar.width
-//            height: parent.height
-// //FIXME: wtf? work scrollbar, work damn you
-// contentHeight: 20 * view.count
-//            clip: true
-//
-            ListView {
-                id: view
-
-//                anchors { left: parent.left; right: scrollBar.left; bottom: \
                parent.bottom; top: parent.top }
-                anchors { left: parent.left; right: scrollBar.left; bottom: \
                parent.bottom; top: separator.bottom }
-//anchors.fill: parent
-                anchors.topMargin: 10
-
-                model: profilesModel
-                spacing: 15
-                clip: true
-
-                delegate: Item {
-                    id: listdelegate
-                    height: textMetric.paintedHeight * 2
-                    anchors { left: parent.left; leftMargin: 10; right: \
                parent.right; rightMargin: 10 }
-
-                    Text {
-                        id: profileText
-                        anchors.fill: parent
-                        //anchors { left: parent.left; right: parent.right; \
                verticalCenter: parent.verticalCenter }
-                        text: model.prettyName
-                    }
-
-                    MouseArea {
-                        height: parent.height + 15
-                        anchors { left: parent.left; right: parent.right;}
-                        hoverEnabled: true
-
-                        onClicked: {
-                            var service = \
                profilesSource.serviceForSource(model["DataEngineSource"])
-                            var operation = service.operationDescription("open")
-                            var job = service.startOperationCall(operation)
-                        }
-
-                        onEntered: {
-                            view.currentIndex = index
-                            view.highlightItem.opacity = 1
-                        }
-
-                        onExited: {
-                            view.highlightItem.opacity = 0
-                        }
-                    }
-                }
+            MouseArea {
+                height: parent.height + 15
+                anchors { left: parent.left; right: parent.right;}
+                hoverEnabled: true
 
-                highlight: PlasmaComponents.Highlight {
-                    anchors { left: parent.left; right: parent.right; leftMargin: \
                10; rightMargin: 10 }
-                    height: textMetric.paintedHeight
-                    hover: true;
+                onClicked: {
+                    var service = \
profilesSource.serviceForSource(model["DataEngineSource"]) +                    var \
operation = service.operationDescription("open") +                    var job = \
service.startOperationCall(operation)  }
 
-                highlightMoveDuration: 250
-                highlightMoveSpeed: 1
-
+                onEntered: {
+                    view.currentIndex = index
+                    view.highlightItem.opacity = 1
+                }
 
+                onExited: {
+                    view.highlightItem.opacity = 0
+                }
             }
-             
-        PlasmaComponents.ScrollBar {
-            id: scrollBar
-
-          //  anchors { right: parent.right }
-//          anchors { bottom:parent.bottom; top: parent.top; right: parent.right}
-anchors { bottom: parent.bottom; top: separator.top; right: parent.right }
-
-            orientation: Qt.Vertical
-       //     stepSize: 30 // textBrowser.lineCount / 4
-        //    scrollButtonInterval: 30 //textBrowser.lineCount / 4
+        }
 
-            flickableItem: view
+        highlight: PlasmaComponents.Highlight {
+            anchors { left: parent.left; right: parent.right; leftMargin: 10; \
rightMargin: 10 } +            hover: true;
         }
 
+        highlightMoveDuration: 250
+        highlightMoveSpeed: 1
+    }
 
+    PlasmaComponents.ScrollBar {
+        id: scrollBar
 
+        anchors { bottom: parent.bottom; top: separator.top; right: parent.right }
 
-//    property int itemHeight: heightMetric.height * 2
+        orientation: Qt.Vertical
+        stepSize: view.count / 4
+        scrollButtonInterval: view.count / 4
+
+        flickableItem: view
+    }
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic