blob: 54c68391672e7dec59d1c5273b1c764b87cae84a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
import QtQuick
import QtQuick.Controls
DialogButtonBox {
id: root
padding: DialogValues.popupDialogPadding
alignment: Qt.AlignRight | Qt.AlignBottom
background: Rectangle {
implicitHeight: 40
x: 1
y: 1
width: parent.width - 2
height: parent.height - 2
color: DialogValues.darkPaneColor
}
delegate: PopupDialogButton {
width: root.count === 1 ? root.availableWidth / 2 : undefined
}
}
|