Compare commits
12 Commits
827168b4a8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b2500c841 | |||
| c08b654f5b | |||
| 90f65a8a54 | |||
| d2821b30c3 | |||
| 541b57e5a7 | |||
| ad4119ec6c | |||
| 01716fcccf | |||
| 5dbf9a8383 | |||
| 549bf794b6 | |||
| 6d32ed6bce | |||
| 5a150c29f9 | |||
| 7854a3f440 |
+13
-3
@@ -20,13 +20,12 @@ set(QML_IMPORT_PATH ${QT_QML_OUTPUT_DIRECTORY}
|
|||||||
FORCE
|
FORCE
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(Qt6 6.8 REQUIRED COMPONENTS Core Gui Widgets Qml Quick QuickControls2 QuickTimeline ShaderTools)
|
find_package(Qt6 6.8 REQUIRED COMPONENTS Core Gui Widgets Qml Quick QuickControls2 QuickTimeline ShaderTools Concurrent)
|
||||||
qt_standard_project_setup()
|
qt_standard_project_setup()
|
||||||
|
|
||||||
qt_add_executable(${CMAKE_PROJECT_NAME}
|
qt_add_executable(${CMAKE_PROJECT_NAME}
|
||||||
README.md
|
README.md
|
||||||
LICENSE
|
LICENSE
|
||||||
images/icons/icons8-video.svg
|
|
||||||
)
|
)
|
||||||
qt_add_resources(${CMAKE_PROJECT_NAME} "configuration"
|
qt_add_resources(${CMAKE_PROJECT_NAME} "configuration"
|
||||||
PREFIX "/"
|
PREFIX "/"
|
||||||
@@ -59,6 +58,18 @@ qt_add_resources(${CMAKE_PROJECT_NAME} "app_images"
|
|||||||
"images/icons/icons8-user-account.svg"
|
"images/icons/icons8-user-account.svg"
|
||||||
"images/icons/icons8-view-more.svg"
|
"images/icons/icons8-view-more.svg"
|
||||||
"images/icons/icons8-video.svg"
|
"images/icons/icons8-video.svg"
|
||||||
|
"images/icons/pexels-icon-filled-256.svg"
|
||||||
|
"images/icons/icons8-trash.svg"
|
||||||
|
"images/icons/icons8-download.svg"
|
||||||
|
"images/icons/icons8-play.svg"
|
||||||
|
"images/icons/icons8-stop.svg"
|
||||||
|
"images/icons/icons8-codepen.svg"
|
||||||
|
"images/icons/icons8-cube.svg"
|
||||||
|
"images/icons/icons8-camera.svg"
|
||||||
|
"images/icons/icons8-audio.svg"
|
||||||
|
"images/icons/icons8-3d-model.svg"
|
||||||
|
"images/icons/icons8-3d-glasses.svg"
|
||||||
|
"images/icons/kofi.gif"
|
||||||
"images/kero/kero_build_1.png"
|
"images/kero/kero_build_1.png"
|
||||||
"images/kero/kero_build_2.png"
|
"images/kero/kero_build_2.png"
|
||||||
"images/kero/kero_build_3.png"
|
"images/kero/kero_build_3.png"
|
||||||
@@ -75,7 +86,6 @@ qt_add_resources(${CMAKE_PROJECT_NAME} "app_images"
|
|||||||
"images/kero/kero_run_4.png"
|
"images/kero/kero_run_4.png"
|
||||||
"images/kero/kero_success.png"
|
"images/kero/kero_success.png"
|
||||||
"images/kero/kero_warning.png"
|
"images/kero/kero_warning.png"
|
||||||
"images/icons/icons8-trash.svg"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
include(qds)
|
include(qds)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ qt6_add_qml_module(KomplexHubContent
|
|||||||
"pages/SettingsPage.qml"
|
"pages/SettingsPage.qml"
|
||||||
"pages/UserProfilePage.qml"
|
"pages/UserProfilePage.qml"
|
||||||
"pages/WallpaperSettingsPage.qml"
|
"pages/WallpaperSettingsPage.qml"
|
||||||
QML_FILES pages/VideoSearchPage.qml
|
"pages/VideoSearchPage.qml"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import KomplexHubContent
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property MenuButton currentMenuButton
|
property MenuButton currentMenuButton
|
||||||
|
property bool popup: false
|
||||||
|
|
||||||
id: windowRoot
|
id: windowRoot
|
||||||
|
|
||||||
@@ -35,8 +36,43 @@ Rectangle {
|
|||||||
|
|
||||||
color: palette.base.lighter()
|
color: palette.base.lighter()
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout
|
||||||
|
{
|
||||||
|
height: popup ? 64 : 0
|
||||||
|
opacity: popup ? 1 : 0
|
||||||
|
|
||||||
|
MenuButton
|
||||||
|
{
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
|
||||||
|
height: 64
|
||||||
|
width: 100
|
||||||
|
text: qsTr("Back")
|
||||||
|
|
||||||
|
icon.height: 32
|
||||||
|
icon.width: 32
|
||||||
|
icon.url: "qrc:/images/icons/icons8-reply-arrow.svg"
|
||||||
|
|
||||||
|
onTriggered: () => {
|
||||||
|
pageLoader.item.closePopup()
|
||||||
|
selected = false
|
||||||
|
}
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout
|
||||||
|
{
|
||||||
|
opacity: popup ? 0 : 1
|
||||||
|
visible: opacity > 0.01
|
||||||
id: windowMenuLayout
|
id: windowMenuLayout
|
||||||
|
Layout.fillHeight: true
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
MenuButton {
|
MenuButton {
|
||||||
@@ -125,7 +161,6 @@ Rectangle {
|
|||||||
currentMenuButton = this
|
currentMenuButton = this
|
||||||
|
|
||||||
searchContainer.preferredHeight = 50
|
searchContainer.preferredHeight = 50
|
||||||
// searchContainer.searchTerm = pageLoader.page.query
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,6 +187,7 @@ Rectangle {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
Layout.minimumHeight: 100
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuButton {
|
MenuButton {
|
||||||
@@ -174,6 +210,13 @@ Rectangle {
|
|||||||
searchContainer.preferredHeight = 0
|
searchContainer.preferredHeight = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,6 +293,7 @@ Rectangle {
|
|||||||
{
|
{
|
||||||
pageLoader.loading = false
|
pageLoader.loading = false
|
||||||
pageLoader.updateSearchTerm();
|
pageLoader.updateSearchTerm();
|
||||||
|
popupConnection.target = pageLoader.item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -317,25 +361,34 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KeroBuildingAnimation {
|
KeroBuildingAnimation
|
||||||
|
{
|
||||||
id: buildingOverlay
|
id: buildingOverlay
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: false
|
visible: false
|
||||||
}
|
}
|
||||||
|
|
||||||
KeroLoadingAnimation {
|
KeroLoadingAnimation
|
||||||
|
{
|
||||||
id: loadingAnimation
|
id: loadingAnimation
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
// OpacityAnimator on opacity {
|
|
||||||
// duration: 150
|
|
||||||
// }
|
|
||||||
|
|
||||||
visible: opacity > 0
|
visible: opacity > 0
|
||||||
opacity: 0
|
opacity: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections
|
||||||
|
{
|
||||||
|
id: popupConnection
|
||||||
|
target: pageLoader.item
|
||||||
|
|
||||||
|
function onPopupChanged()
|
||||||
|
{
|
||||||
|
windowRoot.popup = pageLoader.item.popup
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Component.onCompleted: () => {
|
Component.onCompleted: () => {
|
||||||
homeMenubutton.selected = true
|
homeMenubutton.selected = true
|
||||||
currentMenuButton = homeMenubutton
|
currentMenuButton = homeMenubutton
|
||||||
|
|||||||
@@ -8,29 +8,33 @@ import KomplexHub.Controls
|
|||||||
import KomplexHub.Kero
|
import KomplexHub.Kero
|
||||||
import KomplexHubPlugin
|
import KomplexHubPlugin
|
||||||
|
|
||||||
Item {
|
Item
|
||||||
|
{
|
||||||
readonly property bool searchable: false
|
readonly property bool searchable: false
|
||||||
property int resultsPerRow: (homePageRoot.width - (64 + Constants.largeMargin)) / (resultWidth + Constants.largeMargin) + 1
|
property int resultsPerRow: (homePageRoot.width - (64 + Constants.largeMargin)) / (resultWidth + Constants.largeMargin) + 1
|
||||||
property int resultWidth: 256
|
property int resultWidth: 256
|
||||||
property int resultHeight: 256
|
property int resultHeight: 245
|
||||||
|
property bool popup: false
|
||||||
|
|
||||||
|
clip: true
|
||||||
|
|
||||||
id: homePageRoot
|
id: homePageRoot
|
||||||
|
|
||||||
NewestPacksModel
|
NewestPacksModel
|
||||||
{
|
{
|
||||||
id: newestPacksModel
|
id: packsModel
|
||||||
resultsPerPage: homePageRoot.resultsPerRow
|
resultsPerPage: homePageRoot.resultsPerRow
|
||||||
}
|
}
|
||||||
|
|
||||||
FeaturedImagesModel
|
FeaturedImagesModel
|
||||||
{
|
{
|
||||||
id: featuredImagesModel
|
id: imagesModel
|
||||||
resultsPerPage: homePageRoot.resultsPerRow
|
resultsPerPage: homePageRoot.resultsPerRow
|
||||||
}
|
}
|
||||||
|
|
||||||
FeaturedVideosModel
|
FeaturedVideosModel
|
||||||
{
|
{
|
||||||
id: featuredVideosModel
|
id: videosModel
|
||||||
resultsPerPage: homePageRoot.resultsPerRow
|
resultsPerPage: homePageRoot.resultsPerRow
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,349 +43,315 @@ Item {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: palette.base
|
color: palette.base
|
||||||
|
|
||||||
ScrollView
|
ColumnLayout
|
||||||
{
|
{
|
||||||
id: newPacksView
|
id: resultsLayout
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Constants.largeMargin
|
anchors.margins: Constants.mediumMargin
|
||||||
|
|
||||||
ColumnLayout
|
Text
|
||||||
{
|
{
|
||||||
width: newPacksView.width
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredHeight: 50
|
||||||
|
|
||||||
ColumnLayout
|
color: palette.text
|
||||||
|
font.pixelSize: Constants.h2Font.pixelSize
|
||||||
|
font.bold: true
|
||||||
|
text: qsTr("Newest Wallpaper Packs")
|
||||||
|
verticalAlignment: Qt.AlignVCenter
|
||||||
|
}
|
||||||
|
|
||||||
|
HorizontalPaginator
|
||||||
|
{
|
||||||
|
id: packsPaginator
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 245
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
|
||||||
|
model: packsModel
|
||||||
|
delegate: ItemDelegate
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: resultWidth
|
||||||
height: 420
|
height: resultHeight
|
||||||
|
|
||||||
Text
|
required property string name
|
||||||
|
required property string author
|
||||||
|
required property string description
|
||||||
|
required property string uuid
|
||||||
|
required property string thumbnail
|
||||||
|
required property string authorId
|
||||||
|
required property int index
|
||||||
|
|
||||||
|
SearchResultItem
|
||||||
{
|
{
|
||||||
color: palette.text
|
anchors.fill: parent
|
||||||
font.pixelSize: Constants.h2Font.pixelSize
|
title: parent.name
|
||||||
font.bold: true
|
author: parent.author
|
||||||
text: qsTr("Newest Wallpaper Packs")
|
description: parent.description
|
||||||
}
|
thumbnail: parent.thumbnail
|
||||||
|
uuid: parent.uuid
|
||||||
|
|
||||||
RowLayout
|
selected: packsPaginator.currentIndex === parent.index
|
||||||
{
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 256
|
|
||||||
|
|
||||||
Rectangle
|
onTriggered: () => packsPaginator.currentIndex = parent.index
|
||||||
|
|
||||||
|
function onViewMoreTriggered()
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
clip: true
|
|
||||||
Row
|
|
||||||
{
|
|
||||||
clip: true
|
|
||||||
spacing: Constants.mediumMargin
|
|
||||||
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.right: newPacksMoreButton.left
|
|
||||||
anchors.leftMargin: Constants.largeMargin
|
|
||||||
anchors.rightMargin: Constants.largeMargin
|
|
||||||
|
|
||||||
Repeater
|
|
||||||
{
|
|
||||||
model: newestPacksModel
|
|
||||||
|
|
||||||
delegate: Item {
|
|
||||||
width: resultWidth
|
|
||||||
height: resultHeight
|
|
||||||
|
|
||||||
required property string name
|
|
||||||
required property string author
|
|
||||||
required property string description
|
|
||||||
required property string uuid
|
|
||||||
required property string thumbnail
|
|
||||||
required property string authorId
|
|
||||||
|
|
||||||
SearchResultItem
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
title: parent.name
|
|
||||||
author: parent.author
|
|
||||||
description: parent.description
|
|
||||||
thumbnail: parent.thumbnail
|
|
||||||
uuid: parent.uuid
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
id: newestGradientMap
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.right: newPacksMoreButton.left
|
|
||||||
height: resultHeight
|
|
||||||
width: resultWidth / 4
|
|
||||||
|
|
||||||
gradient: Gradient
|
|
||||||
{
|
|
||||||
orientation: Gradient.Horizontal
|
|
||||||
GradientStop { position: 0.0; color: "transparent" }
|
|
||||||
GradientStop { position: 1.0; color: palette.light }
|
|
||||||
}
|
|
||||||
opacity: 0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
SquareButton
|
|
||||||
{
|
|
||||||
id: newPacksMoreButton
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.right: parent.right
|
|
||||||
height: resultHeight
|
|
||||||
|
|
||||||
width: 64
|
|
||||||
|
|
||||||
icon.source: "qrc:/images/icons/icons8-forward.svg"
|
|
||||||
icon.height: 24
|
|
||||||
icon.width: 24
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
height: Constants.largeMargin
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout
|
|
||||||
{
|
|
||||||
width: parent.width
|
|
||||||
height: 420
|
|
||||||
|
|
||||||
Text
|
|
||||||
{
|
|
||||||
color: palette.text
|
|
||||||
font.pixelSize: Constants.h2Font.pixelSize
|
|
||||||
font.bold: true
|
|
||||||
text: qsTr("Featured Images")
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout
|
|
||||||
{
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 256
|
|
||||||
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
clip: true
|
|
||||||
Row
|
|
||||||
{
|
|
||||||
clip: true
|
|
||||||
spacing: Constants.mediumMargin
|
|
||||||
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.right: featuredImagesMoreButton.left
|
|
||||||
anchors.leftMargin: Constants.largeMargin
|
|
||||||
anchors.rightMargin: Constants.largeMargin
|
|
||||||
|
|
||||||
Repeater
|
|
||||||
{
|
|
||||||
model: featuredImagesModel
|
|
||||||
|
|
||||||
delegate: Item
|
|
||||||
{
|
|
||||||
width: resultWidth
|
|
||||||
height: resultHeight
|
|
||||||
|
|
||||||
required property string author
|
|
||||||
required property string description
|
|
||||||
required property string uuid
|
|
||||||
required property string thumbnail
|
|
||||||
required property string authorId
|
|
||||||
|
|
||||||
SearchResultItem
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
title: parent.author
|
|
||||||
author: qsTr("Pexels Images")
|
|
||||||
description: parent.description
|
|
||||||
thumbnail: parent.thumbnail
|
|
||||||
uuid: parent.uuid
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.right: featuredImagesMoreButton.left
|
|
||||||
height: resultHeight
|
|
||||||
width: resultWidth / 4
|
|
||||||
|
|
||||||
gradient: Gradient
|
|
||||||
{
|
|
||||||
orientation: Gradient.Horizontal
|
|
||||||
GradientStop { position: 0.0; color: "transparent" }
|
|
||||||
GradientStop { position: 1.0; color: palette.light }
|
|
||||||
}
|
|
||||||
opacity: 0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
SquareButton
|
|
||||||
{
|
|
||||||
id: featuredImagesMoreButton
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.right: parent.right
|
|
||||||
height: resultHeight
|
|
||||||
|
|
||||||
width: 64
|
|
||||||
|
|
||||||
icon.source: "qrc:/images/icons/icons8-forward.svg"
|
|
||||||
icon.height: 24
|
|
||||||
icon.width: 24
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
height: Constants.largeMargin
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout
|
|
||||||
{
|
|
||||||
width: parent.width
|
|
||||||
height: 420
|
|
||||||
|
|
||||||
Text
|
|
||||||
{
|
|
||||||
color: palette.text
|
|
||||||
font.pixelSize: Constants.h2Font.pixelSize
|
|
||||||
font.bold: true
|
|
||||||
text: qsTr("Featured Videos")
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout
|
|
||||||
{
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 256
|
|
||||||
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
|
||||||
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
clip: true
|
|
||||||
Row
|
|
||||||
{
|
|
||||||
clip: true
|
|
||||||
spacing: Constants.mediumMargin
|
|
||||||
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.right: featuredVideosMoreButton.left
|
|
||||||
anchors.leftMargin: Constants.largeMargin
|
|
||||||
anchors.rightMargin: Constants.largeMargin
|
|
||||||
|
|
||||||
Repeater
|
|
||||||
{
|
|
||||||
model: featuredVideosModel
|
|
||||||
|
|
||||||
delegate: Item {
|
|
||||||
width: resultWidth
|
|
||||||
height: resultHeight
|
|
||||||
|
|
||||||
required property string uuid
|
|
||||||
required property string author
|
|
||||||
required property string authorId
|
|
||||||
required property string authorUrl
|
|
||||||
required property string thumbnail
|
|
||||||
|
|
||||||
SearchResultItem
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
title: parent.author
|
|
||||||
author: parent.author
|
|
||||||
description: "Video provided by Pexels"
|
|
||||||
thumbnail: parent.thumbnail
|
|
||||||
uuid: parent.uuid
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.right: featuredVideosMoreButton.left
|
|
||||||
height: resultHeight
|
|
||||||
width: resultWidth / 4
|
|
||||||
|
|
||||||
gradient: Gradient
|
|
||||||
{
|
|
||||||
orientation: Gradient.Horizontal
|
|
||||||
GradientStop { position: 0.0; color: "transparent" }
|
|
||||||
GradientStop { position: 1.0; color: palette.light }
|
|
||||||
}
|
|
||||||
opacity: 0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
SquareButton
|
|
||||||
{
|
|
||||||
id: featuredVideosMoreButton
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.right: parent.right
|
|
||||||
height: resultHeight
|
|
||||||
|
|
||||||
width: 64
|
|
||||||
|
|
||||||
icon.source: "qrc:/images/icons/icons8-forward.svg"
|
|
||||||
icon.height: 24
|
|
||||||
icon.width: 24
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredHeight: 50
|
||||||
|
|
||||||
|
color: palette.text
|
||||||
|
font.pixelSize: Constants.h2Font.pixelSize
|
||||||
|
font.bold: true
|
||||||
|
text: qsTr("Featured Images")
|
||||||
|
verticalAlignment: Qt.AlignVCenter
|
||||||
|
}
|
||||||
|
|
||||||
|
HorizontalPaginator
|
||||||
|
{
|
||||||
|
id: imagesPaginator
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 245
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
|
||||||
|
model: imagesModel
|
||||||
|
delegate: ItemDelegate
|
||||||
|
{
|
||||||
|
width: resultWidth
|
||||||
|
height: resultHeight
|
||||||
|
|
||||||
|
required property string author
|
||||||
|
required property string description
|
||||||
|
required property string uuid
|
||||||
|
required property string thumbnail
|
||||||
|
required property string authorId
|
||||||
|
required property int index
|
||||||
|
|
||||||
|
SearchResultItem
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
title: parent.author
|
||||||
|
description: parent.description
|
||||||
|
thumbnail: parent.thumbnail
|
||||||
|
uuid: parent.uuid
|
||||||
|
pexels: true
|
||||||
|
selected: imagesPaginator.currentIndex === parent.index
|
||||||
|
|
||||||
|
onTriggered: () => imagesPaginator.currentIndex = parent.index
|
||||||
|
|
||||||
|
onViewMoreTriggered: () =>
|
||||||
|
{
|
||||||
|
showImagePopup(parent.index)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
Layout.preferredHeight: 50
|
||||||
|
|
||||||
|
color: palette.text
|
||||||
|
font.pixelSize: Constants.h2Font.pixelSize
|
||||||
|
font.bold: true
|
||||||
|
text: qsTr("Popular Videos")
|
||||||
|
verticalAlignment: Qt.AlignVCenter
|
||||||
|
}
|
||||||
|
|
||||||
|
HorizontalPaginator
|
||||||
|
{
|
||||||
|
id: videosPaginator
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 245
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
|
|
||||||
|
model: videosModel
|
||||||
|
delegate: ItemDelegate
|
||||||
|
{
|
||||||
|
width: resultWidth
|
||||||
|
height: resultHeight
|
||||||
|
|
||||||
|
required property string uuid
|
||||||
|
required property string author
|
||||||
|
required property string authorId
|
||||||
|
required property string authorUrl
|
||||||
|
required property string thumbnail
|
||||||
|
required property int index
|
||||||
|
|
||||||
|
SearchResultItem
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
title: parent.author
|
||||||
|
thumbnail: parent.thumbnail
|
||||||
|
uuid: parent.uuid
|
||||||
|
pexels: true
|
||||||
|
selected: videosPaginator.currentIndex === parent.index
|
||||||
|
|
||||||
|
onTriggered: () => packsPaginator.currentIndex = parent.index
|
||||||
|
|
||||||
|
onViewMoreTriggered:() =>
|
||||||
|
{
|
||||||
|
viewMoreImagePopup.opacity = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* spacer */
|
||||||
|
Item { Layout.fillHeight: true }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: () =>
|
||||||
|
{
|
||||||
|
imagesModel.nextPage()
|
||||||
|
videosModel.nextPage()
|
||||||
|
packsModel.nextPage()
|
||||||
|
}
|
||||||
|
|
||||||
KeroLoadingAnimation
|
KeroLoadingAnimation
|
||||||
{
|
{
|
||||||
id: loadingAnimation
|
id: loadingAnimation
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
OpacityAnimator on opacity {
|
visible: opacity > 0
|
||||||
duration: 150
|
opacity: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: popupContainer
|
||||||
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
|
color: palette.base
|
||||||
|
|
||||||
|
ImageView
|
||||||
|
{
|
||||||
|
id: viewMoreImagePopup
|
||||||
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
visible: opacity > 0
|
Behavior on opacity {
|
||||||
opacity: 0
|
NumberAnimation
|
||||||
|
{
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "loading"
|
name: "loading"
|
||||||
when: newestPacksModel.state == NewestPacksModel.Loading ||
|
when: packsModel.state === NewestPacksModel.Loading ||
|
||||||
featuredImagesModel.state == FeaturedImagesModel.Loading ||
|
imagesModel.state === FeaturedImagesModel.Loading ||
|
||||||
featuredVideosModel.state == FeaturedVideosModel.Loading;
|
videosModel.state === FeaturedVideosModel.Loading;
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges
|
||||||
|
{
|
||||||
target: loadingAnimation
|
target: loadingAnimation
|
||||||
opacity: 1
|
opacity: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: resultsLayout
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: popupContainer
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
State {
|
||||||
|
name: "idle"
|
||||||
|
when: packsModel.state !== NewestPacksModel.Loading &&
|
||||||
|
imagesModel.state !== FeaturedImagesModel.Loading &&
|
||||||
|
videosModel.state !== FeaturedVideosModel.Loading;
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: loadingAnimation
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: resultsLayout
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
transitions: [
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "loading"
|
||||||
|
to: "idle"
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: loadingAnimation
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: resultsLayout
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
function showImagePopup(index)
|
||||||
|
{
|
||||||
|
viewMoreImagePopup.author = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.AuthorRole)
|
||||||
|
viewMoreImagePopup.authorUrl = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.AuthorUrlRole)
|
||||||
|
viewMoreImagePopup.description = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.DescriptionRole)
|
||||||
|
viewMoreImagePopup.uuid = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.UuidRole)
|
||||||
|
viewMoreImagePopup.thumbnail = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.ThumbnailRole)
|
||||||
|
viewMoreImagePopup.small = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.SmallUrlRole)
|
||||||
|
viewMoreImagePopup.medium = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.MediumUrlRole)
|
||||||
|
viewMoreImagePopup.large = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.LargeUrlRole)
|
||||||
|
viewMoreImagePopup.extraLarge = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.ExtraLargeUrlRole)
|
||||||
|
viewMoreImagePopup.original = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.OriginalUrlRole)
|
||||||
|
viewMoreImagePopup.portrait = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.PortraitUrlRole)
|
||||||
|
viewMoreImagePopup.landscape = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.LandscapeUrlRole)
|
||||||
|
viewMoreImagePopup.smallSize = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.SmallSizeRole)
|
||||||
|
viewMoreImagePopup.mediumSize = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.MediumSizeRole)
|
||||||
|
viewMoreImagePopup.largeSize = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.LargeSizeRole)
|
||||||
|
viewMoreImagePopup.extraLargeSize = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.ExtraLargeSizeRole)
|
||||||
|
viewMoreImagePopup.originalSize = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.OriginalSizeRole)
|
||||||
|
viewMoreImagePopup.portraitSize = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.PortraitSizeRole)
|
||||||
|
viewMoreImagePopup.landscapeSize = imagesModel.data(imagesModel.index(index,0), FeaturedImagesModel.LandscapeSizeRole)
|
||||||
|
viewMoreImagePopup.opacity = 1
|
||||||
|
popupContainer.opacity = 1
|
||||||
|
homePageRoot.popup = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function closePopup()
|
||||||
|
{
|
||||||
|
viewMoreImagePopup.opacity = 0
|
||||||
|
popupContainer.opacity = 0
|
||||||
|
homePageRoot.popup = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,217 +9,118 @@ import KomplexHubPlugin
|
|||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
property string query
|
id: rootItem
|
||||||
readonly property bool searchable: true
|
|
||||||
property int resultsPerRow: (resultsContainer.width - (Constants.largeMargin * 2)) / (resultWidth + Constants.mediumMargin)
|
|
||||||
property int rows: ((resultsContainer.height - (Constants.largeMargin * 2)) / (resultHeight + Constants.mediumMargin))
|
|
||||||
property int resultsPerPage: resultsPerRow * rows
|
|
||||||
property int emptyWidth: (resultsContainer.width - (Constants.largeMargin * 2)) - (resultsPerRow * (resultWidth + Constants.mediumMargin))
|
|
||||||
property int resultWidth: 256
|
|
||||||
property int resultHeight: 245
|
|
||||||
|
|
||||||
id: imageSearchPageRoot
|
property string query
|
||||||
|
readonly property bool searchable: paginator.searchable
|
||||||
|
property bool popup: false
|
||||||
|
|
||||||
ImageSearchModel
|
ImageSearchModel
|
||||||
{
|
{
|
||||||
id: searchModel
|
id: searchModel
|
||||||
query: imageSearchPageRoot.query
|
query: rootItem.query
|
||||||
resultsPerPage: imageSearchPageRoot.resultsPerPage
|
resultsPerPage: paginator.resultsPerPage
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginatorGrid
|
||||||
|
{
|
||||||
|
id: paginator
|
||||||
|
anchors.fill: parent
|
||||||
|
model: searchModel
|
||||||
|
loading: model.state === ImageSearchModel.Loading
|
||||||
|
|
||||||
|
delegate: ItemDelegate
|
||||||
|
{
|
||||||
|
id: resultDelegate
|
||||||
|
|
||||||
|
width: 256
|
||||||
|
height: 245
|
||||||
|
|
||||||
|
required property string author
|
||||||
|
required property string description
|
||||||
|
required property string uuid
|
||||||
|
required property string thumbnail
|
||||||
|
required property string authorId
|
||||||
|
required property int index
|
||||||
|
|
||||||
|
SearchResultItem
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
title: parent.author
|
||||||
|
description: parent.description
|
||||||
|
thumbnail: parent.thumbnail
|
||||||
|
uuid: parent.uuid
|
||||||
|
selected: paginator.currentIndex === parent.index
|
||||||
|
|
||||||
|
onTriggered: () => paginator.currentIndex = parent.index
|
||||||
|
|
||||||
|
onViewMoreTriggered: () =>
|
||||||
|
{
|
||||||
|
showImagePopup(parent.index)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
|
id: popupContainer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
color: palette.base
|
color: palette.base
|
||||||
|
|
||||||
Rectangle
|
ImageView
|
||||||
{
|
{
|
||||||
id: resultsContainer
|
id: viewMoreImagePopup
|
||||||
anchors.top: parent.top
|
anchors.fill: parent
|
||||||
anchors.left: parent.left
|
opacity: 0
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: buttonBoxLayout.top
|
|
||||||
|
|
||||||
color: "transparent"
|
Behavior on opacity {
|
||||||
|
NumberAnimation
|
||||||
ScrollView
|
|
||||||
{
|
|
||||||
id: resultsView
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
RowLayout
|
|
||||||
{
|
{
|
||||||
anchors.left: parent.left
|
duration: 250
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.margins: Constants.largeMargin
|
|
||||||
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.preferredWidth: emptyWidth / 2
|
|
||||||
Layout.maximumWidth: emptyWidth / 2
|
|
||||||
}
|
|
||||||
|
|
||||||
GridLayout
|
|
||||||
{
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
columns: imageSearchPageRoot.resultsPerRow
|
|
||||||
columnSpacing: Constants.mediumMargin
|
|
||||||
rowSpacing: Constants.mediumMargin
|
|
||||||
|
|
||||||
Repeater
|
|
||||||
{
|
|
||||||
model: searchModel
|
|
||||||
|
|
||||||
delegate: Item
|
|
||||||
{
|
|
||||||
width: 256
|
|
||||||
height: 245
|
|
||||||
required property string author
|
|
||||||
required property string description
|
|
||||||
required property string uuid
|
|
||||||
required property string thumbnail
|
|
||||||
required property string authorId
|
|
||||||
|
|
||||||
SearchResultItem
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
title: parent.author
|
|
||||||
author: qsTr("Pexels Images")
|
|
||||||
description: parent.description
|
|
||||||
thumbnail: parent.thumbnail
|
|
||||||
uuid: parent.uuid
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout
|
Behavior on opacity {
|
||||||
{
|
NumberAnimation
|
||||||
id: buttonBoxLayout
|
|
||||||
height: 35
|
|
||||||
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.margins: Constants.largeMargin
|
|
||||||
|
|
||||||
SquareButton
|
|
||||||
{
|
{
|
||||||
Layout.fillHeight: true
|
duration: 250
|
||||||
Layout.preferredWidth: 128
|
|
||||||
|
|
||||||
icon.source: "qrc:/images/icons/icons8-back.svg"
|
|
||||||
icon.height: 16
|
|
||||||
icon.width: 16
|
|
||||||
text: qsTr("Previous")
|
|
||||||
enabled: searchModel.hasPreviousPage
|
|
||||||
|
|
||||||
onTriggered: () => searchModel.previousPage()
|
|
||||||
}
|
|
||||||
|
|
||||||
Item { Layout.fillWidth: true }
|
|
||||||
|
|
||||||
SquareButton
|
|
||||||
{
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.preferredWidth: 128
|
|
||||||
|
|
||||||
icon.source: "qrc:/images/icons/icons8-next.svg"
|
|
||||||
icon.height: 16
|
|
||||||
icon.width: 16
|
|
||||||
text: qsTr("Next")
|
|
||||||
enabled: searchModel.hasNextPage
|
|
||||||
|
|
||||||
onTriggered: () => searchModel.nextPage()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KeroErrorAvatar
|
function showImagePopup(index)
|
||||||
{
|
{
|
||||||
id: errorOverlay
|
viewMoreImagePopup.author = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.AuthorRole)
|
||||||
|
viewMoreImagePopup.authorUrl = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.AuthorUrlRole)
|
||||||
anchors.fill: parent
|
viewMoreImagePopup.description = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.DescriptionRole)
|
||||||
opacity: 0
|
viewMoreImagePopup.uuid = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.UuidRole)
|
||||||
|
viewMoreImagePopup.thumbnail = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.ThumbnailRole)
|
||||||
|
viewMoreImagePopup.small = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.SmallUrlRole)
|
||||||
|
viewMoreImagePopup.medium = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.MediumUrlRole)
|
||||||
|
viewMoreImagePopup.large = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.LargeUrlRole)
|
||||||
|
viewMoreImagePopup.extraLarge = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.ExtraLargeUrlRole)
|
||||||
|
viewMoreImagePopup.original = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.OriginalUrlRole)
|
||||||
|
viewMoreImagePopup.portrait = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.PortraitUrlRole)
|
||||||
|
viewMoreImagePopup.landscape = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.LandscapeUrlRole)
|
||||||
|
viewMoreImagePopup.smallSize = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.SmallSizeRole)
|
||||||
|
viewMoreImagePopup.mediumSize = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.MediumSizeRole)
|
||||||
|
viewMoreImagePopup.largeSize = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.LargeSizeRole)
|
||||||
|
viewMoreImagePopup.extraLargeSize = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.ExtraLargeSizeRole)
|
||||||
|
viewMoreImagePopup.originalSize = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.OriginalSizeRole)
|
||||||
|
viewMoreImagePopup.portraitSize = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.PortraitSizeRole)
|
||||||
|
viewMoreImagePopup.landscapeSize = searchModel.data(searchModel.index(index,0), FeaturedImagesModel.LandscapeSizeRole)
|
||||||
|
viewMoreImagePopup.opacity = 1
|
||||||
|
popupContainer.opacity = 1
|
||||||
|
rootItem.popup = true
|
||||||
}
|
}
|
||||||
|
|
||||||
KeroNoResultsAvatar
|
function closePopup()
|
||||||
{
|
{
|
||||||
id: noResultsOverlay
|
viewMoreImagePopup.opacity = 0
|
||||||
|
popupContainer.opacity = 0
|
||||||
anchors.fill: parent
|
rootItem.popup = false
|
||||||
opacity: 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KeroLoadingAnimation
|
|
||||||
{
|
|
||||||
id: loadingOverlay
|
|
||||||
|
|
||||||
anchors.fill: parent
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
states: [
|
|
||||||
State
|
|
||||||
{
|
|
||||||
name: "loading"
|
|
||||||
when: searchModel.state == ImageSearchModel.Loading
|
|
||||||
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: loadingOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
State
|
|
||||||
{
|
|
||||||
name: "empty"
|
|
||||||
when: searchModel.totalResults === 0
|
|
||||||
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: noResultsOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: buttonBoxLayout
|
|
||||||
visible: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
State
|
|
||||||
{
|
|
||||||
name: "error"
|
|
||||||
when: searchModel.state == ImageSearchModel.Error
|
|
||||||
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: errorOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,76 +3,59 @@ import QtQuick.Controls
|
|||||||
import KomplexHub
|
import KomplexHub
|
||||||
import KomplexHub.Controls
|
import KomplexHub.Controls
|
||||||
import KomplexHub.Kero
|
import KomplexHub.Kero
|
||||||
|
import KomplexHubPlugin
|
||||||
|
|
||||||
Item {
|
Item
|
||||||
id: imageSearchPageRoot
|
{
|
||||||
|
id: rootItem
|
||||||
|
|
||||||
SearchResultList {
|
property string query
|
||||||
id: searchResultList
|
readonly property bool searchable: paginator.searchable
|
||||||
anchors.fill: parent
|
|
||||||
color: palette.base
|
PackSearchModel
|
||||||
|
{
|
||||||
|
id: searchModel
|
||||||
|
query: rootItem.query
|
||||||
|
resultsPerPage: paginator.resultsPerPage
|
||||||
}
|
}
|
||||||
|
|
||||||
KeroErrorAvatar {
|
PaginatorGrid
|
||||||
id: errorOverlay
|
{
|
||||||
|
id: paginator
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
opacity: 0
|
model: searchModel
|
||||||
}
|
loading: model.state === PackSearchModel.Loading
|
||||||
|
|
||||||
KeroNoResultsAvatar {
|
delegate: ItemDelegate
|
||||||
id: noResultsOverlay
|
{
|
||||||
|
id: resultDelegate
|
||||||
|
|
||||||
anchors.fill: parent
|
width: 256
|
||||||
opacity: 0
|
height: 245
|
||||||
}
|
|
||||||
|
|
||||||
KeroLoadingAnimation {
|
required property string name
|
||||||
id: loadingOverlay
|
required property string author
|
||||||
|
required property string description
|
||||||
|
required property string uuid
|
||||||
|
required property string thumbnail
|
||||||
|
required property string authorId
|
||||||
|
|
||||||
anchors.fill: parent
|
SearchResultItem
|
||||||
opacity: 0
|
{
|
||||||
}
|
anchors.fill: parent
|
||||||
|
title: parent.author
|
||||||
|
description: parent.description
|
||||||
|
thumbnail: parent.thumbnail
|
||||||
|
uuid: parent.uuid
|
||||||
|
|
||||||
states: [
|
selected: resultDelegate.highlighted
|
||||||
State {
|
|
||||||
name: "loading"
|
|
||||||
when: searchResultList.state === "loading"
|
|
||||||
|
|
||||||
PropertyChanges {
|
|
||||||
target: loadingOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
State {
|
|
||||||
name: "empty"
|
|
||||||
when: searchResultList.state === "empty"
|
|
||||||
|
|
||||||
PropertyChanges {
|
MouseArea
|
||||||
target: noResultsOverlay
|
{
|
||||||
opacity: 1
|
anchors.fill: parent
|
||||||
}
|
onClicked: paginator.currentIndex = index
|
||||||
PropertyChanges {
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
State {
|
|
||||||
name: "error"
|
|
||||||
when: searchResultList.state === "error"
|
|
||||||
|
|
||||||
PropertyChanges {
|
|
||||||
target: errorOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
PropertyChanges {
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,217 +9,55 @@ import KomplexHubPlugin
|
|||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
property string query
|
id: rootItem
|
||||||
readonly property bool searchable: true
|
|
||||||
property int resultsPerRow: (resultsContainer.width - (Constants.largeMargin * 2)) / (resultWidth + Constants.mediumMargin)
|
|
||||||
property int rows: ((resultsContainer.height - (Constants.largeMargin * 2)) / (resultHeight + Constants.mediumMargin))
|
|
||||||
property int resultsPerPage: resultsPerRow * rows
|
|
||||||
property int emptyWidth: (resultsContainer.width - (Constants.largeMargin * 2)) - (resultsPerRow * (resultWidth + Constants.mediumMargin))
|
|
||||||
property int resultWidth: 256
|
|
||||||
property int resultHeight: 245
|
|
||||||
|
|
||||||
id: videoSearchPageRoot
|
property string query
|
||||||
|
readonly property bool searchable: paginator.searchable
|
||||||
|
|
||||||
VideoSearchModel
|
VideoSearchModel
|
||||||
{
|
{
|
||||||
id: searchModel
|
id: searchModel
|
||||||
query: videoSearchPageRoot.query
|
query: rootItem.query
|
||||||
resultsPerPage: videoSearchPageRoot.resultsPerPage
|
resultsPerPage: paginator.resultsPerPage
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
PaginatorGrid
|
||||||
{
|
{
|
||||||
|
id: paginator
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: palette.base
|
model: searchModel
|
||||||
|
loading: model.state === VideoSearchModel.Loading
|
||||||
|
|
||||||
Rectangle
|
delegate: ItemDelegate
|
||||||
{
|
{
|
||||||
id: resultsContainer
|
id: resultDelegate
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: buttonBoxLayout.top
|
|
||||||
|
|
||||||
color: "transparent"
|
width: 256
|
||||||
|
height: 245
|
||||||
|
|
||||||
ScrollView
|
required property string author
|
||||||
|
required property string description
|
||||||
|
required property string uuid
|
||||||
|
required property string thumbnail
|
||||||
|
required property string authorId
|
||||||
|
required property int index
|
||||||
|
|
||||||
|
SearchResultItem
|
||||||
{
|
{
|
||||||
id: resultsView
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
title: parent.author
|
||||||
|
description: parent.description
|
||||||
|
thumbnail: parent.thumbnail
|
||||||
|
uuid: parent.uuid
|
||||||
|
|
||||||
RowLayout
|
selected: resultDelegate.highlighted
|
||||||
{
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.margins: Constants.largeMargin
|
|
||||||
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.preferredWidth: emptyWidth / 2
|
|
||||||
Layout.maximumWidth: emptyWidth / 2
|
|
||||||
}
|
|
||||||
|
|
||||||
GridLayout
|
|
||||||
{
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
columns: videoSearchPageRoot.resultsPerRow
|
|
||||||
columnSpacing: Constants.mediumMargin
|
|
||||||
rowSpacing: Constants.mediumMargin
|
|
||||||
|
|
||||||
Repeater
|
|
||||||
{
|
|
||||||
model: searchModel
|
|
||||||
|
|
||||||
delegate: Item {
|
|
||||||
width: resultWidth
|
|
||||||
height: resultHeight
|
|
||||||
|
|
||||||
required property string uuid
|
|
||||||
required property string author
|
|
||||||
required property string authorId
|
|
||||||
required property string authorUrl
|
|
||||||
required property string thumbnail
|
|
||||||
|
|
||||||
SearchResultItem
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
title: parent.author
|
|
||||||
author: parent.author
|
|
||||||
description: "Video provided by Pexels"
|
|
||||||
thumbnail: parent.thumbnail
|
|
||||||
uuid: parent.uuid
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout
|
|
||||||
{
|
|
||||||
id: buttonBoxLayout
|
|
||||||
height: 35
|
|
||||||
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.margins: Constants.largeMargin
|
|
||||||
|
|
||||||
SquareButton
|
|
||||||
{
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.preferredWidth: 128
|
|
||||||
|
|
||||||
icon.source: "qrc:/images/icons/icons8-back.svg"
|
|
||||||
icon.height: 16
|
|
||||||
icon.width: 16
|
|
||||||
text: qsTr("Previous")
|
|
||||||
enabled: searchModel.hasPreviousPage
|
|
||||||
|
|
||||||
onTriggered: () => searchModel.previousPage()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item { Layout.fillWidth: true }
|
MouseArea
|
||||||
|
|
||||||
SquareButton
|
|
||||||
{
|
{
|
||||||
Layout.fillHeight: true
|
anchors.fill: parent
|
||||||
Layout.preferredWidth: 128
|
onClicked: paginator.currentIndex = index
|
||||||
|
|
||||||
icon.source: "qrc:/images/icons/icons8-next.svg"
|
|
||||||
icon.height: 16
|
|
||||||
icon.width: 16
|
|
||||||
text: qsTr("Next")
|
|
||||||
enabled: searchModel.hasNextPage
|
|
||||||
|
|
||||||
onTriggered: () => searchModel.nextPage()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KeroErrorAvatar
|
|
||||||
{
|
|
||||||
id: errorOverlay
|
|
||||||
|
|
||||||
anchors.fill: parent
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
KeroNoResultsAvatar
|
|
||||||
{
|
|
||||||
id: noResultsOverlay
|
|
||||||
|
|
||||||
anchors.fill: parent
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
KeroLoadingAnimation
|
|
||||||
{
|
|
||||||
id: loadingOverlay
|
|
||||||
|
|
||||||
anchors.fill: parent
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
states: [
|
|
||||||
State
|
|
||||||
{
|
|
||||||
name: "loading"
|
|
||||||
when: searchModel.state == VideoSearchModel.Loading
|
|
||||||
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: loadingOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
State
|
|
||||||
{
|
|
||||||
name: "empty"
|
|
||||||
when: searchModel.totalResults === 0
|
|
||||||
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: noResultsOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: buttonBoxLayout
|
|
||||||
visible: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
State
|
|
||||||
{
|
|
||||||
name: "error"
|
|
||||||
when: searchModel.state == VideoSearchModel.Error
|
|
||||||
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: errorOverlay
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
PropertyChanges
|
|
||||||
{
|
|
||||||
target: resultsView
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,5 +14,9 @@ qt6_add_qml_module(KomplexHubModule_Controls
|
|||||||
"Throbber.qml"
|
"Throbber.qml"
|
||||||
"SearchResultItem.qml"
|
"SearchResultItem.qml"
|
||||||
"SearchResultList.qml"
|
"SearchResultList.qml"
|
||||||
|
QML_FILES PaginationBox.qml
|
||||||
|
QML_FILES PaginatorGrid.qml
|
||||||
|
QML_FILES HorizontalPaginator.qml
|
||||||
|
QML_FILES ImageView.qml
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,169 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
import KomplexHub
|
||||||
|
import KomplexHub.Controls
|
||||||
|
import KomplexHub.Kero
|
||||||
|
import KomplexHubPlugin
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
readonly property bool searchable: false
|
||||||
|
property int resultsPerRow: (resultsContainer.width - (Constants.largeMargin * 2)) / (resultWidth + Constants.mediumMargin)
|
||||||
|
property int rows: ((resultsContainer.height - (Constants.largeMargin * 2)) / (resultHeight + Constants.mediumMargin))
|
||||||
|
property int resultsPerPage: resultsPerRow * rows
|
||||||
|
property int emptyWidth: (resultsContainer.width - (Constants.largeMargin * 2)) - (resultsPerRow * (resultWidth + Constants.mediumMargin))
|
||||||
|
property int resultWidth: 256
|
||||||
|
property int resultHeight: 245
|
||||||
|
property bool loading: false
|
||||||
|
|
||||||
|
property alias currentItem: resultsView.currentItem
|
||||||
|
property alias currentIndex: resultsView.currentIndex
|
||||||
|
|
||||||
|
property var model
|
||||||
|
|
||||||
|
property Component delegate
|
||||||
|
|
||||||
|
id: rootItem
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
id: resultsContainer
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
Component
|
||||||
|
{
|
||||||
|
id: highlight
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
width: 256
|
||||||
|
height: 245
|
||||||
|
color: palette.accent
|
||||||
|
radius: 5
|
||||||
|
// x: resultsView.currentItem.x
|
||||||
|
// y: resultsView.currentItem.y
|
||||||
|
Behavior on x { SpringAnimation { spring: 3; damping: 0.2 } }
|
||||||
|
Behavior on y { SpringAnimation { spring: 3; damping: 0.2 } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ListView
|
||||||
|
{
|
||||||
|
id: resultsView
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
spacing: Constants.mediumMargin
|
||||||
|
|
||||||
|
orientation: ListView.Horizontal
|
||||||
|
model: rootItem.model
|
||||||
|
|
||||||
|
delegate: rootItem.delegate
|
||||||
|
highlight: Rectangle { color: palette.accent; radius: 5 }
|
||||||
|
highlightFollowsCurrentItem: true
|
||||||
|
focus: true
|
||||||
|
|
||||||
|
add: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x"
|
||||||
|
from: resultsContainer.width
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "opacity,scale"
|
||||||
|
to: 1.0
|
||||||
|
duration: 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
move: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x,y"
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
displaced: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x,y"
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
populate: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "opacity,scale"
|
||||||
|
to: 1.0
|
||||||
|
duration: 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
remove: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x"
|
||||||
|
to: 0
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "opacity"
|
||||||
|
to: 0
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.preferredWidth: 128
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: gradientMap
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.right: moreButton.left
|
||||||
|
height: resultHeight
|
||||||
|
width: resultWidth / 4
|
||||||
|
|
||||||
|
gradient: Gradient
|
||||||
|
{
|
||||||
|
orientation: Gradient.Horizontal
|
||||||
|
GradientStop { position: 0.0; color: "transparent" }
|
||||||
|
GradientStop { position: 1.0; color: palette.light }
|
||||||
|
}
|
||||||
|
opacity: 0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
SquareButton
|
||||||
|
{
|
||||||
|
id: moreButton
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.right: parent.right
|
||||||
|
height: resultHeight
|
||||||
|
|
||||||
|
width: 64
|
||||||
|
|
||||||
|
icon.source: "qrc:/images/icons/icons8-forward.svg"
|
||||||
|
icon.height: 24
|
||||||
|
icon.width: 24
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import QtQuick.Effects
|
||||||
|
|
||||||
|
import KomplexHub
|
||||||
|
import KomplexHub.Controls
|
||||||
|
import KomplexHub.Kero
|
||||||
|
import KomplexHubPlugin
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
property string uuid
|
||||||
|
property string author
|
||||||
|
property string authorUrl
|
||||||
|
property string description
|
||||||
|
property string thumbnail
|
||||||
|
property string portrait
|
||||||
|
property string landscape
|
||||||
|
property string small
|
||||||
|
property string original
|
||||||
|
property string medium
|
||||||
|
property string large
|
||||||
|
property string extraLarge
|
||||||
|
property string portraitSize
|
||||||
|
property string landscapeSize
|
||||||
|
property string smallSize
|
||||||
|
property string originalSize
|
||||||
|
property string mediumSize
|
||||||
|
property string largeSize
|
||||||
|
property string extraLargeSize
|
||||||
|
|
||||||
|
property int imageHeight
|
||||||
|
property int imageWidth
|
||||||
|
|
||||||
|
id: rootItem
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
color: palette.base.alpha(1)
|
||||||
|
|
||||||
|
ColumnLayout
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: Constants.largeMargin
|
||||||
|
spacing: Constants.largeMargin
|
||||||
|
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.alignment: Qt.AlignTop| Qt.AlignHCenter
|
||||||
|
|
||||||
|
/** Spacer **/
|
||||||
|
Item { Layout.fillWidth: true }
|
||||||
|
|
||||||
|
Image
|
||||||
|
{
|
||||||
|
width: imageWidth
|
||||||
|
height: imageHeight
|
||||||
|
transform: Image.PreserveAspectFit
|
||||||
|
source: rootItem.large
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Spacer **/
|
||||||
|
Item { Layout.fillWidth: true }
|
||||||
|
}
|
||||||
|
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: titleText
|
||||||
|
text: rootItem.author
|
||||||
|
color: palette.text
|
||||||
|
font.bold: true
|
||||||
|
font.pixelSize: Constants.h3Font.pixelSize
|
||||||
|
elide: Text.ElideRight
|
||||||
|
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.alignment: Qt.AlignTop| Qt.AlignLeft
|
||||||
|
}
|
||||||
|
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: descriptionText
|
||||||
|
text: rootItem.description
|
||||||
|
color: palette.text
|
||||||
|
font.pointSize: Constants.h4Font.pixelSize
|
||||||
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignTop| Qt.AlignLeft
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Spacer **/
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 32
|
||||||
|
}
|
||||||
|
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
text: qsTr("Available Downloads")
|
||||||
|
color: palette.text
|
||||||
|
font.bold: true
|
||||||
|
font.pixelSize: Constants.h3Font.pixelSize
|
||||||
|
elide: Text.ElideRight
|
||||||
|
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.alignment: Qt.AlignTop| Qt.AlignLeft
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
ComboBox
|
||||||
|
{
|
||||||
|
id: downloadSelector
|
||||||
|
model:[
|
||||||
|
"Small: " + smallSize,
|
||||||
|
"Medium: " + mediumSize,
|
||||||
|
"Large: " + largeSize,
|
||||||
|
"Extra Large: " + extraLargeSize,
|
||||||
|
"Portrait: " + portraitSize,
|
||||||
|
"Landscape: " + landscapeSize
|
||||||
|
]
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 36
|
||||||
|
}
|
||||||
|
SquareButton
|
||||||
|
{
|
||||||
|
Layout.preferredHeight: 36
|
||||||
|
Layout.preferredWidth: 128
|
||||||
|
text: qsTr("Download")
|
||||||
|
icon.source: "qrc:/images/icons/icons8-download.svg"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Text {
|
||||||
|
// property var texts: [
|
||||||
|
// small,
|
||||||
|
// medium,
|
||||||
|
// large,
|
||||||
|
// extraLarge,
|
||||||
|
// portrait,
|
||||||
|
// landscape
|
||||||
|
// ]
|
||||||
|
// text: texts[downloadSelector.currentIndex]
|
||||||
|
// elide: Text.ElideLeft
|
||||||
|
|
||||||
|
// Layout.fillWidth: true
|
||||||
|
// }
|
||||||
|
|
||||||
|
/** Spacer **/
|
||||||
|
Item { Layout.fillWidth: true; Layout.fillHeight: true }
|
||||||
|
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.alignment: Qt.AlignBottom
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: qsTr("Images Provided Courtesy of Pexels")
|
||||||
|
elide: Text.ElideLeft
|
||||||
|
color: palette.text
|
||||||
|
font.bold: true
|
||||||
|
font.pixelSize: Constants.h6Font.pixelSize
|
||||||
|
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.alignment: Qt.AlignLeft
|
||||||
|
}
|
||||||
|
|
||||||
|
Image
|
||||||
|
{
|
||||||
|
transform: Image.PreserveAspectFit
|
||||||
|
source: "qrc:/images/icons/pexels-icon-filled-256.svg"
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
Layout.preferredHeight: 32
|
||||||
|
Layout.preferredWidth: 32
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import QtQuick.Controls
|
||||||
|
|
||||||
|
import KomplexHub
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
id: itemRoot
|
||||||
|
|
||||||
|
property int page: 0
|
||||||
|
property int totalPages: 0
|
||||||
|
|
||||||
|
property bool enablePrevious: false
|
||||||
|
property bool enableNext: false
|
||||||
|
|
||||||
|
signal next
|
||||||
|
signal previous
|
||||||
|
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
id: buttonBoxLayout
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
SquareButton
|
||||||
|
{
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.preferredWidth: 128
|
||||||
|
|
||||||
|
icon.source: "qrc:/images/icons/icons8-back.svg"
|
||||||
|
icon.height: 16
|
||||||
|
icon.width: 16
|
||||||
|
text: qsTr("Previous")
|
||||||
|
enabled: itemRoot.enablePrevious
|
||||||
|
|
||||||
|
onTriggered: () => itemRoot.previous()
|
||||||
|
}
|
||||||
|
|
||||||
|
Item { Layout.fillWidth: true }
|
||||||
|
|
||||||
|
SquareButton
|
||||||
|
{
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.preferredWidth: 128
|
||||||
|
|
||||||
|
icon.source: "qrc:/images/icons/icons8-next.svg"
|
||||||
|
icon.height: 16
|
||||||
|
icon.width: 16
|
||||||
|
text: qsTr("Next")
|
||||||
|
enabled: itemRoot.enableNext
|
||||||
|
|
||||||
|
onTriggered: () => itemRoot.next()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,425 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
import KomplexHub
|
||||||
|
import KomplexHub.Controls
|
||||||
|
import KomplexHub.Kero
|
||||||
|
import KomplexHubPlugin
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
property string query
|
||||||
|
readonly property bool searchable: true
|
||||||
|
property int resultsPerRow: (resultsContainer.width - (Constants.largeMargin * 2)) / (resultWidth + Constants.mediumMargin)
|
||||||
|
property int rows: ((resultsContainer.height - (Constants.largeMargin * 2)) / (resultHeight + Constants.mediumMargin))
|
||||||
|
property int resultsPerPage: resultsPerRow * rows
|
||||||
|
property int emptyWidth: (resultsContainer.width - (Constants.largeMargin * 2)) - (resultsPerRow * (resultWidth + Constants.mediumMargin))
|
||||||
|
property int resultWidth: 256
|
||||||
|
property int resultHeight: 245
|
||||||
|
property bool loading: false
|
||||||
|
|
||||||
|
property alias currentItem: resultsView.currentItem
|
||||||
|
property alias currentIndex: resultsView.currentIndex
|
||||||
|
|
||||||
|
property var model
|
||||||
|
|
||||||
|
property Component delegate
|
||||||
|
|
||||||
|
id: rootItem
|
||||||
|
|
||||||
|
KeroErrorAvatar
|
||||||
|
{
|
||||||
|
id: errorOverlay
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
KeroNoResultsAvatar
|
||||||
|
{
|
||||||
|
id: noResultsOverlay
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
KeroChoiceAvatar
|
||||||
|
{
|
||||||
|
id: noSearchOverlay
|
||||||
|
|
||||||
|
title: qsTr("No Search Term")
|
||||||
|
description: qsTr("Kero needs a subject or term to search for wallpapers")
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
KeroLoadingAnimation
|
||||||
|
{
|
||||||
|
id: loadingOverlay
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: resultsContainer
|
||||||
|
anchors.fill: parent
|
||||||
|
color: palette.base
|
||||||
|
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: Constants.largeMargin
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.preferredWidth: emptyWidth / 2
|
||||||
|
Layout.maximumWidth: emptyWidth / 2
|
||||||
|
}
|
||||||
|
|
||||||
|
Component
|
||||||
|
{
|
||||||
|
id: highlight
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
width: view.cellWidth
|
||||||
|
height: view.cellHeight
|
||||||
|
color: palette.accent
|
||||||
|
radius: 5
|
||||||
|
x: view.currentItem.x
|
||||||
|
y: view.currentItem.y
|
||||||
|
Behavior on x { SpringAnimation { spring: 3; damping: 0.2 } }
|
||||||
|
Behavior on y { SpringAnimation { spring: 3; damping: 0.2 } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GridView
|
||||||
|
{
|
||||||
|
id: resultsView
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
cellWidth: 256 + Constants.mediumMargin
|
||||||
|
cellHeight: 245 + Constants.mediumMargin
|
||||||
|
model: rootItem.model
|
||||||
|
|
||||||
|
delegate: rootItem.delegate
|
||||||
|
highlight: Rectangle { color: palette.accent; radius: 5 }
|
||||||
|
highlightFollowsCurrentItem: true
|
||||||
|
focus: true
|
||||||
|
|
||||||
|
add: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x"
|
||||||
|
from: resultsContainer.width
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "opacity,scale"
|
||||||
|
to: 1.0
|
||||||
|
duration: 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
move: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x,y"
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
displaced: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x,y"
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
populate: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "opacity,scale"
|
||||||
|
to: 1.0
|
||||||
|
duration: 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
remove: Transition
|
||||||
|
{
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "x"
|
||||||
|
to: 0
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
properties: "opacity"
|
||||||
|
to: 0
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginationBox
|
||||||
|
{
|
||||||
|
id: buttonBoxLayout
|
||||||
|
height: 35
|
||||||
|
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.margins: Constants.largeMargin
|
||||||
|
|
||||||
|
onNext: () => model.nextPage()
|
||||||
|
onPrevious: () => model.previousPage()
|
||||||
|
|
||||||
|
enablePrevious: model.hasPreviousPage
|
||||||
|
enableNext: model.hasNextPage
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
states: [
|
||||||
|
State
|
||||||
|
{
|
||||||
|
name: "loading"
|
||||||
|
when: loading
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: loadingOverlay
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: resultsContainer
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: noSearchOverlay
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: errorOverlay
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: buttonBoxLayout
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
State
|
||||||
|
{
|
||||||
|
name: "empty"
|
||||||
|
when: model.totalResults === 0 && model.query.length > 0
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: noResultsOverlay
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: noSearchOverlay
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: resultsContainer
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: buttonBoxLayout
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
State
|
||||||
|
{
|
||||||
|
name: "nosearch"
|
||||||
|
when: model.query.length === 0
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: noResultsOverlay
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: noSearchOverlay
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: resultsContainer
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: buttonBoxLayout
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
State
|
||||||
|
{
|
||||||
|
name: "idle"
|
||||||
|
when: model.totalResults !== 0 && !loading
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: loadingOverlay
|
||||||
|
opacity: 0.0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: resultsContainer
|
||||||
|
opacity: 1.0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: buttonBoxLayout
|
||||||
|
visible: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
State
|
||||||
|
{
|
||||||
|
name: "error"
|
||||||
|
when: model.errorString.length > 0
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: errorOverlay
|
||||||
|
opacity: 1.0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: resultsContainer
|
||||||
|
opacity: 0.0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: noSearchOverlay
|
||||||
|
opacity: 0.0
|
||||||
|
}
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: noResultsOverlay
|
||||||
|
opacity: 0.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
transitions: [
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "empty"
|
||||||
|
to: "loading"
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: noResultsOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: loadingOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "nosearch"
|
||||||
|
to: "loading"
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: noSearchOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: loadingOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "loading"
|
||||||
|
to: "nosearch"
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: noSearchOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: loadingOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "loading"
|
||||||
|
to: "empty"
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: noResultsOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: loadingOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "loading"
|
||||||
|
to: "idle"
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: loadingOverlay
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: resultsView
|
||||||
|
duration: 250
|
||||||
|
property: "opacity";
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -2,15 +2,19 @@ import QtQuick
|
|||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
import KomplexHub
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
property string author: "Author"
|
property string author: ""
|
||||||
property string description: "This is a description of the search result item"
|
property string description: ""
|
||||||
property string title: "Wallpaper Title"
|
property string title: ""
|
||||||
property string thumbnail: ""
|
property string thumbnail: ""
|
||||||
property string uuid: ""
|
property string uuid: ""
|
||||||
property bool selected: false
|
property bool selected: false
|
||||||
|
property bool pexels: false
|
||||||
|
|
||||||
signal triggered
|
signal triggered
|
||||||
|
signal viewMoreTriggered
|
||||||
|
|
||||||
id: searchResultItemRoot
|
id: searchResultItemRoot
|
||||||
width: 256
|
width: 256
|
||||||
@@ -21,11 +25,34 @@ Item {
|
|||||||
{
|
{
|
||||||
id: searchResultItemContainer
|
id: searchResultItemContainer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
border.color: palette.alternateBase.lighter(1.75)
|
border.color: palette.alternateBase.lighter(1.75)
|
||||||
|
|
||||||
color: palette.alternateBase.lighter(1.25)
|
color: palette.alternateBase.lighter(1.25)
|
||||||
|
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
property string lastState
|
||||||
|
id: mouseArea
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
|
||||||
|
onEntered: () => {
|
||||||
|
states.hovered = true
|
||||||
|
}
|
||||||
|
|
||||||
|
onExited: () => {
|
||||||
|
if(!viewMoreButton.hovered)
|
||||||
|
states.hovered = false
|
||||||
|
}
|
||||||
|
|
||||||
|
onReleased: () => {
|
||||||
|
if(!states.selected)
|
||||||
|
{
|
||||||
|
searchResultItemRoot.triggered()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout
|
ColumnLayout
|
||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -48,9 +75,26 @@ Item {
|
|||||||
id: thumnailImage
|
id: thumnailImage
|
||||||
source: searchResultItemRoot.thumbnail
|
source: searchResultItemRoot.thumbnail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Image
|
||||||
|
{
|
||||||
|
antialiasing: true
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.margins: Constants.mediumMargin
|
||||||
|
|
||||||
|
width: 24
|
||||||
|
height: 24
|
||||||
|
transform: Image.PreserveAspectFit
|
||||||
|
opacity: 0.5
|
||||||
|
source: "qrc:/images/icons/pexels-icon-filled-256.svg"
|
||||||
|
|
||||||
|
visible: searchResultItemRoot.pexels
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text
|
||||||
|
{
|
||||||
color: palette.text
|
color: palette.text
|
||||||
text: searchResultItemRoot.title
|
text: searchResultItemRoot.title
|
||||||
|
|
||||||
@@ -62,7 +106,10 @@ Item {
|
|||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Item { Layout.fillHeight: true }
|
||||||
|
|
||||||
|
Text
|
||||||
|
{
|
||||||
color: palette.text
|
color: palette.text
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
text: "By: " + searchResultItemRoot.author
|
text: "By: " + searchResultItemRoot.author
|
||||||
@@ -70,80 +117,73 @@ Item {
|
|||||||
|
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
|
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
|
||||||
Layout.preferredWidth: 250
|
Layout.preferredWidth: 250
|
||||||
|
visible: !searchResultItemRoot.pexels
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text
|
||||||
|
{
|
||||||
|
id: descriptionText
|
||||||
clip: true
|
clip: true
|
||||||
color: palette.text
|
color: palette.text
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
text: searchResultItemRoot.description
|
text: searchResultItemRoot.description
|
||||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
textFormat: Text.PlainText
|
textFormat: Text.PlainText
|
||||||
Layout.maximumHeight: 32
|
|
||||||
Layout.preferredHeight: 32
|
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
||||||
|
Layout.maximumHeight: 32
|
||||||
|
Layout.preferredHeight: 32
|
||||||
Layout.preferredWidth: 236
|
Layout.preferredWidth: 236
|
||||||
Layout.maximumWidth: 236
|
Layout.maximumWidth: 236
|
||||||
Layout.bottomMargin: 3
|
Layout.bottomMargin: 3
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Behavior on color {
|
SquareButton
|
||||||
ColorAnimation { duration: 200 }
|
{
|
||||||
}
|
id: viewMoreButton
|
||||||
}
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
||||||
|
Layout.maximumHeight: 50
|
||||||
|
Layout.preferredHeight: 32
|
||||||
|
Layout.preferredWidth: 236
|
||||||
|
Layout.maximumWidth: 236
|
||||||
|
Layout.bottomMargin: 3
|
||||||
|
|
||||||
MouseArea {
|
text: qsTr("View More")
|
||||||
property string lastState
|
opacity: 0
|
||||||
id: mouseArea
|
|
||||||
|
|
||||||
anchors.fill: parent
|
onTriggered: () => {
|
||||||
hoverEnabled: true
|
searchResultItemRoot.viewMoreTriggered()
|
||||||
|
}
|
||||||
onEntered: () => {
|
|
||||||
if(!selected)
|
|
||||||
searchResultItemRoot.state = "hovered"
|
|
||||||
}
|
|
||||||
|
|
||||||
onExited: () => {
|
|
||||||
lastState = ""
|
|
||||||
|
|
||||||
if(selected)
|
|
||||||
searchResultItemRoot.state = "selected"
|
|
||||||
else
|
|
||||||
searchResultItemRoot.state = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
onPressed: () => {
|
|
||||||
if(!selected) {
|
|
||||||
lastState = searchResultItemRoot.state
|
|
||||||
searchResultItemRoot.state = "clicked"
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
onReleased: () => {
|
Item { Layout.fillHeight: true }
|
||||||
if(!mouseArea.containsMouse)
|
|
||||||
return;
|
|
||||||
|
|
||||||
selected = !selected
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onSelectedChanged: () => {
|
QtObject
|
||||||
if(selected) {
|
{
|
||||||
searchResultItemRoot.triggered()
|
id: states
|
||||||
searchResultItemRoot.state = "selected"
|
property bool clicked: false
|
||||||
}
|
property bool hovered: false
|
||||||
else {
|
property alias selected: searchResultItemRoot.selected
|
||||||
searchResultItemRoot.state = ""
|
property bool idle: true
|
||||||
|
|
||||||
|
onIdleChanged: () =>
|
||||||
|
{
|
||||||
|
if(idle)
|
||||||
|
{
|
||||||
|
clicked = false
|
||||||
|
hovered = false
|
||||||
|
selected = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "hovered"
|
name: "hovered"
|
||||||
|
when: states.hovered && !states.selected
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: searchResultItemContainer
|
target: searchResultItemContainer
|
||||||
@@ -153,14 +193,140 @@ Item {
|
|||||||
0.5, // Set custom lightness
|
0.5, // Set custom lightness
|
||||||
1.0)
|
1.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: viewMoreButton
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
Layout.preferredHeight: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: descriptionText
|
||||||
|
opacity: 1
|
||||||
|
|
||||||
|
Layout.preferredHeight: 32
|
||||||
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "selected"
|
name: "selected"
|
||||||
|
when: states.selected && !states.hovered
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges
|
||||||
|
{
|
||||||
target: searchResultItemContainer
|
target: searchResultItemContainer
|
||||||
color: palette.accent
|
color: palette.accent
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
State
|
||||||
|
{
|
||||||
|
name: "view_more"
|
||||||
|
when: states.selected && states.hovered
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: viewMoreButton
|
||||||
|
opacity: 1
|
||||||
|
|
||||||
|
Layout.preferredHeight: 32
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: descriptionText
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
Layout.preferredHeight: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
State
|
||||||
|
{
|
||||||
|
name: "default"
|
||||||
|
when: states.idle
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: viewMoreButton
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
Layout.preferredHeight: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges
|
||||||
|
{
|
||||||
|
target: descriptionText
|
||||||
|
opacity: 1
|
||||||
|
|
||||||
|
Layout.preferredHeight: 32
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
transitions:
|
||||||
|
[
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
to: "selected"
|
||||||
|
|
||||||
|
ColorAnimation
|
||||||
|
{
|
||||||
|
target: searchResultItemContainer
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "selected"
|
||||||
|
to: "view_more"
|
||||||
|
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: viewMoreButton
|
||||||
|
property: "opacity"
|
||||||
|
duration: 250
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
from: "view_more"
|
||||||
|
to: "selected"
|
||||||
|
|
||||||
|
NumberAnimation
|
||||||
|
{
|
||||||
|
target: descriptionText
|
||||||
|
property: "opacity"
|
||||||
|
duration: 250
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
to: "default"
|
||||||
|
|
||||||
|
ColorAnimation
|
||||||
|
{
|
||||||
|
target: searchResultItemContainer
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
Transition
|
||||||
|
{
|
||||||
|
to: "hovered"
|
||||||
|
|
||||||
|
ColorAnimation
|
||||||
|
{
|
||||||
|
target: searchResultItemContainer
|
||||||
|
duration: 250
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ Item {
|
|||||||
property color color: palette.button
|
property color color: palette.button
|
||||||
property Gradient gradient: defaultGradient
|
property Gradient gradient: defaultGradient
|
||||||
property BorderSettings border: BorderSettings {}
|
property BorderSettings border: BorderSettings {}
|
||||||
|
readonly property bool hovered: state === "hovered"
|
||||||
|
|
||||||
signal triggered
|
signal triggered
|
||||||
|
|
||||||
@@ -106,10 +107,6 @@ Item {
|
|||||||
Behavior on color {
|
Behavior on color {
|
||||||
ColorAnimation { duration: 250 }
|
ColorAnimation { duration: 250 }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Behavior on gradient {
|
|
||||||
// PropertyAnimation { duration: 250 }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@@ -216,7 +213,5 @@ Item {
|
|||||||
color: palette.text.darker()
|
color: palette.text.darker()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,7 @@ qt_add_qml_module(
|
|||||||
newestpacksmodel.cpp
|
newestpacksmodel.cpp
|
||||||
common/komplex_global.h
|
common/komplex_global.h
|
||||||
common/slidingcachecontroller.h
|
common/slidingcachecontroller.h
|
||||||
|
|
||||||
common/paginator.h
|
common/paginator.h
|
||||||
|
|
||||||
common/coreservices.h
|
common/coreservices.h
|
||||||
common/coreservices.cpp
|
common/coreservices.cpp
|
||||||
common/logging.h
|
common/logging.h
|
||||||
@@ -30,7 +28,7 @@ qt_add_qml_module(
|
|||||||
SOURCES paginators/featuredpackspaginator.h
|
SOURCES paginators/featuredpackspaginator.h
|
||||||
SOURCES paginators/featuredimagespaginator.h
|
SOURCES paginators/featuredimagespaginator.h
|
||||||
SOURCES paginators/wallpaperpaginator.h
|
SOURCES paginators/wallpaperpaginator.h
|
||||||
SOURCES paginators/searchpackspaginator.h
|
SOURCES paginators/packsearchpaginator.h
|
||||||
SOURCES paginators/imagesearchpaginator.h
|
SOURCES paginators/imagesearchpaginator.h
|
||||||
SOURCES paginators/newestshaderspaginator.h
|
SOURCES paginators/newestshaderspaginator.h
|
||||||
SOURCES paginators/newestcubemapspaginator.h
|
SOURCES paginators/newestcubemapspaginator.h
|
||||||
@@ -54,6 +52,10 @@ qt_add_qml_module(
|
|||||||
SOURCES imagesearchmodel.h
|
SOURCES imagesearchmodel.h
|
||||||
SOURCES videosearchmodel.h
|
SOURCES videosearchmodel.h
|
||||||
SOURCES videosearchmodel.cpp
|
SOURCES videosearchmodel.cpp
|
||||||
|
SOURCES
|
||||||
|
SOURCES
|
||||||
|
SOURCES packsearchmodel.cpp
|
||||||
|
SOURCES packsearchmodel.h
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ struct KOMPLEX_EXPORT ImageCache
|
|||||||
QString photographerUrl;
|
QString photographerUrl;
|
||||||
qint64 photographerId;
|
qint64 photographerId;
|
||||||
QMap<QString, QString> sources;
|
QMap<QString, QString> sources;
|
||||||
|
QMap<QString, QString> sourceSizes;
|
||||||
QString url;
|
QString url;
|
||||||
|
|
||||||
auto operator == (const ImageCache &other) const -> bool
|
auto operator == (const ImageCache &other) const -> bool
|
||||||
@@ -33,6 +34,7 @@ struct KOMPLEX_EXPORT ImageCache
|
|||||||
other.photographerUrl == photographerUrl &&
|
other.photographerUrl == photographerUrl &&
|
||||||
other.photographerId == photographerId &&
|
other.photographerId == photographerId &&
|
||||||
other.sources == sources &&
|
other.sources == sources &&
|
||||||
|
other.sourceSizes == sourceSizes &&
|
||||||
other.url == url
|
other.url == url
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
#ifndef KOMPLEX_GLOBAL_H
|
#ifndef KOMPLEX_GLOBAL_H
|
||||||
#define KOMPLEX_GLOBAL_H
|
#define KOMPLEX_GLOBAL_H
|
||||||
|
#include <QtTypes>
|
||||||
|
#include <chrono>
|
||||||
|
|
||||||
#ifdef KOMPLEX_PLUGIN
|
#ifdef KOMPLEX_PLUGIN
|
||||||
#define KOMPLEX_EXPORT Q_DECL_EXPORT
|
#define KOMPLEX_EXPORT Q_DECL_EXPORT
|
||||||
@@ -61,4 +63,7 @@
|
|||||||
#define KOMPLEX_ENDPOINT_PACKS_ITEM "packs/item"
|
#define KOMPLEX_ENDPOINT_PACKS_ITEM "packs/item"
|
||||||
#define KOMPLEX_ENDPOINT_PACKS_NEWEST "packs/newest"
|
#define KOMPLEX_ENDPOINT_PACKS_NEWEST "packs/newest"
|
||||||
|
|
||||||
|
inline static qsizetype nullsize = std::numeric_limits<qsizetype>::min();
|
||||||
|
inline static std::chrono::milliseconds KOMPLEX_RATE_LIMIT(500);
|
||||||
|
|
||||||
#endif // KOMPLEX_GLOBAL_H
|
#endif // KOMPLEX_GLOBAL_H
|
||||||
|
|||||||
@@ -39,12 +39,14 @@ class KOMPLEX_EXPORT PaginationNotifier : public QObject
|
|||||||
protected:
|
protected:
|
||||||
explicit PaginationNotifier(QObject *parent = nullptr) : QObject(parent) {}
|
explicit PaginationNotifier(QObject *parent = nullptr) : QObject(parent) {}
|
||||||
signals:
|
signals:
|
||||||
auto dataChanged() -> void;
|
auto fetchComplete() -> void;
|
||||||
|
auto fetching() -> void;
|
||||||
auto resultsPerPageChanged() -> void;
|
auto resultsPerPageChanged() -> void;
|
||||||
auto totalResultsChanged() -> void;
|
auto totalResultsChanged() -> void;
|
||||||
auto totalPagesChanged() -> void;
|
auto totalPagesChanged() -> void;
|
||||||
auto pageChanged() -> void;
|
auto pageChanged() -> void;
|
||||||
auto countChanged() -> void;
|
auto countChanged() -> void;
|
||||||
|
auto queryChanged() -> void;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -57,7 +59,21 @@ class KOMPLEX_EXPORT Paginator : public PaginationNotifier
|
|||||||
public:
|
public:
|
||||||
explicit Paginator(QObject *parent = nullptr) : PaginationNotifier(parent)
|
explicit Paginator(QObject *parent = nullptr) : PaginationNotifier(parent)
|
||||||
{
|
{
|
||||||
|
QObject::connect
|
||||||
|
(
|
||||||
|
&m_cacheController,
|
||||||
|
&SlidingCacheNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&PaginationNotifier::fetchComplete
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect
|
||||||
|
(
|
||||||
|
&m_cacheController,
|
||||||
|
&SlidingCacheNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&PaginationNotifier::fetching
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -67,7 +83,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
auto next() -> void
|
auto next() -> void
|
||||||
{
|
{
|
||||||
setOffset(m_offset + m_resultsPerPage);
|
if(m_offset != nullsize)
|
||||||
|
{
|
||||||
|
setOffset(m_offset + m_resultsPerPage);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
controller()->init();
|
||||||
|
setOffset(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -77,7 +101,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
auto previous() -> void
|
auto previous() -> void
|
||||||
{
|
{
|
||||||
setOffset(m_offset - m_resultsPerPage);
|
if(m_offset != nullsize && m_offset > m_resultsPerPage)
|
||||||
|
{
|
||||||
|
setOffset(m_offset - m_resultsPerPage);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
controller()->init();
|
||||||
|
setOffset(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -95,8 +127,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
auto setResultsPerPage(qsizetype resultsPerPage) -> void
|
auto setResultsPerPage(qsizetype resultsPerPage) -> void
|
||||||
{
|
{
|
||||||
QMutexLocker dataLocker(&m_dataMutex);
|
|
||||||
|
|
||||||
if(resultsPerPage == m_resultsPerPage)
|
if(resultsPerPage == m_resultsPerPage)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@@ -104,18 +134,53 @@ public:
|
|||||||
|
|
||||||
m_resultsPerPage = resultsPerPage;
|
m_resultsPerPage = resultsPerPage;
|
||||||
Q_EMIT static_cast<PaginationNotifier*>(this)->resultsPerPageChanged();
|
Q_EMIT static_cast<PaginationNotifier*>(this)->resultsPerPageChanged();
|
||||||
|
}
|
||||||
|
|
||||||
m_data = m_cacheController.chunk(m_offset, m_resultsPerPage);
|
/**
|
||||||
Q_EMIT static_cast<PaginationNotifier*>(this)->dataChanged();
|
* @brief query
|
||||||
|
* Current query string, if the API Endpoint supports queries
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
[[nodiscard]]
|
||||||
|
auto query() const -> QString
|
||||||
|
{
|
||||||
|
return m_query;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief setQuery
|
||||||
|
* Sets the new query string and updates the controller
|
||||||
|
* @param query
|
||||||
|
*/
|
||||||
|
auto setQuery(const QString &query) -> void
|
||||||
|
{
|
||||||
|
if(query == m_query)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
reset();
|
||||||
|
|
||||||
|
m_query = query;
|
||||||
|
Q_EMIT queryChanged();
|
||||||
|
|
||||||
|
controller()->init();
|
||||||
|
setOffset(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief data
|
* @brief data
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
auto data() const -> QList<T>
|
auto data() const -> const QList<T>
|
||||||
{
|
{
|
||||||
return m_data;
|
if(boundaryCheck(m_resultsPerPage))
|
||||||
|
{
|
||||||
|
return m_cacheController.chunk(m_offset, m_resultsPerPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
qsizetype count = (m_cacheController.totalCount() - m_offset);
|
||||||
|
return m_cacheController.chunk(m_offset, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,7 +189,18 @@ public:
|
|||||||
*/
|
*/
|
||||||
auto count() const -> qsizetype
|
auto count() const -> qsizetype
|
||||||
{
|
{
|
||||||
return m_data.count();
|
if(m_offset == nullsize)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(boundaryCheck(m_resultsPerPage))
|
||||||
|
{
|
||||||
|
return m_resultsPerPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
qsizetype count = (m_cacheController.totalCount() - m_offset);
|
||||||
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -132,16 +208,9 @@ public:
|
|||||||
* @param index
|
* @param index
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
auto at(qsizetype index) const -> T
|
auto at(qsizetype index) const -> const T&
|
||||||
{
|
{
|
||||||
QMutexLocker dataLocker(&m_dataMutex);
|
return m_cacheController.at(m_offset + index);
|
||||||
|
|
||||||
if(index < 0 || index >= m_data.count())
|
|
||||||
{
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
return m_data.at(index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -181,6 +250,16 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
auto queryable() const -> bool
|
||||||
|
{
|
||||||
|
return m_queryable;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto setQueryable(bool queryable) -> void
|
||||||
|
{
|
||||||
|
m_queryable = queryable;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief controller
|
* @brief controller
|
||||||
* Reference to the underlying cache controller
|
* Reference to the underlying cache controller
|
||||||
@@ -198,16 +277,11 @@ protected:
|
|||||||
*/
|
*/
|
||||||
auto setOffset(qsizetype offset) -> void
|
auto setOffset(qsizetype offset) -> void
|
||||||
{
|
{
|
||||||
if(offset == m_offset && offset != std::numeric_limits<qsizetype>::infinity())
|
if(offset == m_offset)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(offset == std::numeric_limits<qsizetype>::infinity())
|
|
||||||
{
|
|
||||||
offset = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_offset = offset;
|
m_offset = offset;
|
||||||
|
|
||||||
if(m_offset >= totalResults())
|
if(m_offset >= totalResults())
|
||||||
@@ -220,26 +294,11 @@ protected:
|
|||||||
m_offset = 0;
|
m_offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<T> data = m_cacheController.chunk(m_offset, m_resultsPerPage);
|
m_cacheController.focus(offset, m_resultsPerPage);
|
||||||
setData(data);
|
|
||||||
|
|
||||||
Q_EMIT this->pageChanged();
|
Q_EMIT totalResultsChanged();
|
||||||
}
|
Q_EMIT totalPagesChanged();
|
||||||
|
Q_EMIT pageChanged();
|
||||||
/**
|
|
||||||
* @brief setData
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
auto setData(const QList<T> &data)
|
|
||||||
{
|
|
||||||
m_dataMutex.lock();
|
|
||||||
|
|
||||||
m_data.clear();
|
|
||||||
m_data.append(std::move(data));
|
|
||||||
m_dataMutex.unlock();
|
|
||||||
|
|
||||||
Q_EMIT this->countChanged();
|
|
||||||
Q_EMIT this->dataChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -257,26 +316,34 @@ protected:
|
|||||||
*/
|
*/
|
||||||
auto reset() -> void
|
auto reset() -> void
|
||||||
{
|
{
|
||||||
m_dataMutex.lock();
|
m_query.clear();
|
||||||
|
m_offset = nullsize;
|
||||||
m_data.clear();
|
|
||||||
controller()->reset();
|
controller()->reset();
|
||||||
m_dataMutex.unlock();
|
|
||||||
|
|
||||||
Q_EMIT totalPagesChanged();
|
|
||||||
Q_EMIT dataChanged();
|
|
||||||
Q_EMIT pageChanged();
|
|
||||||
|
|
||||||
setOffset(std::numeric_limits<qsizetype>::infinity());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief boundaryCheck
|
||||||
|
* Checks if the index is within the bounds of the dataset
|
||||||
|
* @param index
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto boundaryCheck(qsizetype index) const -> bool
|
||||||
|
{
|
||||||
|
if(index < 0 || (m_offset + index) >= m_cacheController.totalCount())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief m_offset
|
* @brief m_offset
|
||||||
* Current absolute offset. Used in fetch operations
|
* Current absolute offset. Used in fetch operations
|
||||||
*/
|
*/
|
||||||
qsizetype m_offset = std::numeric_limits<qsizetype>::infinity();
|
mutable qsizetype m_offset = nullsize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief m_resultsPerPage
|
* @brief m_resultsPerPage
|
||||||
@@ -294,16 +361,22 @@ private:
|
|||||||
*/
|
*/
|
||||||
SlidingCacheController<T> m_cacheController;
|
SlidingCacheController<T> m_cacheController;
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief m_data
|
|
||||||
* Internal data copy
|
|
||||||
*/
|
|
||||||
QList<T> m_data;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief m_dataMutex
|
* @brief m_dataMutex
|
||||||
*/
|
*/
|
||||||
mutable QMutex m_dataMutex;
|
mutable QMutex m_dataMutex;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief m_query
|
||||||
|
* The query string used in fetch operations
|
||||||
|
*/
|
||||||
|
QString m_query;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief m_queryable
|
||||||
|
* Controls the queryable state of the paginator
|
||||||
|
*/
|
||||||
|
bool m_queryable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PAGINATOR_H
|
#endif // PAGINATOR_H
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
#include <QMutexLocker>
|
#include <QMutexLocker>
|
||||||
|
#include <QThread>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "fetchresult.h"
|
#include "fetchresult.h"
|
||||||
@@ -40,6 +41,9 @@ class KOMPLEX_EXPORT SlidingCacheNotifier : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
signals:
|
signals:
|
||||||
auto countChanged() -> void;
|
auto countChanged() -> void;
|
||||||
|
auto fetching() -> void;
|
||||||
|
auto fetchComplete() -> void;
|
||||||
|
auto windowSizeChanged() -> void;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -50,6 +54,12 @@ signals:
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class KOMPLEX_EXPORT SlidingCacheController : public SlidingCacheNotifier
|
class KOMPLEX_EXPORT SlidingCacheController : public SlidingCacheNotifier
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @brief FetchFunction
|
||||||
|
* Convenience def used by setFetch
|
||||||
|
*/
|
||||||
|
typedef std::function<FetchResult<T> (qsizetype offset, qsizetype limit)> FetchFunction;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit SlidingCacheController() : SlidingCacheNotifier{}
|
explicit SlidingCacheController() : SlidingCacheNotifier{}
|
||||||
@@ -70,9 +80,7 @@ public:
|
|||||||
* QObject
|
* QObject
|
||||||
* @param fetch
|
* @param fetch
|
||||||
*/
|
*/
|
||||||
auto setFetch(
|
auto setFetch(const FetchFunction &fetch) -> void
|
||||||
const std::function<FetchResult<T> (qsizetype offset, qsizetype limit)> &fetch
|
|
||||||
) -> void
|
|
||||||
{
|
{
|
||||||
m_fetch = std::move(fetch);
|
m_fetch = std::move(fetch);
|
||||||
}
|
}
|
||||||
@@ -85,25 +93,26 @@ public:
|
|||||||
* @return CacheObject* or nullptr
|
* @return CacheObject* or nullptr
|
||||||
*/
|
*/
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
auto at(qsizetype index) const -> T
|
auto at(qsizetype index) const -> const T&
|
||||||
{
|
{
|
||||||
QMutexLocker cacheLocker(&m_cacheMutex);
|
QMutexLocker cacheLocker(&m_cacheMutex);
|
||||||
|
T defaultValue;
|
||||||
|
|
||||||
if(!externalBoundaryCheck(index))
|
if(!externalBoundaryCheck(index))
|
||||||
{
|
{
|
||||||
return {};
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!const_cast<SlidingCacheController*>(this)->slideWindow(index))
|
if(!const_cast<SlidingCacheController*>(this)->slideWindow(index))
|
||||||
{
|
{
|
||||||
return {};
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
qsizetype internalIndex = this->internalIndex(index);
|
qsizetype internalIndex = this->internalIndex(index);
|
||||||
|
|
||||||
if(!internalBoundaryCheck(index))
|
if(!internalBoundaryCheck(index))
|
||||||
{
|
{
|
||||||
return {};
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_cache.at(index);
|
return m_cache.at(index);
|
||||||
@@ -144,19 +153,7 @@ public:
|
|||||||
count = m_cache.count() - index;
|
count = m_cache.count() - index;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<T> dataChunk;
|
return m_cache.mid(index, count);
|
||||||
|
|
||||||
for(qsizetype i = index; (i - index) < count; ++i)
|
|
||||||
{
|
|
||||||
T data = m_cache.at(i);
|
|
||||||
|
|
||||||
if(data != T{})
|
|
||||||
{
|
|
||||||
dataChunk.append(data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return dataChunk;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -167,7 +164,7 @@ public:
|
|||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
auto totalCount() const -> qsizetype
|
auto totalCount() const -> qsizetype
|
||||||
{
|
{
|
||||||
if(m_totalCount == std::numeric_limits<qsizetype>::infinity())
|
if(m_totalCount == nullsize)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -195,10 +192,53 @@ public:
|
|||||||
QMutexLocker cacheLocker(&m_cacheMutex);
|
QMutexLocker cacheLocker(&m_cacheMutex);
|
||||||
|
|
||||||
m_cache.clear();
|
m_cache.clear();
|
||||||
setTotalCount(std::numeric_limits<qsizetype>::infinity());
|
setTotalCount(nullsize);
|
||||||
m_windowOffset = 0;
|
m_windowOffset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto focus(qsizetype index, qsizetype count) -> void
|
||||||
|
{
|
||||||
|
if(inFocus(index, count) || !externalBoundaryCheck(index))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!externalBoundaryCheck(index + count))
|
||||||
|
{
|
||||||
|
slideWindow(index);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
auto init() -> bool
|
||||||
|
{
|
||||||
|
if(m_totalCount != nullsize)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return slideForward();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto windowSize() const -> qsizetype
|
||||||
|
{
|
||||||
|
if(m_windowSize == nullsize)
|
||||||
|
{
|
||||||
|
return SLIDING_CACHE_WINDOW_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return m_windowSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto setWindowSize(qsizetype windowSize) -> void
|
||||||
|
{
|
||||||
|
if(windowSize == m_windowSize)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @brief setTotalCount
|
* @brief setTotalCount
|
||||||
@@ -215,6 +255,16 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
auto inFocus(qsizetype index, qsizetype count) -> bool
|
||||||
|
{
|
||||||
|
qsizetype internalIndex = this->internalIndex(index);
|
||||||
|
|
||||||
|
return
|
||||||
|
(
|
||||||
|
internalBoundaryCheck(internalIndex, internalIndex + count)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief externalBoundaryCheck
|
* @brief externalBoundaryCheck
|
||||||
*
|
*
|
||||||
@@ -224,12 +274,29 @@ private:
|
|||||||
* @return True if index is within the external dataset boundary
|
* @return True if index is within the external dataset boundary
|
||||||
* OR an initial fetch has not been performed.
|
* OR an initial fetch has not been performed.
|
||||||
*/
|
*/
|
||||||
auto externalBoundaryCheck(qsizetype index) const -> bool
|
template<typename... Ts>
|
||||||
|
auto externalBoundaryCheck(Ts... index) const -> bool
|
||||||
{
|
{
|
||||||
return (
|
static_assert
|
||||||
|
(
|
||||||
|
(std::is_same_v<Ts, qsizetype> && ...),
|
||||||
|
"All arguments must be qsizetype"
|
||||||
|
);
|
||||||
|
|
||||||
|
bool safe = false;
|
||||||
|
|
||||||
|
((safe = externalBoundaryCheckHelper(index)),...);
|
||||||
|
|
||||||
|
return safe;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto externalBoundaryCheckHelper(qsizetype index) const -> bool
|
||||||
|
{
|
||||||
|
return
|
||||||
|
(
|
||||||
index >= 0 &&
|
index >= 0 &&
|
||||||
(
|
(
|
||||||
m_totalCount == std::numeric_limits<qsizetype>::infinity() ||
|
m_totalCount == nullsize ||
|
||||||
index < m_totalCount
|
index < m_totalCount
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -242,12 +309,18 @@ private:
|
|||||||
* @param index
|
* @param index
|
||||||
* @return True if index is within the internal dataset boundary
|
* @return True if index is within the internal dataset boundary
|
||||||
*/
|
*/
|
||||||
auto internalBoundaryCheck(qsizetype index) const -> bool
|
template<typename... Ts>
|
||||||
|
auto internalBoundaryCheck(Ts... index) const -> bool
|
||||||
{
|
{
|
||||||
return (
|
static_assert
|
||||||
index >= 0 &&
|
(
|
||||||
index < m_cache.count()
|
(std::is_same_v<Ts, qsizetype> && ...),
|
||||||
|
"All arguments must be qsizetype"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
bool safe = false;
|
||||||
|
((safe = index >= 0 && index < m_cache.count()), ...);
|
||||||
|
return safe;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -280,14 +353,6 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_totalCount == std::numeric_limits<qsizetype>::infinity())
|
|
||||||
{
|
|
||||||
if(!slideForward())
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,20 +364,41 @@ private:
|
|||||||
auto slideForward() -> bool
|
auto slideForward() -> bool
|
||||||
{
|
{
|
||||||
LOG_ERROR_X(!m_fetch,
|
LOG_ERROR_X(!m_fetch,
|
||||||
"SlidingCacheController::slideBackward",
|
"SlidingCacheController::slideForward",
|
||||||
"Fetch function not set",
|
"Fetch function not set",
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Q_EMIT fetching();
|
||||||
|
|
||||||
qsizetype movementSize = SLIDING_CACHE_WINDOW_SIZE;
|
qsizetype movementSize = SLIDING_CACHE_WINDOW_SIZE;
|
||||||
|
qsizetype prefetchThreshold = SLIDING_CACHE_PREFETCH_THRESHOLD;
|
||||||
|
|
||||||
|
if(m_windowSize != nullsize)
|
||||||
|
{
|
||||||
|
movementSize = m_windowSize;
|
||||||
|
|
||||||
|
if(prefetchThreshold >= m_windowSize)
|
||||||
|
{
|
||||||
|
prefetchThreshold = std::floor(
|
||||||
|
static_cast<qreal>(movementSize) * 0.8
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LOG_ERROR_X(movementSize <= 0 || prefetchThreshold <= 0,
|
||||||
|
"SlidingCacheController::slideForward",
|
||||||
|
"Invalid movement size",
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
//after initial inflation we should only arrive here when the prefetch threshold is reached
|
//after initial inflation we should only arrive here when the prefetch threshold is reached
|
||||||
if(!m_cache.isEmpty())
|
if(!m_cache.isEmpty())
|
||||||
{
|
{
|
||||||
movementSize -= SLIDING_CACHE_PREFETCH_THRESHOLD;
|
movementSize -= prefetchThreshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_totalCount != std::numeric_limits<qsizetype>::infinity())
|
if(m_totalCount != nullsize)
|
||||||
{
|
{
|
||||||
m_windowOffset += movementSize;
|
m_windowOffset += movementSize;
|
||||||
}
|
}
|
||||||
@@ -321,6 +407,8 @@ private:
|
|||||||
m_windowOffset = 0;
|
m_windowOffset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QThread::sleep(KOMPLEX_RATE_LIMIT);
|
||||||
|
|
||||||
FetchResult<T> result = m_fetch(
|
FetchResult<T> result = m_fetch(
|
||||||
m_windowOffset,
|
m_windowOffset,
|
||||||
movementSize
|
movementSize
|
||||||
@@ -337,6 +425,8 @@ private:
|
|||||||
if(result.data.isEmpty())
|
if(result.data.isEmpty())
|
||||||
{
|
{
|
||||||
m_windowOffset -= movementSize;
|
m_windowOffset -= movementSize;
|
||||||
|
|
||||||
|
Q_EMIT fetchComplete();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -359,6 +449,8 @@ private:
|
|||||||
m_cache.append(std::move(result.data));
|
m_cache.append(std::move(result.data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Q_EMIT fetchComplete();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -375,7 +467,31 @@ private:
|
|||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
qsizetype movementSize = SLIDING_CACHE_WINDOW_SIZE - SLIDING_CACHE_PREFETCH_THRESHOLD;
|
Q_EMIT fetching();
|
||||||
|
|
||||||
|
qsizetype movementSize = SLIDING_CACHE_WINDOW_SIZE;
|
||||||
|
qsizetype prefetchThreshold = SLIDING_CACHE_PREFETCH_THRESHOLD;
|
||||||
|
|
||||||
|
if(m_windowSize != nullsize)
|
||||||
|
{
|
||||||
|
movementSize = m_windowSize;
|
||||||
|
|
||||||
|
if(prefetchThreshold >= m_windowSize)
|
||||||
|
{
|
||||||
|
prefetchThreshold = std::floor(
|
||||||
|
static_cast<qreal>(movementSize) * 0.8
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LOG_ERROR_X(movementSize <= 0 || prefetchThreshold <= 0,
|
||||||
|
"SlidingCacheController::slideBackward",
|
||||||
|
"Invalid movement size",
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
|
QThread::sleep(KOMPLEX_RATE_LIMIT);
|
||||||
|
|
||||||
m_windowOffset -= movementSize;
|
m_windowOffset -= movementSize;
|
||||||
|
|
||||||
if(m_windowOffset < 0)
|
if(m_windowOffset < 0)
|
||||||
@@ -391,6 +507,8 @@ private:
|
|||||||
if(result.count == 0)
|
if(result.count == 0)
|
||||||
{
|
{
|
||||||
m_windowOffset += movementSize;
|
m_windowOffset += movementSize;
|
||||||
|
|
||||||
|
Q_EMIT fetchComplete();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -419,6 +537,8 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Q_EMIT fetchComplete();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -444,7 +564,7 @@ private:
|
|||||||
* Total number of results available. Data comes from the return data of
|
* Total number of results available. Data comes from the return data of
|
||||||
* m_fetch
|
* m_fetch
|
||||||
*/
|
*/
|
||||||
qsizetype m_totalCount = std::numeric_limits<qsizetype>::infinity();
|
qsizetype m_totalCount = nullsize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief m_fetch
|
* @brief m_fetch
|
||||||
@@ -463,6 +583,12 @@ private:
|
|||||||
* @brief m_cacheMutex
|
* @brief m_cacheMutex
|
||||||
*/
|
*/
|
||||||
mutable QMutex m_cacheMutex;
|
mutable QMutex m_cacheMutex;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief m_windowSize
|
||||||
|
* Override for window size
|
||||||
|
*/
|
||||||
|
qsizetype m_windowSize = nullsize;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SLIDINGCACHECONTROLLER_H
|
#endif // SLIDINGCACHECONTROLLER_H
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
FeaturedImagesModel::FeaturedImagesModel(QObject *parent) : QAbstractListModel{parent}
|
FeaturedImagesModel::FeaturedImagesModel(QObject *parent) : QAbstractListModel{parent}
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
m_paginator = new FeaturedImagesPaginator(this);
|
m_paginator = new FeaturedImagesPaginator(this);
|
||||||
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
||||||
|
|
||||||
@@ -37,10 +35,24 @@ FeaturedImagesModel::FeaturedImagesModel(QObject *parent) : QAbstractListModel{p
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
notifier,
|
notifier,
|
||||||
&PaginationNotifier::dataChanged,
|
&PaginationNotifier::pageChanged,
|
||||||
this,
|
this,
|
||||||
&FeaturedImagesModel::resetDataModel
|
&FeaturedImagesModel::resetDataModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&FeaturedImagesModel::resetState
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&FeaturedImagesModel::onPaginatorFetching
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedImagesModel::rowCount(const QModelIndex &) const -> int
|
auto FeaturedImagesModel::rowCount(const QModelIndex &) const -> int
|
||||||
@@ -55,12 +67,12 @@ auto FeaturedImagesModel::rowCount(const QModelIndex &) const -> int
|
|||||||
|
|
||||||
auto FeaturedImagesModel::data(const QModelIndex &index, int role) const -> QVariant
|
auto FeaturedImagesModel::data(const QModelIndex &index, int role) const -> QVariant
|
||||||
{
|
{
|
||||||
if(index.row() < 0 || m_paginator == nullptr)
|
if(!boundaryCheck(index.row()))
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageCache dataPoint = m_data.at(index.row());
|
ImageCache dataPoint = m_paginator->at(index.row());
|
||||||
|
|
||||||
QVariant data;
|
QVariant data;
|
||||||
|
|
||||||
@@ -105,6 +117,27 @@ auto FeaturedImagesModel::data(const QModelIndex &index, int role) const -> QVar
|
|||||||
case ExtraLargeUrlRole:
|
case ExtraLargeUrlRole:
|
||||||
data = dataPoint.sources.value(QString::fromUtf8("large2x"));
|
data = dataPoint.sources.value(QString::fromUtf8("large2x"));
|
||||||
break;
|
break;
|
||||||
|
case PortraitSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("portrait"));
|
||||||
|
break;
|
||||||
|
case LandscapeSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("landscape"));
|
||||||
|
break;
|
||||||
|
case SmallSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("small"));
|
||||||
|
break;
|
||||||
|
case OriginalSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("original"));
|
||||||
|
break;
|
||||||
|
case MediumSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("medium"));
|
||||||
|
break;
|
||||||
|
case LargeSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("large"));
|
||||||
|
break;
|
||||||
|
case ExtraLargeSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("large2x"));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
@@ -114,10 +147,12 @@ auto FeaturedImagesModel::index(int row, int column, const QModelIndex &parent)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(parent)
|
Q_UNUSED(parent)
|
||||||
|
|
||||||
if(row < 0 || row >= m_data.count())
|
if(!boundaryCheck(row))
|
||||||
|
{
|
||||||
return {};
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
return createIndex(row, column, &m_data[row]);
|
return createIndex(row, column, &m_paginator[row]);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedImagesModel::columnCount(const QModelIndex &) const -> int
|
auto FeaturedImagesModel::columnCount(const QModelIndex &) const -> int
|
||||||
@@ -158,25 +193,28 @@ auto FeaturedImagesModel::resetState() -> void
|
|||||||
|
|
||||||
auto FeaturedImagesModel::resetDataModel() -> void
|
auto FeaturedImagesModel::resetDataModel() -> void
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
//invalidate previous model data
|
//invalidate previous model data
|
||||||
beginRemoveRows(QModelIndex(), 0, m_data.count());
|
beginRemoveRows(QModelIndex(), 0, m_paginator->count());
|
||||||
m_data.clear();
|
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
//signal new data
|
//signal new data
|
||||||
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
||||||
auto dataset = m_paginator->data();
|
endInsertRows();
|
||||||
|
}
|
||||||
|
|
||||||
for(const ImageCache& data : std::as_const(dataset))
|
auto FeaturedImagesModel::onPaginatorFetching() -> void
|
||||||
|
{
|
||||||
|
setState(Loading);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto FeaturedImagesModel::boundaryCheck(qsizetype index) const -> bool
|
||||||
|
{
|
||||||
|
if(index < 0 || m_paginator == nullptr || index >= m_paginator->count())
|
||||||
{
|
{
|
||||||
m_data.append(data);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
endInsertRows();
|
return true;
|
||||||
|
|
||||||
setState(Idle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedImagesModel::roleNames() const -> QHash<int, QByteArray>
|
auto FeaturedImagesModel::roleNames() const -> QHash<int, QByteArray>
|
||||||
@@ -214,7 +252,13 @@ auto FeaturedImagesModel::setResultsPerPage(qsizetype resultsPerPage) -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->setResultsPerPage(resultsPerPage);
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, resultsPerPage]
|
||||||
|
{
|
||||||
|
m_paginator->setResultsPerPage(resultsPerPage);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,19 +272,31 @@ auto FeaturedImagesModel::totalResults() const -> qsizetype
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedImagesModel::nextPage() const -> void
|
auto FeaturedImagesModel::nextPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->next();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->next();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedImagesModel::previousPage() const -> void
|
auto FeaturedImagesModel::previousPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->previous();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->previous();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
#include "paginators/featuredimagespaginator.h"
|
#include "paginators/featuredimagespaginator.h"
|
||||||
|
|
||||||
@@ -74,7 +75,14 @@ public:
|
|||||||
OriginalUrlRole,
|
OriginalUrlRole,
|
||||||
MediumUrlRole,
|
MediumUrlRole,
|
||||||
LargeUrlRole,
|
LargeUrlRole,
|
||||||
ExtraLargeUrlRole
|
ExtraLargeUrlRole,
|
||||||
|
PortraitSizeRole,
|
||||||
|
LandscapeSizeRole,
|
||||||
|
SmallSizeRole,
|
||||||
|
OriginalSizeRole,
|
||||||
|
MediumSizeRole,
|
||||||
|
LargeSizeRole,
|
||||||
|
ExtraLargeSizeRole
|
||||||
};
|
};
|
||||||
Q_ENUM(DataRole)
|
Q_ENUM(DataRole)
|
||||||
|
|
||||||
@@ -200,13 +208,13 @@ public:
|
|||||||
* @brief nextPage
|
* @brief nextPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto nextPage() const -> void;
|
Q_INVOKABLE auto nextPage() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief previousPage
|
* @brief previousPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto previousPage() const -> void;
|
Q_INVOKABLE auto previousPage() -> void;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
@@ -226,8 +234,19 @@ protected:
|
|||||||
*/
|
*/
|
||||||
auto resetState() -> void;
|
auto resetState() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief resetDataModel
|
||||||
|
* Clears the data model and creates a new one if data exists
|
||||||
|
*/
|
||||||
auto resetDataModel() -> void;
|
auto resetDataModel() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief onPaginatorFetching
|
||||||
|
* Sets current state to loading. Triggered when paginator's cache controller
|
||||||
|
* needs to fetch data from the remote endpoint.
|
||||||
|
*/
|
||||||
|
auto onPaginatorFetching() -> void;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
auto stateChanged() -> void;
|
auto stateChanged() -> void;
|
||||||
auto errorStringChanged() -> void;
|
auto errorStringChanged() -> void;
|
||||||
@@ -238,6 +257,18 @@ signals:
|
|||||||
auto totalPagesChanged() -> void;
|
auto totalPagesChanged() -> void;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* @brief boundaryCheck
|
||||||
|
* Helper function to check the requested index boundary
|
||||||
|
* @param index
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto boundaryCheck(qsizetype index) const -> bool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief m_dataRoles
|
||||||
|
* Data role map that connects ImageSearchModel::DataRole to it's QML accessor name
|
||||||
|
*/
|
||||||
static inline const QHash<int, QByteArray> m_dataRoles =
|
static inline const QHash<int, QByteArray> m_dataRoles =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -291,6 +322,34 @@ private:
|
|||||||
{
|
{
|
||||||
static_cast<int>(ExtraLargeUrlRole),
|
static_cast<int>(ExtraLargeUrlRole),
|
||||||
QByteArray("extraLarge")
|
QByteArray("extraLarge")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(PortraitSizeRole),
|
||||||
|
QByteArray("portraitSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(LandscapeSizeRole),
|
||||||
|
QByteArray("landscapeSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(SmallSizeRole),
|
||||||
|
QByteArray("smallSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(OriginalSizeRole),
|
||||||
|
QByteArray("originalSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(MediumSizeRole),
|
||||||
|
QByteArray("mediumSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(LargeSizeRole),
|
||||||
|
QByteArray("largeSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(ExtraLargeSizeRole),
|
||||||
|
QByteArray("extraLargeSize")
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
State m_state = Idle;
|
State m_state = Idle;
|
||||||
@@ -299,8 +358,6 @@ private:
|
|||||||
|
|
||||||
FeaturedImagesPaginator *m_paginator = nullptr;
|
FeaturedImagesPaginator *m_paginator = nullptr;
|
||||||
|
|
||||||
mutable QList<ImageCache> m_data;
|
|
||||||
|
|
||||||
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
||||||
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
||||||
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
||||||
|
|||||||
@@ -36,10 +36,24 @@ FeaturedPacksModel::FeaturedPacksModel(QObject *parent) : QAbstractListModel{par
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
notifier,
|
notifier,
|
||||||
&PaginationNotifier::dataChanged,
|
&PaginationNotifier::pageChanged,
|
||||||
this,
|
this,
|
||||||
&FeaturedPacksModel::resetDataModel
|
&FeaturedPacksModel::resetDataModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&FeaturedPacksModel::resetState
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&FeaturedPacksModel::onPaginatorFetching
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedPacksModel::rowCount(const QModelIndex &) const -> int
|
auto FeaturedPacksModel::rowCount(const QModelIndex &) const -> int
|
||||||
@@ -54,12 +68,12 @@ auto FeaturedPacksModel::rowCount(const QModelIndex &) const -> int
|
|||||||
|
|
||||||
auto FeaturedPacksModel::data(const QModelIndex &index, int role) const -> QVariant
|
auto FeaturedPacksModel::data(const QModelIndex &index, int role) const -> QVariant
|
||||||
{
|
{
|
||||||
if(index.row() < 0 || m_paginator == nullptr)
|
if(index.row() < 0 || m_paginator == nullptr || index.row() >= m_paginator->count())
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
WallpaperCache dataPoint = m_data.at(index.row());
|
WallpaperCache dataPoint = m_paginator->at(index.row());
|
||||||
|
|
||||||
QVariant data;
|
QVariant data;
|
||||||
|
|
||||||
@@ -107,10 +121,12 @@ auto FeaturedPacksModel::index(int row, int column, const QModelIndex &parent) c
|
|||||||
{
|
{
|
||||||
Q_UNUSED(parent)
|
Q_UNUSED(parent)
|
||||||
|
|
||||||
if(row < 0 || row >= m_data.count())
|
if(row < 0 || row >= m_paginator->count())
|
||||||
|
{
|
||||||
return {};
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
return createIndex(row, column, &m_data[row]);
|
return createIndex(row, column, &m_paginator[row]);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedPacksModel::columnCount(const QModelIndex &) const -> int
|
auto FeaturedPacksModel::columnCount(const QModelIndex &) const -> int
|
||||||
@@ -141,7 +157,7 @@ auto FeaturedPacksModel::setState(State state) -> void
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_state = state;
|
m_state = state;
|
||||||
emit stateChanged();
|
Q_EMIT stateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedPacksModel::resetState() -> void
|
auto FeaturedPacksModel::resetState() -> void
|
||||||
@@ -152,22 +168,19 @@ auto FeaturedPacksModel::resetState() -> void
|
|||||||
auto FeaturedPacksModel::resetDataModel() -> void
|
auto FeaturedPacksModel::resetDataModel() -> void
|
||||||
{
|
{
|
||||||
//invalidate previous model data
|
//invalidate previous model data
|
||||||
beginRemoveRows(QModelIndex(), 0, m_data.count());
|
beginRemoveRows(QModelIndex(), 0, m_paginator->count());
|
||||||
m_data.clear();
|
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
//signal new data
|
//signal new data
|
||||||
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
||||||
auto dataset = m_paginator->data();
|
|
||||||
|
|
||||||
for(const WallpaperCache& data : std::as_const(dataset))
|
|
||||||
{
|
|
||||||
m_data.append(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto FeaturedPacksModel::onPaginatorFetching() -> void
|
||||||
|
{
|
||||||
|
setState(Loading);
|
||||||
|
}
|
||||||
|
|
||||||
auto FeaturedPacksModel::roleNames() const -> QHash<int, QByteArray>
|
auto FeaturedPacksModel::roleNames() const -> QHash<int, QByteArray>
|
||||||
{
|
{
|
||||||
return m_dataRoles;
|
return m_dataRoles;
|
||||||
@@ -186,7 +199,7 @@ auto FeaturedPacksModel::setErrorString(const QString &errorString) -> void
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_errorString = errorString;
|
m_errorString = errorString;
|
||||||
emit errorStringChanged();
|
Q_EMIT errorStringChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedPacksModel::resultsPerPage() const -> qsizetype
|
auto FeaturedPacksModel::resultsPerPage() const -> qsizetype
|
||||||
@@ -203,7 +216,13 @@ auto FeaturedPacksModel::setResultsPerPage(qsizetype resultsPerPage) -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->setResultsPerPage(resultsPerPage);
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, resultsPerPage]
|
||||||
|
{
|
||||||
|
m_paginator->setResultsPerPage(resultsPerPage);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,19 +236,31 @@ auto FeaturedPacksModel::totalResults() const -> qsizetype
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedPacksModel::nextPage() const -> void
|
auto FeaturedPacksModel::nextPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->next();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->next();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedPacksModel::previousPage() const -> void
|
auto FeaturedPacksModel::previousPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->previous();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->previous();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
#include "paginators/featuredpackspaginator.h"
|
#include "paginators/featuredpackspaginator.h"
|
||||||
|
|
||||||
@@ -198,13 +199,13 @@ public:
|
|||||||
* @brief nextPage
|
* @brief nextPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto nextPage() const -> void;
|
Q_INVOKABLE auto nextPage() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief previousPage
|
* @brief previousPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto previousPage() const -> void;
|
Q_INVOKABLE auto previousPage() -> void;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
@@ -226,6 +227,8 @@ protected:
|
|||||||
|
|
||||||
auto resetDataModel() -> void;
|
auto resetDataModel() -> void;
|
||||||
|
|
||||||
|
auto onPaginatorFetching() -> void;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
auto stateChanged() -> void;
|
auto stateChanged() -> void;
|
||||||
auto errorStringChanged() -> void;
|
auto errorStringChanged() -> void;
|
||||||
@@ -236,6 +239,10 @@ signals:
|
|||||||
auto totalPagesChanged() -> void;
|
auto totalPagesChanged() -> void;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* @brief m_dataRoles
|
||||||
|
* Data role map that connects ImageSearchModel::DataRole to it's QML accessor name
|
||||||
|
*/
|
||||||
static inline const QHash<int, QByteArray> m_dataRoles =
|
static inline const QHash<int, QByteArray> m_dataRoles =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -289,8 +296,6 @@ private:
|
|||||||
|
|
||||||
FeaturedPacksPaginator *m_paginator = nullptr;
|
FeaturedPacksPaginator *m_paginator = nullptr;
|
||||||
|
|
||||||
mutable QList<WallpaperCache> m_data;
|
|
||||||
|
|
||||||
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
||||||
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
||||||
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
FeaturedVideosModel::FeaturedVideosModel(QObject *parent) : QAbstractListModel{parent}
|
FeaturedVideosModel::FeaturedVideosModel(QObject *parent) : QAbstractListModel{parent}
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
m_paginator = new FeaturedVideosPaginator(this);
|
m_paginator = new FeaturedVideosPaginator(this);
|
||||||
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
||||||
|
|
||||||
@@ -38,10 +36,24 @@ FeaturedVideosModel::FeaturedVideosModel(QObject *parent) : QAbstractListModel{p
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
notifier,
|
notifier,
|
||||||
&PaginationNotifier::dataChanged,
|
&PaginationNotifier::pageChanged,
|
||||||
this,
|
this,
|
||||||
&FeaturedVideosModel::resetDataModel
|
&FeaturedVideosModel::resetDataModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&FeaturedVideosModel::resetState
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&FeaturedVideosModel::onPaginatorFetching
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedVideosModel::rowCount(const QModelIndex &) const -> int
|
auto FeaturedVideosModel::rowCount(const QModelIndex &) const -> int
|
||||||
@@ -56,12 +68,12 @@ auto FeaturedVideosModel::rowCount(const QModelIndex &) const -> int
|
|||||||
|
|
||||||
auto FeaturedVideosModel::data(const QModelIndex &index, int role) const -> QVariant
|
auto FeaturedVideosModel::data(const QModelIndex &index, int role) const -> QVariant
|
||||||
{
|
{
|
||||||
if(index.row() < 0 || m_paginator == nullptr)
|
if(index.row() < 0 || m_paginator == nullptr || index.row() >= m_paginator->count())
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoCache dataPoint = m_data.at(index.row());
|
VideoCache dataPoint = m_paginator->at(index.row());
|
||||||
|
|
||||||
QVariant data;
|
QVariant data;
|
||||||
|
|
||||||
@@ -103,10 +115,17 @@ auto FeaturedVideosModel::index(int row, int column, const QModelIndex &parent)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(parent)
|
Q_UNUSED(parent)
|
||||||
|
|
||||||
if(row < 0 || row >= m_data.count())
|
if(m_paginator == nullptr)
|
||||||
|
{
|
||||||
return {};
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
return createIndex(row, column, &m_data[row]);
|
if(row < 0 || row >= m_paginator->count())
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
return createIndex(row, column, &m_paginator[row]);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedVideosModel::columnCount(const QModelIndex &) const -> int
|
auto FeaturedVideosModel::columnCount(const QModelIndex &) const -> int
|
||||||
@@ -147,25 +166,18 @@ auto FeaturedVideosModel::resetState() -> void
|
|||||||
|
|
||||||
auto FeaturedVideosModel::resetDataModel() -> void
|
auto FeaturedVideosModel::resetDataModel() -> void
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
//invalidate previous model data
|
//invalidate previous model data
|
||||||
beginRemoveRows(QModelIndex(), 0, m_data.count());
|
beginRemoveRows(QModelIndex(), 0, m_paginator->count());
|
||||||
m_data.clear();
|
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
//signal new data
|
//signal new data
|
||||||
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
||||||
auto dataset = m_paginator->data();
|
|
||||||
|
|
||||||
for(const VideoCache& data : std::as_const(dataset))
|
|
||||||
{
|
|
||||||
m_data.append(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
}
|
||||||
|
|
||||||
setState(Idle);
|
auto FeaturedVideosModel::onPaginatorFetching() -> void
|
||||||
|
{
|
||||||
|
setState(Loading);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedVideosModel::roleNames() const -> QHash<int, QByteArray>
|
auto FeaturedVideosModel::roleNames() const -> QHash<int, QByteArray>
|
||||||
@@ -203,7 +215,13 @@ auto FeaturedVideosModel::setResultsPerPage(qsizetype resultsPerPage) -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->setResultsPerPage(resultsPerPage);
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, resultsPerPage]
|
||||||
|
{
|
||||||
|
m_paginator->setResultsPerPage(resultsPerPage);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,19 +235,31 @@ auto FeaturedVideosModel::totalResults() const -> qsizetype
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedVideosModel::nextPage() const -> void
|
auto FeaturedVideosModel::nextPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->next();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->next();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto FeaturedVideosModel::previousPage() const -> void
|
auto FeaturedVideosModel::previousPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->previous();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->previous();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
#include "paginators/featuredvideospaginator.h"
|
#include "paginators/featuredvideospaginator.h"
|
||||||
|
|
||||||
@@ -196,13 +197,13 @@ public:
|
|||||||
* @brief nextPage
|
* @brief nextPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto nextPage() const -> void;
|
Q_INVOKABLE auto nextPage() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief previousPage
|
* @brief previousPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto previousPage() const -> void;
|
Q_INVOKABLE auto previousPage() -> void;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
@@ -224,6 +225,8 @@ protected:
|
|||||||
|
|
||||||
auto resetDataModel() -> void;
|
auto resetDataModel() -> void;
|
||||||
|
|
||||||
|
auto onPaginatorFetching() -> void;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
auto stateChanged() -> void;
|
auto stateChanged() -> void;
|
||||||
auto errorStringChanged() -> void;
|
auto errorStringChanged() -> void;
|
||||||
@@ -234,6 +237,10 @@ signals:
|
|||||||
auto totalPagesChanged() -> void;
|
auto totalPagesChanged() -> void;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* @brief m_dataRoles
|
||||||
|
* Data role map that connects ImageSearchModel::DataRole to it's QML accessor name
|
||||||
|
*/
|
||||||
static inline const QHash<int, QByteArray> m_dataRoles =
|
static inline const QHash<int, QByteArray> m_dataRoles =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -279,8 +286,6 @@ private:
|
|||||||
|
|
||||||
FeaturedVideosPaginator *m_paginator = nullptr;
|
FeaturedVideosPaginator *m_paginator = nullptr;
|
||||||
|
|
||||||
mutable QList<VideoCache> m_data;
|
|
||||||
|
|
||||||
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
||||||
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
||||||
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
ImageSearchModel::ImageSearchModel(QObject *parent) : QAbstractListModel{parent}
|
ImageSearchModel::ImageSearchModel(QObject *parent) : QAbstractListModel{parent}
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
m_paginator = new ImageSearchPaginator(this);
|
m_paginator = new ImageSearchPaginator(this);
|
||||||
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
||||||
|
|
||||||
@@ -37,11 +35,25 @@ ImageSearchModel::ImageSearchModel(QObject *parent) : QAbstractListModel{parent}
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
notifier,
|
notifier,
|
||||||
&PaginationNotifier::dataChanged,
|
&PaginationNotifier::pageChanged,
|
||||||
this,
|
this,
|
||||||
&ImageSearchModel::resetDataModel
|
&ImageSearchModel::resetDataModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&ImageSearchModel::resetState
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&ImageSearchModel::onPaginatorFetching
|
||||||
|
);
|
||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
m_paginator,
|
m_paginator,
|
||||||
&ImageSearchPaginator::queryChanged,
|
&ImageSearchPaginator::queryChanged,
|
||||||
@@ -50,6 +62,14 @@ ImageSearchModel::ImageSearchModel(QObject *parent) : QAbstractListModel{parent}
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImageSearchModel::~ImageSearchModel()
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
delete m_paginator;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
auto ImageSearchModel::rowCount(const QModelIndex &) const -> int
|
auto ImageSearchModel::rowCount(const QModelIndex &) const -> int
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
@@ -62,12 +82,12 @@ auto ImageSearchModel::rowCount(const QModelIndex &) const -> int
|
|||||||
|
|
||||||
auto ImageSearchModel::data(const QModelIndex &index, int role) const -> QVariant
|
auto ImageSearchModel::data(const QModelIndex &index, int role) const -> QVariant
|
||||||
{
|
{
|
||||||
if(index.row() < 0 || m_paginator == nullptr)
|
if(index.row() < 0 || m_paginator == nullptr || index.row() >= m_paginator->count())
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageCache dataPoint = m_data.at(index.row());
|
ImageCache dataPoint = m_paginator->at(index.row());
|
||||||
|
|
||||||
QVariant data;
|
QVariant data;
|
||||||
|
|
||||||
@@ -112,6 +132,27 @@ auto ImageSearchModel::data(const QModelIndex &index, int role) const -> QVarian
|
|||||||
case ExtraLargeUrlRole:
|
case ExtraLargeUrlRole:
|
||||||
data = dataPoint.sources.value(QString::fromUtf8("large2x"));
|
data = dataPoint.sources.value(QString::fromUtf8("large2x"));
|
||||||
break;
|
break;
|
||||||
|
case PortraitSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("portrait"));
|
||||||
|
break;
|
||||||
|
case LandscapeSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("landscape"));
|
||||||
|
break;
|
||||||
|
case SmallSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("small"));
|
||||||
|
break;
|
||||||
|
case OriginalSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("original"));
|
||||||
|
break;
|
||||||
|
case MediumSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("medium"));
|
||||||
|
break;
|
||||||
|
case LargeSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("large"));
|
||||||
|
break;
|
||||||
|
case ExtraLargeSizeRole:
|
||||||
|
data = dataPoint.sourceSizes.value(QString::fromUtf8("large2x"));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
@@ -121,10 +162,12 @@ auto ImageSearchModel::index(int row, int column, const QModelIndex &parent) con
|
|||||||
{
|
{
|
||||||
Q_UNUSED(parent)
|
Q_UNUSED(parent)
|
||||||
|
|
||||||
if(row < 0 || row >= m_data.count())
|
if(row < 0 || row >= m_paginator->count())
|
||||||
|
{
|
||||||
return {};
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
return createIndex(row, column, &m_data[row]);
|
return createIndex(row, column, &m_paginator->at(row));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ImageSearchModel::columnCount(const QModelIndex &) const -> int
|
auto ImageSearchModel::columnCount(const QModelIndex &) const -> int
|
||||||
@@ -165,33 +208,26 @@ auto ImageSearchModel::resetState() -> void
|
|||||||
|
|
||||||
auto ImageSearchModel::resetDataModel() -> void
|
auto ImageSearchModel::resetDataModel() -> void
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
//invalidate previous model data
|
//invalidate previous model data
|
||||||
beginRemoveRows(QModelIndex(), 0, m_data.count());
|
beginRemoveRows(QModelIndex(), 0, m_paginator->count());
|
||||||
m_data.clear();
|
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
//signal new data
|
//signal new data
|
||||||
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
||||||
auto dataset = m_paginator->data();
|
|
||||||
|
|
||||||
for(const ImageCache& data : std::as_const(dataset))
|
|
||||||
{
|
|
||||||
m_data.append(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
|
||||||
setState(Idle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ImageSearchModel::hasNextPage() -> bool
|
auto ImageSearchModel::onPaginatorFetching() -> void
|
||||||
|
{
|
||||||
|
setState(Loading);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto ImageSearchModel::hasNextPage() const -> bool
|
||||||
{
|
{
|
||||||
return m_paginator->page() < m_paginator->totalPages();
|
return m_paginator->page() < m_paginator->totalPages();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ImageSearchModel::hasPreviousPage() -> bool
|
auto ImageSearchModel::hasPreviousPage() const -> bool
|
||||||
{
|
{
|
||||||
return m_paginator->page() > 0;
|
return m_paginator->page() > 0;
|
||||||
}
|
}
|
||||||
@@ -231,7 +267,42 @@ auto ImageSearchModel::setResultsPerPage(qsizetype resultsPerPage) -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->setResultsPerPage(resultsPerPage);
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, resultsPerPage]
|
||||||
|
{
|
||||||
|
qsizetype difference = resultsPerPage - m_paginator->resultsPerPage();
|
||||||
|
m_paginator->setResultsPerPage(resultsPerPage);
|
||||||
|
|
||||||
|
if(difference > 0)
|
||||||
|
{
|
||||||
|
qsizetype firstIndex = m_paginator->resultsPerPage() - difference;
|
||||||
|
|
||||||
|
beginInsertRows
|
||||||
|
(
|
||||||
|
QModelIndex(),
|
||||||
|
firstIndex,
|
||||||
|
m_paginator->count() - 1
|
||||||
|
);
|
||||||
|
|
||||||
|
endInsertRows();
|
||||||
|
}
|
||||||
|
|
||||||
|
else if(difference < 0)
|
||||||
|
{
|
||||||
|
qsizetype firstIndex = m_paginator->resultsPerPage();
|
||||||
|
|
||||||
|
beginRemoveRows
|
||||||
|
(
|
||||||
|
QModelIndex(),
|
||||||
|
firstIndex,
|
||||||
|
firstIndex - difference
|
||||||
|
);
|
||||||
|
|
||||||
|
endRemoveRows();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,19 +316,31 @@ auto ImageSearchModel::totalResults() const -> qsizetype
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ImageSearchModel::nextPage() const -> void
|
auto ImageSearchModel::nextPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->next();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->next();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ImageSearchModel::previousPage() const -> void
|
auto ImageSearchModel::previousPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->previous();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->previous();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,7 +358,13 @@ auto ImageSearchModel::setQuery(const QString &query) -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->setQuery(query);
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, query]
|
||||||
|
{
|
||||||
|
m_paginator->setQuery(query);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
#include "paginators/imagesearchpaginator.h"
|
#include "paginators/imagesearchpaginator.h"
|
||||||
|
|
||||||
@@ -74,11 +75,19 @@ public:
|
|||||||
OriginalUrlRole,
|
OriginalUrlRole,
|
||||||
MediumUrlRole,
|
MediumUrlRole,
|
||||||
LargeUrlRole,
|
LargeUrlRole,
|
||||||
ExtraLargeUrlRole
|
ExtraLargeUrlRole,
|
||||||
|
PortraitSizeRole,
|
||||||
|
LandscapeSizeRole,
|
||||||
|
SmallSizeRole,
|
||||||
|
OriginalSizeRole,
|
||||||
|
MediumSizeRole,
|
||||||
|
LargeSizeRole,
|
||||||
|
ExtraLargeSizeRole
|
||||||
};
|
};
|
||||||
Q_ENUM(DataRole)
|
Q_ENUM(DataRole)
|
||||||
|
|
||||||
explicit ImageSearchModel(QObject *parent = nullptr);
|
explicit ImageSearchModel(QObject *parent = nullptr);
|
||||||
|
~ImageSearchModel();
|
||||||
|
|
||||||
auto rowCount(const QModelIndex &parent = QModelIndex()) const -> int override;
|
auto rowCount(const QModelIndex &parent = QModelIndex()) const -> int override;
|
||||||
|
|
||||||
@@ -200,13 +209,13 @@ public:
|
|||||||
* @brief nextPage
|
* @brief nextPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto nextPage() const -> void;
|
Q_INVOKABLE auto nextPage() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief previousPage
|
* @brief previousPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto previousPage() const -> void;
|
Q_INVOKABLE auto previousPage() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief query
|
* @brief query
|
||||||
@@ -217,20 +226,36 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief setQuery
|
* @brief setQuery
|
||||||
* Sets the current
|
* Sets the current search query
|
||||||
* @param query
|
* @param query
|
||||||
*/
|
*/
|
||||||
auto setQuery(const QString &query) -> void;
|
auto setQuery(const QString &query) -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief hasNextPage
|
||||||
|
* Calculates if there are more pages based on the current page calculation
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto hasNextPage() const -> bool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief hasPreviousPage
|
||||||
|
* If page is greater than 1, returns true
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto hasPreviousPage() const -> bool;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @brief setErrorString
|
* @brief setErrorString
|
||||||
|
* Sets the error string to be displayed to the user
|
||||||
* @param errorString
|
* @param errorString
|
||||||
*/
|
*/
|
||||||
auto setErrorString(const QString &errorString) -> void;
|
auto setErrorString(const QString &errorString) -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief setState
|
* @brief setState
|
||||||
|
* Sets the current state for QML
|
||||||
* @param state
|
* @param state
|
||||||
*/
|
*/
|
||||||
auto setState(State state) -> void;
|
auto setState(State state) -> void;
|
||||||
@@ -240,23 +265,67 @@ protected:
|
|||||||
*/
|
*/
|
||||||
auto resetState() -> void;
|
auto resetState() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief resetDataModel
|
||||||
|
* Clears the data model and creates a new one if data exists
|
||||||
|
*/
|
||||||
auto resetDataModel() -> void;
|
auto resetDataModel() -> void;
|
||||||
|
|
||||||
auto hasNextPage() -> bool;
|
/**
|
||||||
|
* @brief onPaginatorFetching
|
||||||
auto hasPreviousPage() -> bool;
|
* Sets current state to loading. Triggered when paginator's cache controller
|
||||||
|
* needs to fetch data from the remote endpoint.
|
||||||
|
*/
|
||||||
|
auto onPaginatorFetching() -> void;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
/**
|
||||||
|
* @brief stateChanged
|
||||||
|
* Signaled when reported state changes
|
||||||
|
*/
|
||||||
auto stateChanged() -> void;
|
auto stateChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief errorStringChanged
|
||||||
|
* Signaled when reported error message changes
|
||||||
|
*/
|
||||||
auto errorStringChanged() -> void;
|
auto errorStringChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto resultsPerPageChanged() -> void;
|
auto resultsPerPageChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto pageChanged() -> void;
|
auto pageChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto totalResultsChanged() -> void;
|
auto totalResultsChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto totalPagesChanged() -> void;
|
auto totalPagesChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto queryChanged() -> void;
|
auto queryChanged() -> void;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* @brief m_dataRoles
|
||||||
|
* Data role map that connects ImageSearchModel::DataRole to it's QML accessor name
|
||||||
|
*/
|
||||||
static inline const QHash<int, QByteArray> m_dataRoles =
|
static inline const QHash<int, QByteArray> m_dataRoles =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -310,6 +379,34 @@ private:
|
|||||||
{
|
{
|
||||||
static_cast<int>(ExtraLargeUrlRole),
|
static_cast<int>(ExtraLargeUrlRole),
|
||||||
QByteArray("extraLarge")
|
QByteArray("extraLarge")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(PortraitSizeRole),
|
||||||
|
QByteArray("portraitSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(LandscapeSizeRole),
|
||||||
|
QByteArray("landscapeSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(SmallSizeRole),
|
||||||
|
QByteArray("smallSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(OriginalSizeRole),
|
||||||
|
QByteArray("originalSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(MediumSizeRole),
|
||||||
|
QByteArray("mediumSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(LargeSizeRole),
|
||||||
|
QByteArray("largeSize")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(ExtraLargeSizeRole),
|
||||||
|
QByteArray("extraLargeSize")
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
State m_state = Idle;
|
State m_state = Idle;
|
||||||
@@ -318,8 +415,6 @@ private:
|
|||||||
|
|
||||||
ImageSearchPaginator *m_paginator = nullptr;
|
ImageSearchPaginator *m_paginator = nullptr;
|
||||||
|
|
||||||
mutable QList<ImageCache> m_data;
|
|
||||||
|
|
||||||
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
||||||
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
||||||
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
||||||
|
|||||||
@@ -38,10 +38,24 @@ NewestPacksModel::NewestPacksModel(QObject *parent) : QAbstractListModel{parent}
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
notifier,
|
notifier,
|
||||||
&PaginationNotifier::dataChanged,
|
&PaginationNotifier::pageChanged,
|
||||||
this,
|
this,
|
||||||
&NewestPacksModel::resetDataModel
|
&NewestPacksModel::resetDataModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&NewestPacksModel::resetState
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&NewestPacksModel::onPaginatorFetching
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto NewestPacksModel::rowCount(const QModelIndex &) const -> int
|
auto NewestPacksModel::rowCount(const QModelIndex &) const -> int
|
||||||
@@ -56,12 +70,12 @@ auto NewestPacksModel::rowCount(const QModelIndex &) const -> int
|
|||||||
|
|
||||||
auto NewestPacksModel::data(const QModelIndex &index, int role) const -> QVariant
|
auto NewestPacksModel::data(const QModelIndex &index, int role) const -> QVariant
|
||||||
{
|
{
|
||||||
if(index.row() < 0 || m_paginator == nullptr)
|
if(index.row() < 0 || m_paginator == nullptr || index.row() >= m_paginator->count())
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
WallpaperCache dataPoint = m_data.at(index.row());
|
WallpaperCache dataPoint = m_paginator->at(index.row());
|
||||||
|
|
||||||
QVariant data;
|
QVariant data;
|
||||||
|
|
||||||
@@ -109,10 +123,10 @@ auto NewestPacksModel::index(int row, int column, const QModelIndex &parent) con
|
|||||||
{
|
{
|
||||||
Q_UNUSED(parent)
|
Q_UNUSED(parent)
|
||||||
|
|
||||||
if(row < 0 || row >= m_data.count())
|
if(row < 0 || row >= m_paginator->count())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
return createIndex(row, column, &m_data[row]);
|
return createIndex(row, column, &m_paginator[row]);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto NewestPacksModel::columnCount(const QModelIndex &) const -> int
|
auto NewestPacksModel::columnCount(const QModelIndex &) const -> int
|
||||||
@@ -153,23 +167,18 @@ auto NewestPacksModel::resetState() -> void
|
|||||||
|
|
||||||
auto NewestPacksModel::resetDataModel() -> void
|
auto NewestPacksModel::resetDataModel() -> void
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
//invalidate previous model data
|
//invalidate previous model data
|
||||||
beginRemoveRows(QModelIndex(), 0, m_data.count());
|
beginRemoveRows(QModelIndex(), 0, m_paginator->count());
|
||||||
m_data.clear();
|
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
//signal new data
|
//signal new data
|
||||||
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
||||||
auto dataset = m_paginator->data();
|
|
||||||
|
|
||||||
for(const WallpaperCache& data : std::as_const(dataset))
|
|
||||||
{
|
|
||||||
m_data.append(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
setState(Idle);
|
}
|
||||||
|
|
||||||
|
auto NewestPacksModel::onPaginatorFetching() -> void
|
||||||
|
{
|
||||||
|
setState(Loading);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto NewestPacksModel::roleNames() const -> QHash<int, QByteArray>
|
auto NewestPacksModel::roleNames() const -> QHash<int, QByteArray>
|
||||||
@@ -225,7 +234,13 @@ auto NewestPacksModel::nextPage() const -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->next();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->next();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,7 +248,13 @@ auto NewestPacksModel::previousPage() const -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->previous();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->previous();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
#include "paginators/newestpackspaginator.h"
|
#include "paginators/newestpackspaginator.h"
|
||||||
|
|
||||||
@@ -236,6 +237,8 @@ protected:
|
|||||||
*/
|
*/
|
||||||
auto resetDataModel() -> void;
|
auto resetDataModel() -> void;
|
||||||
|
|
||||||
|
auto onPaginatorFetching() -> void;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
auto stateChanged() -> void;
|
auto stateChanged() -> void;
|
||||||
auto errorStringChanged() -> void;
|
auto errorStringChanged() -> void;
|
||||||
@@ -299,8 +302,6 @@ private:
|
|||||||
|
|
||||||
NewestPacksPaginator *m_paginator = nullptr;
|
NewestPacksPaginator *m_paginator = nullptr;
|
||||||
|
|
||||||
mutable QList<WallpaperCache> m_data;
|
|
||||||
|
|
||||||
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
||||||
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
||||||
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
||||||
|
|||||||
@@ -0,0 +1,328 @@
|
|||||||
|
#include "packsearchmodel.h"
|
||||||
|
|
||||||
|
PackSearchModel::PackSearchModel(QObject *parent) : QAbstractListModel{parent}
|
||||||
|
{
|
||||||
|
m_paginator = new PackSearchPaginator(this);
|
||||||
|
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::resultsPerPageChanged,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::resultsPerPageChanged
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::totalResultsChanged,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::totalResultsChanged
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::totalPagesChanged,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::totalPagesChanged
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::pageChanged,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::pageChanged
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::pageChanged,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::resetDataModel
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::resetState
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::onPaginatorFetching
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
m_paginator,
|
||||||
|
&PaginationNotifier::queryChanged,
|
||||||
|
this,
|
||||||
|
&PackSearchModel::queryChanged
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::rowCount(const QModelIndex &) const -> int
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
return m_paginator->count();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::data(const QModelIndex &index, int role) const -> QVariant
|
||||||
|
{
|
||||||
|
if(m_paginator == nullptr)
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
if(index.row() < 0 || index.row() >= m_paginator->count() )
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
WallpaperCache dataPoint = m_paginator->at(index.row());
|
||||||
|
|
||||||
|
QVariant data;
|
||||||
|
|
||||||
|
switch(static_cast<DataRole>(role))
|
||||||
|
{
|
||||||
|
case UuidRole:
|
||||||
|
data = dataPoint.uuid;
|
||||||
|
break;
|
||||||
|
case AuthorRole:
|
||||||
|
data = dataPoint.author;
|
||||||
|
break;
|
||||||
|
case DescriptionRole:
|
||||||
|
data = dataPoint.description;
|
||||||
|
break;
|
||||||
|
case NameRole:
|
||||||
|
data = dataPoint.name;
|
||||||
|
break;
|
||||||
|
case ThumbnailRole:
|
||||||
|
data = dataPoint.thumbnail;
|
||||||
|
break;
|
||||||
|
case CreatedDateRole:
|
||||||
|
data = dataPoint.createdDate;
|
||||||
|
break;
|
||||||
|
case AuthorIdRole:
|
||||||
|
data = dataPoint.authorId;
|
||||||
|
break;
|
||||||
|
case PriceRole:
|
||||||
|
data = dataPoint.price;
|
||||||
|
break;
|
||||||
|
case CurrencyRole:
|
||||||
|
data = dataPoint.currency;
|
||||||
|
break;
|
||||||
|
case DownloadCountRole:
|
||||||
|
data = dataPoint.downloadCount;
|
||||||
|
break;
|
||||||
|
case TypeRole:
|
||||||
|
data = dataPoint.type;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::index(int row, int column, const QModelIndex &parent) const -> QModelIndex
|
||||||
|
{
|
||||||
|
Q_UNUSED(parent)
|
||||||
|
|
||||||
|
if(row < 0 || row >= m_paginator->count())
|
||||||
|
return {};
|
||||||
|
|
||||||
|
return createIndex(row, column, &m_paginator[row]);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::columnCount(const QModelIndex &) const -> int
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::parent(const QModelIndex &) const -> QModelIndex
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::setData(const QModelIndex &, const QVariant &, int) -> bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::state() const -> PackSearchModel::State
|
||||||
|
{
|
||||||
|
return m_state;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::setState(State state) -> void
|
||||||
|
{
|
||||||
|
if (m_state == state)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_state = state;
|
||||||
|
emit stateChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::resetState() -> void
|
||||||
|
{
|
||||||
|
setState(Idle);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::resetDataModel() -> void
|
||||||
|
{
|
||||||
|
//invalidate previous model data
|
||||||
|
beginRemoveRows(QModelIndex(), 0, m_paginator->count());
|
||||||
|
endRemoveRows();
|
||||||
|
|
||||||
|
//signal new data
|
||||||
|
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
||||||
|
endInsertRows();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::hasNextPage() const -> bool
|
||||||
|
{
|
||||||
|
return m_paginator->page() < m_paginator->totalPages();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::hasPreviousPage() const -> bool
|
||||||
|
{
|
||||||
|
return m_paginator->page() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::onPaginatorFetching() -> void
|
||||||
|
{
|
||||||
|
setState(Loading);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::roleNames() const -> QHash<int, QByteArray>
|
||||||
|
{
|
||||||
|
return m_dataRoles;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::errorString() const -> QString
|
||||||
|
{
|
||||||
|
return m_errorString;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::setErrorString(const QString &errorString) -> void
|
||||||
|
{
|
||||||
|
if (m_errorString == errorString)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_errorString = errorString;
|
||||||
|
emit errorStringChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::resultsPerPage() const -> qsizetype
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
return m_paginator->resultsPerPage();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::setResultsPerPage(qsizetype resultsPerPage) -> void
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, resultsPerPage]
|
||||||
|
{
|
||||||
|
m_paginator->setResultsPerPage(resultsPerPage);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::totalResults() const -> qsizetype
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
return m_paginator->totalResults();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::nextPage() -> void
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->next();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::previousPage() -> void
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->previous();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::query() const -> QString
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
return m_paginator->query();
|
||||||
|
}
|
||||||
|
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::setQuery(const QString &query) -> void
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, query]
|
||||||
|
{
|
||||||
|
m_paginator->setQuery(query);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
qsizetype PackSearchModel::page() const
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
return m_paginator->page();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto PackSearchModel::totalPages() const -> qsizetype
|
||||||
|
{
|
||||||
|
if(m_paginator != nullptr)
|
||||||
|
{
|
||||||
|
return m_paginator->totalPages();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,383 @@
|
|||||||
|
/*
|
||||||
|
* Komplex Wallpaper Engine
|
||||||
|
* Copyright (C) 2026 @DigitalArtifex
|
||||||
|
* https://digitalartifex.dev - https://github.com/DigitalArtifex
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
#ifndef PackSearchModel_H
|
||||||
|
#define PackSearchModel_H
|
||||||
|
#include <QObject>
|
||||||
|
#include <QQmlEngine>
|
||||||
|
#include <QList>
|
||||||
|
#include <QStandardPaths>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QFile>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QJsonParseError>
|
||||||
|
#include <QJsonDocument>
|
||||||
|
#include <QJsonObject>
|
||||||
|
#include <QJsonArray>
|
||||||
|
#include <QAbstractListModel>
|
||||||
|
#include <QProcess>
|
||||||
|
#include <QNetworkAccessManager>
|
||||||
|
#include <QNetworkReply>
|
||||||
|
#include <QNetworkRequest>
|
||||||
|
#include <QEventLoop>
|
||||||
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
|
#include "paginators/packsearchpaginator.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The PackSearchModel class
|
||||||
|
*/
|
||||||
|
class KOMPLEX_EXPORT PackSearchModel : public QAbstractListModel
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
QML_ELEMENT
|
||||||
|
public:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Used to control the UI state
|
||||||
|
*/
|
||||||
|
enum State
|
||||||
|
{
|
||||||
|
Idle,
|
||||||
|
Loading,
|
||||||
|
Error
|
||||||
|
};
|
||||||
|
Q_ENUM(State)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Data roles used by the view to request data
|
||||||
|
*/
|
||||||
|
enum DataRole {
|
||||||
|
UuidRole = Qt::UserRole + 1,
|
||||||
|
AuthorRole,
|
||||||
|
AuthorIdRole,
|
||||||
|
DescriptionRole,
|
||||||
|
NameRole,
|
||||||
|
ThumbnailRole,
|
||||||
|
CreatedDateRole,
|
||||||
|
PriceRole,
|
||||||
|
CurrencyRole,
|
||||||
|
DownloadCountRole,
|
||||||
|
TypeRole
|
||||||
|
};
|
||||||
|
Q_ENUM(DataRole)
|
||||||
|
|
||||||
|
explicit PackSearchModel(QObject *parent = nullptr);
|
||||||
|
|
||||||
|
auto rowCount(const QModelIndex &parent = QModelIndex()) const -> int override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief data
|
||||||
|
* Used by the view to pull data from the model.
|
||||||
|
* Required by QAbstractListModel
|
||||||
|
* @param index
|
||||||
|
* @param role
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto data(
|
||||||
|
const QModelIndex &index,
|
||||||
|
int role = Qt::DisplayRole
|
||||||
|
) const -> QVariant override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief index
|
||||||
|
* Used by the view to create an index for the data point.
|
||||||
|
* Required by QAbstractListModel
|
||||||
|
* @param row
|
||||||
|
* @param column
|
||||||
|
* @param parent
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto index(
|
||||||
|
int row,
|
||||||
|
int column,
|
||||||
|
const QModelIndex &parent = QModelIndex()
|
||||||
|
) const -> QModelIndex override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief columnCount
|
||||||
|
* Required by QAbstractListModel, but just returns 0
|
||||||
|
* since we dont use cols
|
||||||
|
* @param parent
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto columnCount(
|
||||||
|
const QModelIndex &parent = QModelIndex()
|
||||||
|
) const -> int override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief parent
|
||||||
|
* @param index
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto parent(const QModelIndex &index) const -> QModelIndex override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief setData
|
||||||
|
* Required by QAbstractListModel but not used
|
||||||
|
* @param index
|
||||||
|
* @param value
|
||||||
|
* @param role
|
||||||
|
* @return true always
|
||||||
|
*/
|
||||||
|
auto setData(
|
||||||
|
const QModelIndex &index,
|
||||||
|
const QVariant &value,
|
||||||
|
int role = Qt::EditRole
|
||||||
|
) -> bool override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief state
|
||||||
|
* Current Model State
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto state() const -> State;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief roleNames
|
||||||
|
* Used to tell the view what data roles are available
|
||||||
|
* and their QML friendly names
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto roleNames() const -> QHash<int, QByteArray> override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief errorString
|
||||||
|
* User-friendly error string to be reported to the user
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto errorString() const -> QString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief resultsPerPage
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto resultsPerPage() const -> qsizetype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief setResultsPerPage
|
||||||
|
* @param resultsPerPage
|
||||||
|
*/
|
||||||
|
auto setResultsPerPage(qsizetype resultsPerPage) -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief totalResults
|
||||||
|
* Total number of results available
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto totalResults() const -> qsizetype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief page
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto page() const -> qsizetype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief totalPages
|
||||||
|
* Total pages based on the current resultsPerPage
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto totalPages() const -> qsizetype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief nextPage
|
||||||
|
* Function for the QML frontend
|
||||||
|
*/
|
||||||
|
Q_INVOKABLE auto nextPage() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief previousPage
|
||||||
|
* Function for the QML frontend
|
||||||
|
*/
|
||||||
|
Q_INVOKABLE auto previousPage() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief query
|
||||||
|
* Current search query
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto query() const -> QString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief setQuery
|
||||||
|
* Sets the current search query
|
||||||
|
* @param query
|
||||||
|
*/
|
||||||
|
auto setQuery(const QString &query) -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief hasNextPage
|
||||||
|
* Calculates if there are more pages based on the current page calculation
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto hasNextPage() const -> bool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief hasPreviousPage
|
||||||
|
* If page is greater than 1, returns true
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto hasPreviousPage() const -> bool;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief onPaginatorFetching
|
||||||
|
* Sets current state to loading. Triggered when paginator's cache controller
|
||||||
|
* needs to fetch data from the remote endpoint.
|
||||||
|
*/
|
||||||
|
auto onPaginatorFetching() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief setErrorString
|
||||||
|
* @param errorString
|
||||||
|
*/
|
||||||
|
auto setErrorString(const QString &errorString) -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief setState
|
||||||
|
* @param state
|
||||||
|
*/
|
||||||
|
auto setState(State state) -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief resetState
|
||||||
|
*/
|
||||||
|
auto resetState() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief resetDataModel
|
||||||
|
* Clears the data model and creates a new one if data exists
|
||||||
|
*/
|
||||||
|
auto resetDataModel() -> void;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
/**
|
||||||
|
* @brief stateChanged
|
||||||
|
* Signaled when reported state changes
|
||||||
|
*/
|
||||||
|
auto stateChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief errorStringChanged
|
||||||
|
* Signaled when reported error message changes
|
||||||
|
*/
|
||||||
|
auto errorStringChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
|
auto resultsPerPageChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
|
auto pageChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
|
auto totalResultsChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
|
auto totalPagesChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
|
auto queryChanged() -> void;
|
||||||
|
|
||||||
|
private:
|
||||||
|
/**
|
||||||
|
* Data role map that connects PackSearchModel::DataRole to it's QML accessor name
|
||||||
|
*/
|
||||||
|
static inline const QHash<int, QByteArray> m_dataRoles =
|
||||||
|
{
|
||||||
|
{
|
||||||
|
static_cast<int>(UuidRole),
|
||||||
|
QByteArray("uuid")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(AuthorRole),
|
||||||
|
QByteArray("author")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(AuthorIdRole),
|
||||||
|
QByteArray("authorId")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(DescriptionRole),
|
||||||
|
QByteArray("description")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(NameRole),
|
||||||
|
QByteArray("name")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(ThumbnailRole),
|
||||||
|
QByteArray("thumbnail")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(CreatedDateRole),
|
||||||
|
QByteArray("createdDate")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(PriceRole),
|
||||||
|
QByteArray("price")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(CurrencyRole),
|
||||||
|
QByteArray("currency")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(DownloadCountRole),
|
||||||
|
QByteArray("downloadCount")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
static_cast<int>(TypeRole),
|
||||||
|
QByteArray("type")
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
State m_state = Idle;
|
||||||
|
|
||||||
|
QString m_errorString = QString();
|
||||||
|
|
||||||
|
PackSearchPaginator *m_paginator = nullptr;
|
||||||
|
|
||||||
|
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
||||||
|
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
||||||
|
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
||||||
|
Q_PROPERTY(qsizetype totalResults READ totalResults NOTIFY totalResultsChanged FINAL)
|
||||||
|
Q_PROPERTY(qsizetype totalPages READ totalPages NOTIFY totalPagesChanged FINAL)
|
||||||
|
Q_PROPERTY(qsizetype page READ page NOTIFY pageChanged FINAL)
|
||||||
|
Q_PROPERTY(bool hasNextPage READ hasNextPage NOTIFY pageChanged FINAL)
|
||||||
|
Q_PROPERTY(bool hasPreviousPage READ hasPreviousPage NOTIFY pageChanged FINAL)
|
||||||
|
Q_PROPERTY(QString query READ query WRITE setQuery NOTIFY queryChanged FINAL)
|
||||||
|
};
|
||||||
|
Q_DECLARE_METATYPE(PackSearchModel)
|
||||||
|
|
||||||
|
#endif // PackSearchModel_H
|
||||||
@@ -39,6 +39,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_CUBEMAPS_FEATURED)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_CUBEMAPS_FEATURED)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
controller()->setWindowSize(20);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_IMAGES_FEATURED)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_IMAGES_FEATURED)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
controller()->setWindowSize(20);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_PACKS_FEATURED)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_PACKS_FEATURED)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
controller()->setWindowSize(20);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_SHADERS_FEATURED)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_SHADERS_FEATURED)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
controller()->setWindowSize(20);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_VIDEOS_FEATURED)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_VIDEOS_FEATURED)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
controller()->setWindowSize(20);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -62,46 +62,12 @@ public:
|
|||||||
return m_uri;
|
return m_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief query
|
|
||||||
* Current query string, if the API Endpoint supports queries
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
[[nodiscard]]
|
|
||||||
auto query() const -> QString
|
|
||||||
{
|
|
||||||
return m_query;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief setQuery
|
|
||||||
* Sets the new query string and updates the controller
|
|
||||||
* @param query
|
|
||||||
*/
|
|
||||||
auto setQuery(const QString &query) -> void
|
|
||||||
{
|
|
||||||
if(query == m_query)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_query = query;
|
|
||||||
Q_EMIT queryChanged();
|
|
||||||
|
|
||||||
reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
/**
|
||||||
* @brief uriChanged
|
* @brief uriChanged
|
||||||
*/
|
*/
|
||||||
auto uriChanged() -> void;
|
auto uriChanged() -> void;
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief queryChanged
|
|
||||||
*/
|
|
||||||
auto queryChanged() -> void;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @brief fetch
|
* @brief fetch
|
||||||
@@ -124,6 +90,11 @@ protected:
|
|||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(queryable() && query().isEmpty())
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
QUrl url(
|
QUrl url(
|
||||||
QString::fromUtf8("%1/%2/%3").arg(
|
QString::fromUtf8("%1/%2/%3").arg(
|
||||||
KOMPLEX_API_HOST,
|
KOMPLEX_API_HOST,
|
||||||
@@ -138,7 +109,7 @@ protected:
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
QByteArray("query"),
|
QByteArray("query"),
|
||||||
m_query.toUtf8()
|
query().toUtf8()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
QByteArray("offset"),
|
QByteArray("offset"),
|
||||||
@@ -181,13 +152,28 @@ protected:
|
|||||||
|
|
||||||
const QVariantMap sources = resultObject.value(QString::fromUtf8("src")).toObject().toVariantMap();
|
const QVariantMap sources = resultObject.value(QString::fromUtf8("src")).toObject().toVariantMap();
|
||||||
QMap<QString, QString> sourceMap;
|
QMap<QString, QString> sourceMap;
|
||||||
|
QMap<QString, QString> sizeMap;
|
||||||
|
|
||||||
QMapIterator<QString,QVariant> sourceIterator(sources);
|
QMapIterator<QString,QVariant> sourceIterator(sources);
|
||||||
|
|
||||||
while(sourceIterator.hasNext())
|
while(sourceIterator.hasNext())
|
||||||
{
|
{
|
||||||
sourceIterator.next();
|
sourceIterator.next();
|
||||||
sourceMap.insert(sourceIterator.key(), sourceIterator.value().toString());
|
|
||||||
|
QString url = sourceIterator.value().toString();
|
||||||
|
sourceMap.insert(sourceIterator.key(), url);
|
||||||
|
|
||||||
|
auto matches = s_sizeExpression.match(url);
|
||||||
|
|
||||||
|
if(matches.hasMatch())
|
||||||
|
{
|
||||||
|
QString size = matches.captured();
|
||||||
|
size.remove(QString::fromUtf8("w="));
|
||||||
|
size.remove(QString::fromUtf8("h="));
|
||||||
|
size.replace(QLatin1Char('&'), QLatin1Char('x'));
|
||||||
|
|
||||||
|
sizeMap.insert(sourceIterator.key(), std::move(size));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchedResults.append(
|
fetchedResults.append(
|
||||||
@@ -202,6 +188,7 @@ protected:
|
|||||||
resultObject.value(QString::fromUtf8("photographer_url")).toString(),
|
resultObject.value(QString::fromUtf8("photographer_url")).toString(),
|
||||||
resultObject.value(QString::fromUtf8("photographer_id")).toInteger(),
|
resultObject.value(QString::fromUtf8("photographer_id")).toInteger(),
|
||||||
std::move(sourceMap),
|
std::move(sourceMap),
|
||||||
|
std::move(sizeMap),
|
||||||
resultObject.value(QString::fromUtf8("url")).toString()
|
resultObject.value(QString::fromUtf8("url")).toString()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -307,10 +294,13 @@ private:
|
|||||||
QString m_uri;
|
QString m_uri;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief m_query
|
* @brief s_sizeExpression
|
||||||
* The query string used in fetch operations
|
* Regular expression used to extract size data from the url
|
||||||
*/
|
*/
|
||||||
QString m_query;
|
inline static QRegularExpression s_sizeExpression = QRegularExpression
|
||||||
|
(
|
||||||
|
QString::fromUtf8("[h]\\=\\d{1,}\\&[w]\\=\\d{1,}")
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // IMAGEPAGINATOR_H
|
#endif // IMAGEPAGINATOR_H
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_IMAGES_SEARCH)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_IMAGES_SEARCH)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
setQueryable(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_PACKS_NEWEST)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_PACKS_NEWEST)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
controller()->setWindowSize(20);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+7
-5
@@ -16,8 +16,8 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>
|
* along with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
#ifndef SEARCHPACKSPAGINATOR_H
|
#ifndef PACKSEARCHPAGINATOR_H
|
||||||
#define SEARCHPACKSPAGINATOR_H
|
#define PACKSEARCHPAGINATOR_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
@@ -31,15 +31,17 @@
|
|||||||
|
|
||||||
#include "wallpaperpaginator.h"
|
#include "wallpaperpaginator.h"
|
||||||
|
|
||||||
class KOMPLEX_EXPORT SearchPacksPaginator : public WallpaperPaginator
|
class KOMPLEX_EXPORT PackSearchPaginator : public WallpaperPaginator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit SearchPacksPaginator(QObject *parent = nullptr) : WallpaperPaginator(parent)
|
explicit PackSearchPaginator(QObject *parent = nullptr) : WallpaperPaginator(parent)
|
||||||
{
|
{
|
||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_PACKS_SEARCH)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_PACKS_SEARCH)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
setQueryable(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SEARCHPACKSPAGINATOR_H
|
#endif // PACKSEARCHPAGINATOR_H
|
||||||
@@ -62,47 +62,12 @@ public:
|
|||||||
return m_uri;
|
return m_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief query
|
|
||||||
* Current query string, if the API Endpoint supports queries
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
[[nodiscard]]
|
|
||||||
auto query() const -> QString
|
|
||||||
{
|
|
||||||
return m_query;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief setQuery
|
|
||||||
* Sets the new query string and updates the controller
|
|
||||||
* @param query
|
|
||||||
*/
|
|
||||||
auto setQuery(const QString &query) -> void
|
|
||||||
{
|
|
||||||
if(query == m_query)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_query = query;
|
|
||||||
Q_EMIT queryChanged();
|
|
||||||
|
|
||||||
reset();
|
|
||||||
setOffset(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**
|
/**
|
||||||
* @brief uriChanged
|
* @brief uriChanged
|
||||||
*/
|
*/
|
||||||
auto uriChanged() -> void;
|
auto uriChanged() -> void;
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief queryChanged
|
|
||||||
*/
|
|
||||||
auto queryChanged() -> void;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @brief fetch
|
* @brief fetch
|
||||||
@@ -125,6 +90,11 @@ protected:
|
|||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(queryable() && query().isEmpty())
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
QUrl url(
|
QUrl url(
|
||||||
QString::fromUtf8("%1/%2/%3").arg(
|
QString::fromUtf8("%1/%2/%3").arg(
|
||||||
KOMPLEX_API_HOST,
|
KOMPLEX_API_HOST,
|
||||||
@@ -139,7 +109,7 @@ protected:
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
QByteArray("query"),
|
QByteArray("query"),
|
||||||
m_query.toUtf8()
|
query().toUtf8()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
QByteArray("offset"),
|
QByteArray("offset"),
|
||||||
@@ -258,7 +228,12 @@ protected:
|
|||||||
|
|
||||||
QNetworkReply *reply = manager->post(request, nullptr);
|
QNetworkReply *reply = manager->post(request, nullptr);
|
||||||
QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit);
|
QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit);
|
||||||
QObject::connect(reply, &QNetworkReply::errorOccurred, &loop,
|
|
||||||
|
QObject::connect
|
||||||
|
(
|
||||||
|
reply,
|
||||||
|
&QNetworkReply::errorOccurred,
|
||||||
|
&loop,
|
||||||
[&loop](QNetworkReply::NetworkError error) -> void
|
[&loop](QNetworkReply::NetworkError error) -> void
|
||||||
{
|
{
|
||||||
loop.quit();
|
loop.quit();
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ public:
|
|||||||
setUri(
|
setUri(
|
||||||
QString::fromUtf8(KOMPLEX_ENDPOINT_VIDEOS_SEARCH)
|
QString::fromUtf8(KOMPLEX_ENDPOINT_VIDEOS_SEARCH)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
setQueryable(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -98,11 +98,6 @@ signals:
|
|||||||
*/
|
*/
|
||||||
auto uriChanged() -> void;
|
auto uriChanged() -> void;
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief queryChanged
|
|
||||||
*/
|
|
||||||
auto queryChanged() -> void;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @brief fetch
|
* @brief fetch
|
||||||
@@ -125,6 +120,11 @@ protected:
|
|||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(queryable() && query().isEmpty())
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
QUrl url(
|
QUrl url(
|
||||||
QString::fromUtf8("%1/%2/%3").arg(
|
QString::fromUtf8("%1/%2/%3").arg(
|
||||||
KOMPLEX_API_HOST,
|
KOMPLEX_API_HOST,
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
VideoSearchModel::VideoSearchModel(QObject *parent) : QAbstractListModel{parent}
|
VideoSearchModel::VideoSearchModel(QObject *parent) : QAbstractListModel{parent}
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
m_paginator = new VideoSearchPaginator(this);
|
m_paginator = new VideoSearchPaginator(this);
|
||||||
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
PaginationNotifier *notifier = static_cast<PaginationNotifier*>(m_paginator);
|
||||||
|
|
||||||
@@ -37,11 +35,25 @@ VideoSearchModel::VideoSearchModel(QObject *parent) : QAbstractListModel{parent}
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
notifier,
|
notifier,
|
||||||
&PaginationNotifier::dataChanged,
|
&PaginationNotifier::pageChanged,
|
||||||
this,
|
this,
|
||||||
&VideoSearchModel::resetDataModel
|
&VideoSearchModel::resetDataModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetchComplete,
|
||||||
|
this,
|
||||||
|
&VideoSearchModel::resetState
|
||||||
|
);
|
||||||
|
|
||||||
|
QObject::connect(
|
||||||
|
notifier,
|
||||||
|
&PaginationNotifier::fetching,
|
||||||
|
this,
|
||||||
|
&VideoSearchModel::onPaginatorFetching
|
||||||
|
);
|
||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
m_paginator,
|
m_paginator,
|
||||||
&VideoSearchPaginator::queryChanged,
|
&VideoSearchPaginator::queryChanged,
|
||||||
@@ -62,12 +74,17 @@ auto VideoSearchModel::rowCount(const QModelIndex &) const -> int
|
|||||||
|
|
||||||
auto VideoSearchModel::data(const QModelIndex &index, int role) const -> QVariant
|
auto VideoSearchModel::data(const QModelIndex &index, int role) const -> QVariant
|
||||||
{
|
{
|
||||||
if(index.row() < 0 || m_paginator == nullptr)
|
if(m_paginator == nullptr)
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoCache dataPoint = m_data.at(index.row());
|
if(index.row() < 0 || index.row() >= m_paginator->count() )
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
VideoCache dataPoint = m_paginator->at(index.row());
|
||||||
|
|
||||||
QVariant data;
|
QVariant data;
|
||||||
|
|
||||||
@@ -109,10 +126,10 @@ auto VideoSearchModel::index(int row, int column, const QModelIndex &parent) con
|
|||||||
{
|
{
|
||||||
Q_UNUSED(parent)
|
Q_UNUSED(parent)
|
||||||
|
|
||||||
if(row < 0 || row >= m_data.count())
|
if(row < 0 || row >= m_paginator->count())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
return createIndex(row, column, &m_data[row]);
|
return createIndex(row, column, &m_paginator[row]);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto VideoSearchModel::columnCount(const QModelIndex &) const -> int
|
auto VideoSearchModel::columnCount(const QModelIndex &) const -> int
|
||||||
@@ -153,37 +170,30 @@ auto VideoSearchModel::resetState() -> void
|
|||||||
|
|
||||||
auto VideoSearchModel::resetDataModel() -> void
|
auto VideoSearchModel::resetDataModel() -> void
|
||||||
{
|
{
|
||||||
setState(Loading);
|
|
||||||
|
|
||||||
//invalidate previous model data
|
//invalidate previous model data
|
||||||
beginRemoveRows(QModelIndex(), 0, m_data.count());
|
beginRemoveRows(QModelIndex(), 0, m_paginator->count());
|
||||||
m_data.clear();
|
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
|
||||||
//signal new data
|
//signal new data
|
||||||
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
beginInsertRows(QModelIndex(), 0, m_paginator->count() - 1);
|
||||||
auto dataset = m_paginator->data();
|
|
||||||
|
|
||||||
for(const VideoCache& data : std::as_const(dataset))
|
|
||||||
{
|
|
||||||
m_data.append(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
|
||||||
setState(Idle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto VideoSearchModel::hasNextPage() -> bool
|
auto VideoSearchModel::hasNextPage() const -> bool
|
||||||
{
|
{
|
||||||
return m_paginator->page() < m_paginator->totalPages();
|
return m_paginator->page() < m_paginator->totalPages();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto VideoSearchModel::hasPreviousPage() -> bool
|
auto VideoSearchModel::hasPreviousPage() const -> bool
|
||||||
{
|
{
|
||||||
return m_paginator->page() > 0;
|
return m_paginator->page() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto VideoSearchModel::onPaginatorFetching() -> void
|
||||||
|
{
|
||||||
|
setState(Loading);
|
||||||
|
}
|
||||||
|
|
||||||
auto VideoSearchModel::roleNames() const -> QHash<int, QByteArray>
|
auto VideoSearchModel::roleNames() const -> QHash<int, QByteArray>
|
||||||
{
|
{
|
||||||
return m_dataRoles;
|
return m_dataRoles;
|
||||||
@@ -219,7 +229,13 @@ auto VideoSearchModel::setResultsPerPage(qsizetype resultsPerPage) -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->setResultsPerPage(resultsPerPage);
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, resultsPerPage]
|
||||||
|
{
|
||||||
|
m_paginator->setResultsPerPage(resultsPerPage);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,19 +249,31 @@ auto VideoSearchModel::totalResults() const -> qsizetype
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto VideoSearchModel::nextPage() const -> void
|
auto VideoSearchModel::nextPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->next();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->next();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto VideoSearchModel::previousPage() const -> void
|
auto VideoSearchModel::previousPage() -> void
|
||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->previous();
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this]
|
||||||
|
{
|
||||||
|
m_paginator->previous();
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -263,7 +291,13 @@ auto VideoSearchModel::setQuery(const QString &query) -> void
|
|||||||
{
|
{
|
||||||
if(m_paginator != nullptr)
|
if(m_paginator != nullptr)
|
||||||
{
|
{
|
||||||
m_paginator->setQuery(query);
|
QFuture<void> future = QtConcurrent::run
|
||||||
|
(
|
||||||
|
[this, query]
|
||||||
|
{
|
||||||
|
m_paginator->setQuery(query);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
#include "paginators/videosearchpaginator.h"
|
#include "paginators/videosearchpaginator.h"
|
||||||
|
|
||||||
@@ -196,13 +197,13 @@ public:
|
|||||||
* @brief nextPage
|
* @brief nextPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto nextPage() const -> void;
|
Q_INVOKABLE auto nextPage() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief previousPage
|
* @brief previousPage
|
||||||
* Function for the QML frontend
|
* Function for the QML frontend
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE auto previousPage() const -> void;
|
Q_INVOKABLE auto previousPage() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief query
|
* @brief query
|
||||||
@@ -213,12 +214,34 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief setQuery
|
* @brief setQuery
|
||||||
* Sets the current
|
* Sets the current search query
|
||||||
* @param query
|
* @param query
|
||||||
*/
|
*/
|
||||||
auto setQuery(const QString &query) -> void;
|
auto setQuery(const QString &query) -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief hasNextPage
|
||||||
|
* Calculates if there are more pages based on the current page calculation
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto hasNextPage() const -> bool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief hasPreviousPage
|
||||||
|
* If page is greater than 1, returns true
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
auto hasPreviousPage() const -> bool;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief onPaginatorFetching
|
||||||
|
* Sets current state to loading. Triggered when paginator's cache controller
|
||||||
|
* needs to fetch data from the remote endpoint.
|
||||||
|
*/
|
||||||
|
auto onPaginatorFetching() -> void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief setErrorString
|
* @brief setErrorString
|
||||||
* @param errorString
|
* @param errorString
|
||||||
@@ -236,23 +259,59 @@ protected:
|
|||||||
*/
|
*/
|
||||||
auto resetState() -> void;
|
auto resetState() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief resetDataModel
|
||||||
|
* Clears the data model and creates a new one if data exists
|
||||||
|
*/
|
||||||
auto resetDataModel() -> void;
|
auto resetDataModel() -> void;
|
||||||
|
|
||||||
auto hasNextPage() -> bool;
|
|
||||||
|
|
||||||
auto hasPreviousPage() -> bool;
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
/**
|
||||||
|
* @brief stateChanged
|
||||||
|
* Signaled when reported state changes
|
||||||
|
*/
|
||||||
auto stateChanged() -> void;
|
auto stateChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief errorStringChanged
|
||||||
|
* Signaled when reported error message changes
|
||||||
|
*/
|
||||||
auto errorStringChanged() -> void;
|
auto errorStringChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto resultsPerPageChanged() -> void;
|
auto resultsPerPageChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto pageChanged() -> void;
|
auto pageChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto totalResultsChanged() -> void;
|
auto totalResultsChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto totalPagesChanged() -> void;
|
auto totalPagesChanged() -> void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief pageChanged
|
||||||
|
* Forwarding signal connected in constructor
|
||||||
|
*/
|
||||||
auto queryChanged() -> void;
|
auto queryChanged() -> void;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* Data role map that connects VideoSearchModel::DataRole to it's QML accessor name
|
||||||
|
*/
|
||||||
static inline const QHash<int, QByteArray> m_dataRoles =
|
static inline const QHash<int, QByteArray> m_dataRoles =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@@ -298,8 +357,6 @@ private:
|
|||||||
|
|
||||||
VideoSearchPaginator *m_paginator = nullptr;
|
VideoSearchPaginator *m_paginator = nullptr;
|
||||||
|
|
||||||
mutable QList<VideoCache> m_data;
|
|
||||||
|
|
||||||
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
Q_PROPERTY(State state READ state WRITE setState RESET resetState NOTIFY stateChanged FINAL)
|
||||||
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
Q_PROPERTY(QString errorString READ errorString WRITE setErrorString NOTIFY errorStringChanged FINAL)
|
||||||
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
Q_PROPERTY(qsizetype resultsPerPage READ resultsPerPage WRITE setResultsPerPage NOTIFY resultsPerPageChanged FINAL)
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]}
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"install"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 42,
|
|
||||||
"parent" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 1,
|
|
||||||
"component" : "Unspecified",
|
|
||||||
"destination" : "bin",
|
|
||||||
"paths" :
|
|
||||||
[
|
|
||||||
"KomplexHub"
|
|
||||||
],
|
|
||||||
"targetId" : "KomplexHub::@6890427a1f51a3e7e1df",
|
|
||||||
"targetIndex" : 14,
|
|
||||||
"type" : "target"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : ".",
|
|
||||||
"source" : "."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "App",
|
|
||||||
"source" : "App"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies",
|
|
||||||
"source" : "Dependencies"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components",
|
|
||||||
"source" : "Dependencies/Components"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports",
|
|
||||||
"source" : "Dependencies/Components/imports"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/application",
|
|
||||||
"source" : "Dependencies/Components/imports/application"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/compat",
|
|
||||||
"source" : "Dependencies/Components/imports/compat"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/compat/Components",
|
|
||||||
"source" : "Dependencies/Components/imports/compat/Components"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/compat/Extras",
|
|
||||||
"source" : "Dependencies/Components/imports/compat/Extras"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/compat/Layers",
|
|
||||||
"source" : "Dependencies/Components/imports/compat/Layers"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/compat/Profiling",
|
|
||||||
"source" : "Dependencies/Components/imports/compat/Profiling"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/components",
|
|
||||||
"source" : "Dependencies/Components/imports/components"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/designeffects",
|
|
||||||
"source" : "Dependencies/Components/imports/designeffects"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/effects_qt6",
|
|
||||||
"source" : "Dependencies/Components/imports/effects_qt6"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/logichelper",
|
|
||||||
"source" : "Dependencies/Components/imports/logichelper"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/multitext",
|
|
||||||
"source" : "Dependencies/Components/imports/multitext"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/tools",
|
|
||||||
"source" : "Dependencies/Components/imports/tools"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/tools/eventsimulator",
|
|
||||||
"source" : "Dependencies/Components/imports/tools/eventsimulator"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/tools/eventsystem",
|
|
||||||
"source" : "Dependencies/Components/imports/tools/eventsystem"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/utils",
|
|
||||||
"source" : "Dependencies/Components/imports/utils"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubModule",
|
|
||||||
"source" : "KomplexHubModule"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubModule/Controls",
|
|
||||||
"source" : "KomplexHubModule/Controls"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubModule/Kero",
|
|
||||||
"source" : "KomplexHubModule/Kero"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" : [],
|
|
||||||
"nodes" : []
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"installers" : [],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubPlugin",
|
|
||||||
"source" : "KomplexHubPlugin"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
{
|
|
||||||
"cmake" :
|
|
||||||
{
|
|
||||||
"generator" :
|
|
||||||
{
|
|
||||||
"multiConfig" : false,
|
|
||||||
"name" : "Ninja"
|
|
||||||
},
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"cmake" : "/usr/bin/cmake",
|
|
||||||
"cpack" : "/usr/bin/cpack",
|
|
||||||
"ctest" : "/usr/bin/ctest",
|
|
||||||
"root" : "/usr/share/cmake"
|
|
||||||
},
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"isDirty" : false,
|
|
||||||
"major" : 4,
|
|
||||||
"minor" : 2,
|
|
||||||
"patch" : 3,
|
|
||||||
"string" : "4.2.3",
|
|
||||||
"suffix" : ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"objects" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"jsonFile" : "codemodel-v2-19eca749bc09da50b78d.json",
|
|
||||||
"kind" : "codemodel",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jsonFile" : "cache-v2-856cdb4409780bdf0382.json",
|
|
||||||
"kind" : "cache",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jsonFile" : "cmakeFiles-v1-90c3ac7e899815994aee.json",
|
|
||||||
"kind" : "cmakeFiles",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 1,
|
|
||||||
"minor" : 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jsonFile" : "toolchains-v1-d46c98fd007cec87b83c.json",
|
|
||||||
"kind" : "toolchains",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 1,
|
|
||||||
"minor" : 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"reply" :
|
|
||||||
{
|
|
||||||
"client-vscode" :
|
|
||||||
{
|
|
||||||
"query.json" :
|
|
||||||
{
|
|
||||||
"requests" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"kind" : "cache",
|
|
||||||
"version" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind" : "codemodel",
|
|
||||||
"version" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind" : "toolchains",
|
|
||||||
"version" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind" : "cmakeFiles",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"jsonFile" : "cache-v2-856cdb4409780bdf0382.json",
|
|
||||||
"kind" : "cache",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jsonFile" : "codemodel-v2-19eca749bc09da50b78d.json",
|
|
||||||
"kind" : "codemodel",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jsonFile" : "toolchains-v1-d46c98fd007cec87b83c.json",
|
|
||||||
"kind" : "toolchains",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 1,
|
|
||||||
"minor" : 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jsonFile" : "cmakeFiles-v1-90c3ac7e899815994aee.json",
|
|
||||||
"kind" : "cmakeFiles",
|
|
||||||
"version" :
|
|
||||||
{
|
|
||||||
"major" : 1,
|
|
||||||
"minor" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,945 +0,0 @@
|
|||||||
{
|
|
||||||
"archive" : {},
|
|
||||||
"artifacts" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/libFlowView.a"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"backtrace" : 4,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_library",
|
|
||||||
"_qt_internal_add_library",
|
|
||||||
"qt6_add_library",
|
|
||||||
"qt_add_library",
|
|
||||||
"add_dependencies",
|
|
||||||
"_qt_internal_write_deferred_qmlls_build_ini_file",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir",
|
|
||||||
"qt6_add_qml_module",
|
|
||||||
"target_link_libraries",
|
|
||||||
"__qt_internal_propagate_object_library",
|
|
||||||
"__qt_propagate_generated_resource",
|
|
||||||
"_qt_internal_process_resource",
|
|
||||||
"qt6_add_resources",
|
|
||||||
"qt6_target_qml_sources",
|
|
||||||
"add_custom_command",
|
|
||||||
"qt6_extract_metatypes",
|
|
||||||
"_qt_internal_qml_type_registration",
|
|
||||||
"_qt_internal_ensure_tooling_target",
|
|
||||||
"target_include_directories",
|
|
||||||
"target_sources",
|
|
||||||
"_qt_internal_expose_deferred_files_to_ide",
|
|
||||||
"qt6_finalize_target"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1099:EVAL",
|
|
||||||
"CMakeLists.txt",
|
|
||||||
"/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:923:EVAL"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 6,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2920,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2806,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2893,
|
|
||||||
"parent" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"file" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"file" : 4,
|
|
||||||
"line" : -1,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 3,
|
|
||||||
"line" : 1,
|
|
||||||
"parent" : 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 1387,
|
|
||||||
"parent" : 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 7,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 970,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 976,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 8,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 618,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 13,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 960,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 12,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3839,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 11,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 405,
|
|
||||||
"parent" : 16
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2625,
|
|
||||||
"parent" : 17
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2156,
|
|
||||||
"parent" : 18
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 8,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2094,
|
|
||||||
"parent" : 19
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 12,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3857,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 11,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 405,
|
|
||||||
"parent" : 21
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2625,
|
|
||||||
"parent" : 22
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2156,
|
|
||||||
"parent" : 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 8,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2094,
|
|
||||||
"parent" : 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 16,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 835,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 15,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 4041,
|
|
||||||
"parent" : 26
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 14,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1542,
|
|
||||||
"parent" : 27
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 14,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2564,
|
|
||||||
"parent" : 17
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 14,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1484,
|
|
||||||
"parent" : 27
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 14,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 4146,
|
|
||||||
"parent" : 26
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 17,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 956,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3105,
|
|
||||||
"parent" : 32
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 18,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 4246,
|
|
||||||
"parent" : 26
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1579,
|
|
||||||
"parent" : 27
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 4207,
|
|
||||||
"parent" : 26
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 3554,
|
|
||||||
"parent" : 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2165,
|
|
||||||
"parent" : 18
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2165,
|
|
||||||
"parent" : 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"file" : 1,
|
|
||||||
"line" : -1,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 21,
|
|
||||||
"file" : 5,
|
|
||||||
"line" : 1,
|
|
||||||
"parent" : 62
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 20,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 873,
|
|
||||||
"parent" : 63
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 19,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2290,
|
|
||||||
"parent" : 64
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"compileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compileGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"compileCommandFragments" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"fragment" : "-g -std=gnu++20"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"fragment" : "-fno-direct-access-external-data"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"defines" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_CORE_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_NETWORK_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_QMLINTEGRATION_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_QML_LIB"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"includes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview/FlowView_autogen/include"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 34,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtQml"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 34,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 34,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtCore"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 34,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/lib/qt6/mkspecs/linux-g++"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 34,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtQmlIntegration"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 34,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtNetwork"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"language" : "CXX",
|
|
||||||
"languageStandard" :
|
|
||||||
{
|
|
||||||
"backtraces" :
|
|
||||||
[
|
|
||||||
14,
|
|
||||||
14
|
|
||||||
],
|
|
||||||
"standard" : "20"
|
|
||||||
},
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
26,
|
|
||||||
27
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "generate_qmlls_build_ini_file::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 11,
|
|
||||||
"id" : "FlowView_copy_qml::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 13,
|
|
||||||
"id" : "FlowView_copy_res::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowView_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowView_autogen::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316",
|
|
||||||
"interfaceCompileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 20,
|
|
||||||
"id" : "FlowView_resources_1::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 25,
|
|
||||||
"id" : "FlowView_resources_2::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"interfaceLinkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 20,
|
|
||||||
"id" : "FlowView_resources_1::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 25,
|
|
||||||
"id" : "FlowView_resources_2::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"linkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"name" : "FlowView",
|
|
||||||
"nameOnDisk" : "libFlowView.a",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 28,
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 29,
|
|
||||||
"id" : "Qt6::rcc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 30,
|
|
||||||
"id" : "Qt6::cmake_automoc_parser::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 31,
|
|
||||||
"id" : "Qt6::qmltyperegistrar::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "generate_qmlls_build_ini_file::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 33,
|
|
||||||
"id" : "FlowView_tooling::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowView_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowView_autogen::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "Source Files\\Generated",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
2,
|
|
||||||
26,
|
|
||||||
27,
|
|
||||||
28,
|
|
||||||
29,
|
|
||||||
31
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "Source Files",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
3,
|
|
||||||
4,
|
|
||||||
5,
|
|
||||||
6,
|
|
||||||
7,
|
|
||||||
8,
|
|
||||||
9,
|
|
||||||
10,
|
|
||||||
11,
|
|
||||||
12,
|
|
||||||
13,
|
|
||||||
14,
|
|
||||||
15,
|
|
||||||
16,
|
|
||||||
17,
|
|
||||||
18,
|
|
||||||
19,
|
|
||||||
20,
|
|
||||||
21,
|
|
||||||
22,
|
|
||||||
23,
|
|
||||||
24,
|
|
||||||
25
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "Resources",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
30
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
32,
|
|
||||||
33,
|
|
||||||
34,
|
|
||||||
35,
|
|
||||||
36,
|
|
||||||
37
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
38,
|
|
||||||
39,
|
|
||||||
40
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowView_autogen/mocs_compilation.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 35,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/meta_types/qt6flowview_metatypes.json.gen",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 36,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/flowview_qmltyperegistrations.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 37,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/DefaultFlowEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 38,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/SwipeInteraction.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 39,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 40,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowFadeEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 41,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowPushLeftEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 42,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowPushRightEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 43,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowSlideDownEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 44,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowSlideLeftEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 45,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowSlideRightEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 46,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowSlideUpEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 47,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowMoveEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 48,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowPushEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 49,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowTransition.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 50,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowTransitionList.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 51,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowView.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 52,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowPushUpEffect.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 53,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowItem.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 54,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowDecision.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 55,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowWildcard.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 56,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowActionArea.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 57,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/FlowState.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 58,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/+DesignMode/FlowItem.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 59,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/+DesignMode/FlowView.qml",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 60,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/qrc_FlowView_raw_qml_0.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 61,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/qrc_FlowView_raw_res_0.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 65,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/FlowView_raw_qml_0.qrc",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 65,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/FlowView_raw_res_0.qrc",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 65,
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/qmldir",
|
|
||||||
"sourceGroupIndex" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowView_autogen/timestamp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/meta_types/qt6flowview_metatypes.json.gen.rule",
|
|
||||||
"sourceGroupIndex" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/flowview_qmltyperegistrations.cpp.rule",
|
|
||||||
"sourceGroupIndex" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/qrc_FlowView_raw_qml_0.cpp.rule",
|
|
||||||
"sourceGroupIndex" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/qrc_FlowView_raw_res_0.cpp.rule",
|
|
||||||
"sourceGroupIndex" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowView_autogen/timestamp.rule",
|
|
||||||
"sourceGroupIndex" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/meta_types/FlowView_json_file_list.txt.rule",
|
|
||||||
"sourceGroupIndex" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"path" : "/usr/lib/qt6/metatypes/qt6qml_metatypes.json",
|
|
||||||
"sourceGroupIndex" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"path" : "/usr/lib/qt6/metatypes/qt6core_metatypes.json",
|
|
||||||
"sourceGroupIndex" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"path" : "/usr/lib/qt6/metatypes/qt6network_metatypes.json",
|
|
||||||
"sourceGroupIndex" : 4
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "STATIC_LIBRARY"
|
|
||||||
}
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "FlowView_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowView_autogen::@f8214a2e873271944316",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "FlowView_autogen",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowView_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_autogen",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_autogen.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowView_autogen/timestamp.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-110
@@ -1,110 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_dependencies",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 970,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 976,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "generate_qmlls_build_ini_file::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"id" : "FlowView_copy_qml::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 5,
|
|
||||||
"id" : "FlowView_copy_res::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowView_autogen_timestamp_deps::@f8214a2e873271944316",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "FlowView_autogen_timestamp_deps",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "generate_qmlls_build_ini_file::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowView_tooling::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sources" : [],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 970,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3064,
|
|
||||||
"parent" : 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowView_copy_qml::@f8214a2e873271944316",
|
|
||||||
"name" : "FlowView_copy_qml",
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_copy_qml",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_copy_qml.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/FlowView_qml.txt.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 976,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3064,
|
|
||||||
"parent" : 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowView_copy_res::@f8214a2e873271944316",
|
|
||||||
"name" : "FlowView_copy_res",
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_copy_res",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_copy_res.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/FlowView_res.txt.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-111
@@ -1,111 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_qml_type_registration",
|
|
||||||
"qt6_add_qml_module",
|
|
||||||
"add_custom_command"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 835,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 4177,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 4146,
|
|
||||||
"parent" : 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowView_qmltyperegistration::@f8214a2e873271944316",
|
|
||||||
"name" : "FlowView_qmltyperegistration",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"id" : "Qt6::qmltyperegistrar::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_qmltyperegistration",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowView_qmltyperegistration.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/flowview_qmltyperegistrations.cpp.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-300
@@ -1,300 +0,0 @@
|
|||||||
{
|
|
||||||
"artifacts" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/CMakeFiles/FlowView_resources_1.dir/./.qt/rcc/qrc_FlowView_raw_qml_0_init.cpp.o"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"backtrace" : 6,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_library",
|
|
||||||
"__qt_propagate_generated_resource",
|
|
||||||
"_qt_internal_process_resource",
|
|
||||||
"qt6_add_resources",
|
|
||||||
"qt6_target_qml_sources",
|
|
||||||
"qt6_add_qml_module",
|
|
||||||
"target_link_libraries",
|
|
||||||
"__qt_internal_propagate_object_library",
|
|
||||||
"add_dependencies",
|
|
||||||
"set_property",
|
|
||||||
"_qt_internal_copy_dependency_properties",
|
|
||||||
"target_compile_definitions",
|
|
||||||
"target_include_directories"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 960,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 3839,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 405,
|
|
||||||
"parent" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2625,
|
|
||||||
"parent" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2112,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 7,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2156,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2053,
|
|
||||||
"parent" : 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2138,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 8,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2124,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2054,
|
|
||||||
"parent" : 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 11,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2125,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 12,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2128,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"compileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compileGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"compileCommandFragments" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"fragment" : "-g -std=gnu++20"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 12,
|
|
||||||
"fragment" : "-fno-direct-access-external-data"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"defines" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 13,
|
|
||||||
"define" : "QT_CORE_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_NETWORK_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_QMLINTEGRATION_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_QML_LIB"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"includes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 15,
|
|
||||||
"path" : "/usr/include/qt6/QtCore"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview/FlowView_autogen/include"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/usr/include/qt6/QtQml"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/usr/include/qt6/QtQmlIntegration"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/usr/include/qt6/QtNetwork"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 15,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 15,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/lib/qt6/mkspecs/linux-g++"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"language" : "CXX",
|
|
||||||
"languageStandard" :
|
|
||||||
{
|
|
||||||
"backtraces" :
|
|
||||||
[
|
|
||||||
17,
|
|
||||||
17
|
|
||||||
],
|
|
||||||
"standard" : "20"
|
|
||||||
},
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id" : "FlowView_resources_1::@f8214a2e873271944316",
|
|
||||||
"interfaceCompileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 9,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"interfaceLinkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 9,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"linkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"name" : "FlowView_resources_1",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 10,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "Source Files",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/qrc_FlowView_raw_qml_0_init.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "OBJECT_LIBRARY"
|
|
||||||
}
|
|
||||||
-300
@@ -1,300 +0,0 @@
|
|||||||
{
|
|
||||||
"artifacts" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/CMakeFiles/FlowView_resources_2.dir/./.qt/rcc/qrc_FlowView_raw_res_0_init.cpp.o"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"backtrace" : 6,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_library",
|
|
||||||
"__qt_propagate_generated_resource",
|
|
||||||
"_qt_internal_process_resource",
|
|
||||||
"qt6_add_resources",
|
|
||||||
"qt6_target_qml_sources",
|
|
||||||
"qt6_add_qml_module",
|
|
||||||
"target_link_libraries",
|
|
||||||
"__qt_internal_propagate_object_library",
|
|
||||||
"add_dependencies",
|
|
||||||
"set_property",
|
|
||||||
"_qt_internal_copy_dependency_properties",
|
|
||||||
"target_compile_definitions",
|
|
||||||
"target_include_directories"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 960,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 3857,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 405,
|
|
||||||
"parent" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2625,
|
|
||||||
"parent" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2112,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 7,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2156,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2053,
|
|
||||||
"parent" : 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2138,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 8,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2124,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2054,
|
|
||||||
"parent" : 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 11,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2125,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 12,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2128,
|
|
||||||
"parent" : 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 11
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"compileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compileGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"compileCommandFragments" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"fragment" : "-g -std=gnu++20"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 12,
|
|
||||||
"fragment" : "-fno-direct-access-external-data"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"defines" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 13,
|
|
||||||
"define" : "QT_CORE_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_NETWORK_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_QMLINTEGRATION_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 14,
|
|
||||||
"define" : "QT_QML_LIB"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"includes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 15,
|
|
||||||
"path" : "/usr/include/qt6/QtCore"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview/FlowView_autogen/include"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/usr/include/qt6/QtQml"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/usr/include/qt6/QtQmlIntegration"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"path" : "/usr/include/qt6/QtNetwork"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 15,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 15,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/lib/qt6/mkspecs/linux-g++"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"language" : "CXX",
|
|
||||||
"languageStandard" :
|
|
||||||
{
|
|
||||||
"backtraces" :
|
|
||||||
[
|
|
||||||
17,
|
|
||||||
17
|
|
||||||
],
|
|
||||||
"standard" : "20"
|
|
||||||
},
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id" : "FlowView_resources_2::@f8214a2e873271944316",
|
|
||||||
"interfaceCompileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 9,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"interfaceLinkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 9,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"linkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"name" : "FlowView_resources_2",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 10,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "Source Files",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/.qt/rcc/qrc_FlowView_raw_res_0_init.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "OBJECT_LIBRARY"
|
|
||||||
}
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
{
|
|
||||||
"abstract" : true,
|
|
||||||
"backtrace" : 3,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_library",
|
|
||||||
"_qt_internal_ensure_tooling_target",
|
|
||||||
"qt6_add_qml_module",
|
|
||||||
"add_dependencies",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 956,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3103,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 970,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 976,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 6
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowView_tooling::@f8214a2e873271944316",
|
|
||||||
"name" : "FlowView_tooling",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 5,
|
|
||||||
"id" : "FlowView_copy_qml::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"id" : "FlowView_copy_res::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sources" : [],
|
|
||||||
"type" : "INTERFACE_LIBRARY"
|
|
||||||
}
|
|
||||||
@@ -1,375 +0,0 @@
|
|||||||
{
|
|
||||||
"archive" : {},
|
|
||||||
"artifacts" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "qml/FlowView/libFlowViewplugin.a"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"backtrace" : 5,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_library",
|
|
||||||
"_qt_internal_add_library",
|
|
||||||
"qt6_add_plugin",
|
|
||||||
"qt6_add_qml_plugin",
|
|
||||||
"qt6_add_qml_module",
|
|
||||||
"target_link_libraries",
|
|
||||||
"__qt_internal_propagate_object_library",
|
|
||||||
"target_compile_definitions",
|
|
||||||
"target_sources"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 922,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 2656,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2686,
|
|
||||||
"parent" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2893,
|
|
||||||
"parent" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 2921,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 2917,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 931,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 995,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2094,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 7,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2770,
|
|
||||||
"parent" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 7,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2691,
|
|
||||||
"parent" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 8,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 2910,
|
|
||||||
"parent" : 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"compileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compileGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"compileCommandFragments" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"fragment" : "-g -std=gnu++20"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"fragment" : "-fno-direct-access-external-data"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"defines" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"define" : "QT_CORE_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 11,
|
|
||||||
"define" : "QT_DEPRECATED_WARNINGS"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"define" : "QT_NETWORK_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 11,
|
|
||||||
"define" : "QT_PLUGIN"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"define" : "QT_QMLINTEGRATION_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"define" : "QT_QML_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 12,
|
|
||||||
"define" : "QT_STATICPLUGIN"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"includes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview/FlowViewplugin_autogen/include"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtQml"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtCore"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/lib/qt6/mkspecs/linux-g++"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtQmlIntegration"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtNetwork"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"language" : "CXX",
|
|
||||||
"languageStandard" :
|
|
||||||
{
|
|
||||||
"backtraces" :
|
|
||||||
[
|
|
||||||
7,
|
|
||||||
7
|
|
||||||
],
|
|
||||||
"standard" : "20"
|
|
||||||
},
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
1
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "FlowView_resources_1::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "FlowView_resources_2::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowViewplugin_autogen::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id" : "FlowViewplugin::@f8214a2e873271944316",
|
|
||||||
"interfaceCompileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 10,
|
|
||||||
"id" : "FlowViewplugin_init::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"interfaceLinkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 10,
|
|
||||||
"id" : "FlowViewplugin_init::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"linkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 7,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"name" : "FlowViewplugin",
|
|
||||||
"nameOnDisk" : "libFlowViewplugin.a",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowViewplugin_autogen::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "Source Files\\Generated",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
3
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_autogen/mocs_compilation.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 13,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_FlowViewPlugin.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_autogen/timestamp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_autogen/timestamp.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "STATIC_LIBRARY"
|
|
||||||
}
|
|
||||||
-92
@@ -1,92 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowViewplugin_autogen::@f8214a2e873271944316",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "FlowViewplugin_autogen",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_autogen",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_autogen.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_autogen/timestamp.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-93
@@ -1,93 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowViewplugin_autogen_timestamp_deps::@f8214a2e873271944316",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "FlowViewplugin_autogen_timestamp_deps",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowView::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_autogen_timestamp_deps",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_autogen_timestamp_deps.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
@@ -1,415 +0,0 @@
|
|||||||
{
|
|
||||||
"artifacts" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_init.dir/./FlowViewplugin_init_autogen/mocs_compilation.cpp.o"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_init.dir/./FlowViewplugin_init.cpp.o"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"backtrace" : 5,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_library",
|
|
||||||
"_qt_internal_add_library",
|
|
||||||
"qt6_add_library",
|
|
||||||
"__qt_internal_add_static_plugin_init_object_library",
|
|
||||||
"qt6_add_qml_module",
|
|
||||||
"target_link_libraries",
|
|
||||||
"__qt_internal_propagate_object_library",
|
|
||||||
"add_custom_command",
|
|
||||||
"qt6_extract_metatypes",
|
|
||||||
"qt6_finalize_target",
|
|
||||||
"set_property",
|
|
||||||
"_qt_internal_copy_dependency_properties",
|
|
||||||
"target_sources"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake",
|
|
||||||
"/usr/lib/cmake/Qt6/QtPublicPluginHelpers.cmake",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt",
|
|
||||||
"/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:923:EVAL"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 4,
|
|
||||||
"file" : 3,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 991,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 255,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2806,
|
|
||||||
"parent" : 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2893,
|
|
||||||
"parent" : 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 256,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 6,
|
|
||||||
"file" : 2,
|
|
||||||
"line" : 995,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 5,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2053,
|
|
||||||
"parent" : 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"file" : 3,
|
|
||||||
"line" : -1,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 9,
|
|
||||||
"file" : 4,
|
|
||||||
"line" : 1,
|
|
||||||
"parent" : 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 8,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 909,
|
|
||||||
"parent" : 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 7,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1542,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 7,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1484,
|
|
||||||
"parent" : 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 11,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 2054,
|
|
||||||
"parent" : 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 14
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 14
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 14
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 10,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3003,
|
|
||||||
"parent" : 14
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 12,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1579,
|
|
||||||
"parent" : 11
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"compileDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compileGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"compileCommandFragments" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"fragment" : "-g -std=gnu++20"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 15,
|
|
||||||
"fragment" : "-fno-direct-access-external-data"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"defines" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"define" : "QT_CORE_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"define" : "QT_DEPRECATED_WARNINGS"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"define" : "QT_NETWORK_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"define" : "QT_PLUGIN"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"define" : "QT_QMLINTEGRATION_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"define" : "QT_QML_LIB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 16,
|
|
||||||
"define" : "QT_STATICPLUGIN"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"includes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview/FlowViewplugin_init_autogen/include"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 17,
|
|
||||||
"path" : "/home/parametheus/Projects/QtDesigner/KomplexHub/build/Dependencies/Components/imports/flowview/FlowViewplugin_autogen/include"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 17,
|
|
||||||
"path" : "/usr/include/qt6/QtQml"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 17,
|
|
||||||
"path" : "/usr/include/qt6/QtQmlIntegration"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 17,
|
|
||||||
"path" : "/usr/include/qt6/QtNetwork"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 17,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 17,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/include/qt6/QtCore"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 17,
|
|
||||||
"isSystem" : true,
|
|
||||||
"path" : "/usr/lib/qt6/mkspecs/linux-g++"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"language" : "CXX",
|
|
||||||
"languageStandard" :
|
|
||||||
{
|
|
||||||
"backtraces" :
|
|
||||||
[
|
|
||||||
18,
|
|
||||||
18
|
|
||||||
],
|
|
||||||
"standard" : "20"
|
|
||||||
},
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
1
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_init_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowViewplugin_init_autogen::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"id" : "FlowViewplugin_init::@f8214a2e873271944316",
|
|
||||||
"interfaceLinkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"linkLibraries" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 6,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 8,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"name" : "FlowViewplugin_init",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 12,
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 13,
|
|
||||||
"id" : "Qt6::cmake_automoc_parser::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_init_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "FlowViewplugin_init_autogen::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "Source Files\\Generated",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0,
|
|
||||||
1,
|
|
||||||
3
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
2
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
4,
|
|
||||||
5,
|
|
||||||
6
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_init_autogen/mocs_compilation.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 5,
|
|
||||||
"compileGroupIndex" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_init.cpp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 19,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/meta_types/qt6flowviewplugin_init_metatypes.json.gen",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_init_autogen/timestamp",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/meta_types/qt6flowviewplugin_init_metatypes.json.gen.rule",
|
|
||||||
"sourceGroupIndex" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_init_autogen/timestamp.rule",
|
|
||||||
"sourceGroupIndex" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/meta_types/FlowViewplugin_init_json_file_list.txt.rule",
|
|
||||||
"sourceGroupIndex" : 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "OBJECT_LIBRARY"
|
|
||||||
}
|
|
||||||
-92
@@ -1,92 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_init_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowViewplugin_init_autogen::@f8214a2e873271944316",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "FlowViewplugin_init_autogen",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "FlowViewplugin_init_autogen_timestamp_deps::@f8214a2e873271944316"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_init_autogen",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_init_autogen.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/FlowViewplugin_init_autogen/timestamp.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-86
@@ -1,86 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"Dependencies/Components/imports/flowview/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "FlowViewplugin_init_autogen_timestamp_deps::@f8214a2e873271944316",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "FlowViewplugin_init_autogen_timestamp_deps",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::Platform::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "Dependencies/Components/imports/flowview",
|
|
||||||
"source" : "Dependencies/Components/imports/flowview"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_init_autogen_timestamp_deps",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/Dependencies/Components/imports/flowview/CMakeFiles/FlowViewplugin_init_autogen_timestamp_deps.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
-92
@@ -1,92 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" : [],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"KomplexHubContent/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "KomplexHubContent_autogen_timestamp_deps::@869b5c3e0043a2b69677"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "KomplexHubContent_autogen::@869b5c3e0043a2b69677",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "KomplexHubContent_autogen",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "KomplexHubContent_autogen_timestamp_deps::@869b5c3e0043a2b69677"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_autogen",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_autogen.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/KomplexHubContent_autogen/timestamp.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-114
@@ -1,114 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_dependencies",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"KomplexHubContent/CMakeLists.txt",
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 970,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 976,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 3083,
|
|
||||||
"parent" : 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "generate_qmlls_build_ini_file::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"id" : "KomplexHubContent_copy_qml::@869b5c3e0043a2b69677"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 5,
|
|
||||||
"id" : "KomplexHubContent_copy_res::@869b5c3e0043a2b69677"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "KomplexHubContent_autogen_timestamp_deps::@869b5c3e0043a2b69677",
|
|
||||||
"isGeneratorProvided" : true,
|
|
||||||
"name" : "KomplexHubContent_autogen_timestamp_deps",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::moc::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::Core::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::uic::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "Qt6::Qml::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "generate_qmlls_build_ini_file::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"id" : "KomplexHubContent_tooling::@869b5c3e0043a2b69677"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
},
|
|
||||||
"sources" : [],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-97
@@ -1,97 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"KomplexHubContent/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 970,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3064,
|
|
||||||
"parent" : 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "KomplexHubContent_copy_qml::@869b5c3e0043a2b69677",
|
|
||||||
"name" : "KomplexHubContent_copy_qml",
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_copy_qml",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_copy_qml.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/.qt/KomplexHubContent_qml.txt.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-97
@@ -1,97 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_qml_copy_files_to_build_dir",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"KomplexHubContent/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 976,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3064,
|
|
||||||
"parent" : 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets"
|
|
||||||
},
|
|
||||||
"id" : "KomplexHubContent_copy_res::@869b5c3e0043a2b69677",
|
|
||||||
"name" : "KomplexHubContent_copy_res",
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 3,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_copy_res",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_copy_res.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/.qt/KomplexHubContent_res.txt.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-113
@@ -1,113 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_target_enable_qmllint",
|
|
||||||
"qt6_target_qml_sources",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"KomplexHubContent/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 960,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3577,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1644,
|
|
||||||
"parent" : 3
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "all_qmltyperegistrations::@223933d05dca26e970b1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets/QmlLinter"
|
|
||||||
},
|
|
||||||
"id" : "KomplexHubContent_qmllint::@869b5c3e0043a2b69677",
|
|
||||||
"name" : "KomplexHubContent_qmllint",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"id" : "Qt6::qmllint::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "all_qmltyperegistrations::@223933d05dca26e970b1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_qmllint",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_qmllint.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-113
@@ -1,113 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_target_enable_qmllint",
|
|
||||||
"qt6_target_qml_sources",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"KomplexHubContent/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 960,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3577,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1671,
|
|
||||||
"parent" : 3
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "all_qmltyperegistrations::@223933d05dca26e970b1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets/QmlLinter"
|
|
||||||
},
|
|
||||||
"id" : "KomplexHubContent_qmllint_json::@869b5c3e0043a2b69677",
|
|
||||||
"name" : "KomplexHubContent_qmllint_json",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"id" : "Qt6::qmllint::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "all_qmltyperegistrations::@223933d05dca26e970b1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_qmllint_json",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_qmllint_json.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
-113
@@ -1,113 +0,0 @@
|
|||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"backtraceGraph" :
|
|
||||||
{
|
|
||||||
"commands" :
|
|
||||||
[
|
|
||||||
"add_custom_target",
|
|
||||||
"_qt_internal_target_enable_qmllint",
|
|
||||||
"qt6_target_qml_sources",
|
|
||||||
"qt6_add_qml_module"
|
|
||||||
],
|
|
||||||
"files" :
|
|
||||||
[
|
|
||||||
"/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake",
|
|
||||||
"KomplexHubContent/CMakeLists.txt"
|
|
||||||
],
|
|
||||||
"nodes" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"file" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 3,
|
|
||||||
"file" : 1,
|
|
||||||
"line" : 7,
|
|
||||||
"parent" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 2,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 960,
|
|
||||||
"parent" : 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 1,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 3577,
|
|
||||||
"parent" : 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command" : 0,
|
|
||||||
"file" : 0,
|
|
||||||
"line" : 1709,
|
|
||||||
"parent" : 3
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"codemodelVersion" :
|
|
||||||
{
|
|
||||||
"major" : 2,
|
|
||||||
"minor" : 9
|
|
||||||
},
|
|
||||||
"dependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"id" : "all_qmltyperegistrations::@223933d05dca26e970b1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"folder" :
|
|
||||||
{
|
|
||||||
"name" : "QtInternalTargets/QmlLinter"
|
|
||||||
},
|
|
||||||
"id" : "KomplexHubContent_qmllint_module::@869b5c3e0043a2b69677",
|
|
||||||
"name" : "KomplexHubContent_qmllint_module",
|
|
||||||
"orderDependencies" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"id" : "Qt6::qmllint::@6890427a1f51a3e7e1df"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "all_qmltyperegistrations::@223933d05dca26e970b1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths" :
|
|
||||||
{
|
|
||||||
"build" : "KomplexHubContent",
|
|
||||||
"source" : "KomplexHubContent"
|
|
||||||
},
|
|
||||||
"sourceGroups" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name" : "",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name" : "CMake Rules",
|
|
||||||
"sourceIndexes" :
|
|
||||||
[
|
|
||||||
1
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sources" :
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"backtrace" : 4,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_qmllint_module",
|
|
||||||
"sourceGroupIndex" : 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"backtrace" : 0,
|
|
||||||
"isGenerated" : true,
|
|
||||||
"path" : "build/KomplexHubContent/CMakeFiles/KomplexHubContent_qmllint_module.rule",
|
|
||||||
"sourceGroupIndex" : 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type" : "UTILITY"
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user