mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
0ab8a62896
- Renamed main `CommunitiesPortal` folder to `Communities`. - Created new `layouts` folder. - Moved layout files from chat to communities. - Created new `helpers` folder. - Moved helpers files from chat to communities. - Moved `controls/community` files from chat to communities `controls`. - Moved `panels/communities` files from chat to communities `panels`. - Moved `popups/community` files from chat to communities `popups`. - Moved `views/community` files from chat to communities `views`. - Moved `CommunityBanner` file from shared to `Communities/controls`. Only used in communities context. - Moved `CommunitySettingsView` and `CommunityColumnView` files from chat to communities `views`. - Moved `PermissionsStore.qml` file to `shared/stores`. - Updated imports. - Updated storybook. Part of #6204
46 lines
1008 B
QML
46 lines
1008 B
QML
import QtQuick 2.14
|
|
|
|
import StatusQ.Components 0.1
|
|
import StatusQ.Controls 0.1
|
|
|
|
StatusListItem {
|
|
property alias checked: checkBox.checked
|
|
property alias checkState: checkBox.checkState
|
|
readonly property alias checkBox: checkBox
|
|
|
|
implicitHeight: 44
|
|
leftPadding: 8
|
|
rightPadding: 3
|
|
statusListItemTitle.font.pixelSize: 13
|
|
|
|
statusListItemTitleArea.anchors.leftMargin: 8
|
|
|
|
asset.bgWidth: 32
|
|
asset.bgHeight: 32
|
|
|
|
asset.isLetterIdenticon: true
|
|
asset.letterSize: 12
|
|
asset.width: 32
|
|
asset.height: 32
|
|
|
|
components: [
|
|
StatusCheckBox {
|
|
id: checkBox
|
|
|
|
size: StatusCheckBox.Size.Small
|
|
rightPadding: 0
|
|
}
|
|
]
|
|
|
|
// using MouseArea instead of build-in 'clicked' signal to avoid
|
|
// intercepting event by the StatusCheckBox
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
checkBox.toggle()
|
|
checkBox.toggled()
|
|
}
|
|
cursorShape: Qt.PointingHandCursor
|
|
}
|
|
}
|