2022-10-04 21:51:14 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
import StatusQ.Popups.Dialog 0.1
|
|
|
|
|
2022-10-04 21:51:14 +00:00
|
|
|
import AppLayouts.CommunitiesPortal 1.0
|
|
|
|
import AppLayouts.CommunitiesPortal.stores 1.0
|
|
|
|
|
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
SplitView {
|
2022-10-04 21:51:14 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
ColumnLayout {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
|
|
|
CommunitiesPortalLayout {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
communitiesStore: CommunitiesStore {
|
|
|
|
readonly property string locale: ""
|
|
|
|
readonly property int unreadNotificationsCount: 42
|
|
|
|
readonly property string communityTags:
|
|
|
|
JSON.stringify({"Activism":"✊","Art":"🎨","Blockchain":"🔗","Books & blogs":"📚","Career":"💼"})
|
|
|
|
readonly property var curatedCommunitiesModel: SortFilterProxyModel {
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
sourceModel: CommunitiesPortalDummyModel { id: mockedModel }
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
filters: IndexFilter {
|
|
|
|
inverted: true
|
|
|
|
minimumIndex: Math.floor(slider.value)
|
|
|
|
}
|
2022-10-04 21:51:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
StatusDialogDivider {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
Pane {
|
|
|
|
Row {
|
|
|
|
Text {
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
text: "number of communities:"
|
|
|
|
}
|
2022-10-04 21:51:14 +00:00
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
Slider {
|
|
|
|
id: slider
|
|
|
|
value: 9
|
|
|
|
from: 0
|
|
|
|
to: 9
|
|
|
|
}
|
2022-10-04 21:51:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-10 14:12:23 +00:00
|
|
|
Control {
|
|
|
|
SplitView.minimumWidth: 300
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
|
|
|
|
font.pixelSize: 13
|
|
|
|
|
|
|
|
CommunitiesPortalModelEditor {
|
|
|
|
anchors.fill: parent
|
|
|
|
model: mockedModel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|