2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared.controls 1.0
|
2021-10-20 08:34:05 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
2022-07-08 14:06:09 +00:00
|
|
|
import StatusQ.Popups.Dialog 0.1
|
2021-10-20 08:34:05 +00:00
|
|
|
|
2022-07-08 14:06:09 +00:00
|
|
|
StatusDialog {
|
|
|
|
id: root
|
2020-06-15 12:51:04 +00:00
|
|
|
|
2021-10-22 20:49:47 +00:00
|
|
|
property string activeChannelName
|
|
|
|
signal doRename(string groupName)
|
|
|
|
|
2022-07-08 14:06:09 +00:00
|
|
|
width: 400
|
|
|
|
title: qsTr("Group name")
|
|
|
|
standardButtons: Dialog.Save
|
|
|
|
|
2020-06-15 12:51:04 +00:00
|
|
|
onOpened: {
|
|
|
|
groupName.forceActiveFocus(Qt.MouseFocusReason)
|
2022-07-08 14:06:09 +00:00
|
|
|
groupName.text = root.activeChannelName
|
2020-06-15 12:51:04 +00:00
|
|
|
}
|
|
|
|
|
2022-07-08 14:06:09 +00:00
|
|
|
onAccepted: root.doRename(groupName.text)
|
2020-06-15 12:51:04 +00:00
|
|
|
|
2022-07-08 14:06:09 +00:00
|
|
|
Input {
|
|
|
|
id: groupName
|
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
placeholderText: qsTr("Group name")
|
|
|
|
Keys.onEnterPressed: doRename(groupName.text)
|
|
|
|
Keys.onReturnPressed: doRename(groupName.text)
|
|
|
|
}
|
2020-06-15 12:51:04 +00:00
|
|
|
}
|