mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add scrollbar to profile dropdown
CURA-6843
This commit is contained in:
parent
027768f151
commit
f8951e4140
1 changed files with 138 additions and 129 deletions
|
|
@ -41,6 +41,18 @@ Popup
|
||||||
contentItem: Column
|
contentItem: Column
|
||||||
{
|
{
|
||||||
// This repeater adds the intent labels
|
// This repeater adds the intent labels
|
||||||
|
ScrollView
|
||||||
|
{
|
||||||
|
property real maximumHeight: screenScaleFactor * 400
|
||||||
|
|
||||||
|
height: Math.min(contentHeight, maximumHeight)
|
||||||
|
clip: true
|
||||||
|
|
||||||
|
ScrollBar.vertical.policy: height == maximumHeight ? ScrollBar.AlwaysOn: ScrollBar.AlwaysOff
|
||||||
|
|
||||||
|
Column
|
||||||
|
{
|
||||||
|
width: parent.width
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
model: dataModel
|
model: dataModel
|
||||||
|
|
@ -51,11 +63,7 @@ Popup
|
||||||
property variant subItemModel: model.qualities
|
property variant subItemModel: model.qualities
|
||||||
|
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
anchors
|
width: popup.contentWidth
|
||||||
{
|
|
||||||
left: parent.left
|
|
||||||
right: parent.right
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
|
@ -116,7 +124,6 @@ Popup
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Another "intent category" for custom profiles.
|
//Another "intent category" for custom profiles.
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
|
@ -186,6 +193,8 @@ Popup
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue