summaryrefslogtreecommitdiff
path: root/components/Frame.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/Frame.qml')
-rw-r--r--components/Frame.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/Frame.qml b/components/Frame.qml
index ee66bd63..bc7de579 100644
--- a/components/Frame.qml
+++ b/components/Frame.qml
@@ -3,11 +3,12 @@ import "custom" as Components
import QtDesktop 0.1
Item {
- default property alias children: content.children
- width: Math.max(100, content.childrenRect.width + 2 * content.frameWidth)
- height: Math.max(100, content.childrenRect.height + 2 * content.frameWidth)
+ default property alias data: content.data
+ implicitWidth: adjustToContentSize ? content.childrenRect.width + 2 * content.frameWidth : 30
+ implicitHeight: adjustToContentSize ? content.childrenRect.height + 2 * content.frameWidth : 30
property alias raised: style.raised
property alias sunken: style.sunken
+ property bool adjustToContentSize: false
StyleItem {
id: style
anchors.fill: parent