chatbar: remove redundant code
This commit is contained in:
@@ -78,19 +78,6 @@ Item {
|
|||||||
room: root.currentRoom
|
room: root.currentRoom
|
||||||
maxAvailableWidth: chatBarSizeHelper.availableWidth
|
maxAvailableWidth: chatBarSizeHelper.availableWidth
|
||||||
}
|
}
|
||||||
MouseArea {
|
|
||||||
id: hoverArea
|
|
||||||
anchors {
|
|
||||||
top: chatModeButton.top
|
|
||||||
left: root.left
|
|
||||||
right: root.right
|
|
||||||
bottom: core.top
|
|
||||||
}
|
|
||||||
propagateComposedEvents: true
|
|
||||||
hoverEnabled: true
|
|
||||||
acceptedButtons: Qt.NoButton
|
|
||||||
}
|
|
||||||
|
|
||||||
LibNeoChat.DelegateSizeHelper {
|
LibNeoChat.DelegateSizeHelper {
|
||||||
id: chatBarSizeHelper
|
id: chatBarSizeHelper
|
||||||
parentItem: root
|
parentItem: root
|
||||||
|
|||||||
@@ -194,9 +194,8 @@ RowLayout {
|
|||||||
icon.name: "edit-select-text-symbolic"
|
icon.name: "edit-select-text-symbolic"
|
||||||
text: i18nc("@action:button", "Rich Text")
|
text: i18nc("@action:button", "Rich Text")
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
onClicked: NeoChatConfig.sendMessageWith = NeoChatConfig.sendMessageWith === 0 ? 1 : 0
|
onClicked: NeoChatConfig.sendMessageWith = checked
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: NeoChatConfig === 1
|
|
||||||
|
|
||||||
QQC2.ToolTip.visible: hovered
|
QQC2.ToolTip.visible: hovered
|
||||||
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
|
|||||||
Reference in New Issue
Block a user