31 lines
681 B
QML
31 lines
681 B
QML
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
import QtQuick 2.12
|
|
import "../Base"
|
|
|
|
HPopup {
|
|
id: popup
|
|
|
|
|
|
default property alias pageData: page.columnData
|
|
readonly property alias page: page
|
|
|
|
signal keyboardAccept()
|
|
|
|
|
|
HFlickableColumnPage {
|
|
id: page
|
|
implicitWidth: Math.min(
|
|
popup.maximumPreferredWidth,
|
|
theme.controls.popup.defaultWidth,
|
|
)
|
|
implicitHeight: Math.min(
|
|
popup.maximumPreferredHeight,
|
|
implicitHeaderHeight + implicitFooterHeight + contentHeight,
|
|
)
|
|
|
|
Keys.onReturnPressed: popup.keyboardAccept()
|
|
Keys.onEnterPressed: popup.keyboardAccept()
|
|
}
|
|
}
|