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