[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdeplasma-addons] applets/konsoleprofiles/package/contents/ui: great. now i can't get the scrollbar
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-02-07 5:26:01
Message-ID: 20120207052601.5818DA60A6 () git ! kde ! org
[Download RAW message or body]
Git commit f703c641b46aab408277e983c351c90c0e07ce6a by Shaun Reich.
Committed on 07/02/2012 at 06:25.
Pushed by sreich into branch 'master'.
great. now i can't get the scrollbar to work properly
lol, this applet really hates me. the other one works beautifully :(
i *must* be missing something easy
M +13 -10 applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
http://commits.kde.org/kdeplasma-addons/f703c641b46aab408277e983c351c90c0e07ce6a
diff --git a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml \
b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml index \
99c9c63..03f3bcb 100644
--- a/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
+++ b/applets/konsoleprofiles/package/contents/ui/konsoleprofiles.qml
@@ -101,30 +101,31 @@ Item {
Flickable {
id: flickable
- width: parent.width
+ width: parent.width - scrollBar.width
height: parent.height
- //FIXME: contentHeight: mainWindow.listdictionaries ? 0 : \
textBrowser.paintedHeight + //FIXME: wtf? work scrollbar, work damn you
+ //contentHeight: 2000
clip: true
ListView {
id: view
anchors.fill: parent
- anchors.topMargin: 20
+ anchors.topMargin: 10
model: profilesModel
spacing: 15
delegate: Item {
id: listdelegate
- height: textMetric.paintedHeight
+ height: textMetric.paintedHeight * 2
anchors { left: parent.left; leftMargin: 10; right: \
parent.right; rightMargin: 10 }
Text {
- id: text
+ id: profileText
anchors.fill: parent
//anchors { left: parent.left; right: parent.right; \
verticalCenter: parent.verticalCenter }
- text: model.prettyName
+ text: model.prettyName
}
MouseArea {
@@ -133,7 +134,9 @@ Item {
hoverEnabled: true
onClicked: {
- console.log("CLICKED: " + model.name)
+ var service = \
profilesSource.serviceForSource(model["DataEngineSource"]) + \
var operation = service.operationDescription("open") + var \
job = service.startOperationCall(operation) }
onEntered: {
@@ -161,11 +164,11 @@ Item {
PlasmaComponents.ScrollBar {
id: scrollBar
- anchors { bottom: parent.bottom }
+ anchors { right: parent.right }
orientation: Qt.Vertical
- stepSize: 40 // textBrowser.lineCount / 4
- scrollButtonInterval: 40 //textBrowser.lineCount / 4
+ stepSize: 10 // textBrowser.lineCount / 4
+ scrollButtonInterval: 10 //textBrowser.lineCount / 4
flickableItem: flickable
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic