fix for mainitem width

This commit is contained in:
Marco Martin 2011-11-25 19:08:04 +01:00
parent 215306ee13
commit 41dadc7729
2 changed files with 2 additions and 5 deletions

View File

@ -112,6 +112,7 @@ Item {
onActiveWindowChanged: if (!activeWindow) dialog.visible = false onActiveWindowChanged: if (!activeWindow) dialog.visible = false
mainItem: Item { mainItem: Item {
id: mainItem
width: theme.defaultFont.mSize.width * 40 width: theme.defaultFont.mSize.width * 40
height: titleBar.childrenRect.height + contentItem.childrenRect.height + buttonItem.childrenRect.height height: titleBar.childrenRect.height + contentItem.childrenRect.height + buttonItem.childrenRect.height
@ -133,6 +134,7 @@ Item {
Item { Item {
id: contentItem id: contentItem
onChildrenRectChanged: mainItem.width = childrenRect.width
clip: true clip: true
anchors { anchors {
top: titleBar.bottom top: titleBar.bottom

View File

@ -151,11 +151,6 @@ Item {
} }
sectionLabel.text = Sections.closestSection(y/listView.height) sectionLabel.text = Sections.closestSection(y/listView.height)
} }
Behavior on y {
NumberAnimation {
duration: 150
}
}
} }
PlasmaCore.FrameSvgItem { PlasmaCore.FrameSvgItem {
imagePath: "widgets/tooltip" imagePath: "widgets/tooltip"