From 9b6964c5db2ff46fb9f604dcb0ecd5ec86942c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 8 May 2023 16:23:55 +0800 Subject: Page & ToolBar --- Page.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Page.qml (limited to 'Page.qml') diff --git a/Page.qml b/Page.qml new file mode 100644 index 0000000..5087484 --- /dev/null +++ b/Page.qml @@ -0,0 +1,22 @@ +import QtQuick 2.15 +import QtQuick.Templates 2.15 +import Bootstrap 5.3 + +Page { + id: control + implicitWidth: Math.max(implicitBackgroundWidth + + leftInset + rightInset, + contentWidth + leftPadding + rightPadding, + implicitHeaderWidth, + implicitFooterWidth) + implicitHeight: Math.max(implicitBackgroundHeight + + topInset + bottomInset, + contentHeight + topPadding + bottomPadding + + (implicitHeaderHeight > 0 + ? implicitHeaderHeight + spacing : 0) + + (implicitFooterHeight > 0 + ? implicitFooterHeight + spacing : 0)) + background: Rectangle { + color: control.Bootstrap.bodyBg + } +} -- cgit v1.2.3