feat(StatusChatListAndCategories): Add tooltip settings for categories buttons

Closes: #226
This commit is contained in:
B.Melnik 2021-09-01 12:34:08 +03:00 committed by Michał Cieślak
parent d2fd625ee5
commit 8f83dbbca5
1 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import QtQuick.Controls 2.14 as QC
import StatusQ.Core.Utils 0.1 import StatusQ.Core.Utils 0.1
import StatusQ.Components 0.1 import StatusQ.Components 0.1
import StatusQ.Popups 0.1 import StatusQ.Popups 0.1
import StatusQ.Core 0.1
Item { Item {
id: statusChatListAndCategories id: statusChatListAndCategories
@ -12,6 +13,13 @@ Item {
implicitHeight: chatListsAndCategories.height implicitHeight: chatListsAndCategories.height
implicitWidth: chatListsAndCategories.width implicitWidth: chatListsAndCategories.width
property StatusTooltipSettings categoryAddButtonToolTip: StatusTooltipSettings {
text: "Add channel inside category"
}
property StatusTooltipSettings categoryMenuButtonToolTip: StatusTooltipSettings {
text: "More"
}
property string selectedChatId: "" property string selectedChatId: ""
property bool showCategoryActionButtons: false property bool showCategoryActionButtons: false
property bool showPopupMenu: true property bool showPopupMenu: true
@ -121,6 +129,9 @@ Item {
} }
} }
addButton.tooltip: statusChatListAndCategories.addButtonToolTip
menuButton.tooltip: statusChatListAndCategories.menuButtonToolTip
originalOrder: model.position originalOrder: model.position
categoryId: model.categoryId categoryId: model.categoryId
name: model.name name: model.name