2024-07-15 13:34:40 +00:00
|
|
|
import QtQuick 2.15
|
2024-08-20 15:51:18 +00:00
|
|
|
import QtQuick.Layouts 1.15
|
2024-07-15 13:34:40 +00:00
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
|
|
|
import shared.popups 1.0
|
2024-08-08 20:53:49 +00:00
|
|
|
import utils 1.0
|
2024-07-15 13:34:40 +00:00
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
2024-08-20 15:51:18 +00:00
|
|
|
Logs { id: logs }
|
2024-07-15 13:34:40 +00:00
|
|
|
|
2024-08-20 15:51:18 +00:00
|
|
|
Item {
|
2024-07-15 13:34:40 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
PopupBackground {
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
|
|
|
|
|
|
|
onClicked: popup.open()
|
|
|
|
}
|
2024-08-20 15:51:18 +00:00
|
|
|
|
|
|
|
MetricsEnablePopup {
|
|
|
|
id: popup
|
|
|
|
anchors.centerIn: parent
|
|
|
|
modal: false
|
|
|
|
visible: true
|
|
|
|
placement: ctrlPlacement.currentValue
|
|
|
|
onSetMetricsEnabledRequested: logs.logEvent("setMetricsEnabledRequested", ["enabled"], arguments)
|
|
|
|
onClosed: logs.logEvent("closed()")
|
|
|
|
}
|
|
|
|
|
|
|
|
Connections {
|
|
|
|
target: Global
|
|
|
|
function onPrivacyPolicyRequested() {
|
|
|
|
logs.logEvent("Global::privacyPolicyRequested()")
|
|
|
|
}
|
|
|
|
}
|
2024-07-15 13:34:40 +00:00
|
|
|
}
|
|
|
|
|
2024-08-20 15:51:18 +00:00
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Label {
|
|
|
|
text: "Placement:"
|
|
|
|
}
|
|
|
|
ComboBox {
|
|
|
|
Layout.preferredWidth: 200
|
|
|
|
id: ctrlPlacement
|
|
|
|
model: [
|
|
|
|
Constants.metricsEnablePlacement.unknown,
|
|
|
|
Constants.metricsEnablePlacement.welcome,
|
|
|
|
Constants.metricsEnablePlacement.privacyAndSecurity,
|
|
|
|
Constants.metricsEnablePlacement.startApp
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Item { Layout.fillHeight: true }
|
|
|
|
}
|
2024-07-15 13:34:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Popups
|
|
|
|
|
|
|
|
// https://www.figma.com/design/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=24721-503547&t=a7IsC44aG7YQuInQ-0
|