Qt World Summit Conference App
import Felgo 4.0
import QtQuick 2.0
import "../common"
ListPage {
id: morePage
title: "More"
model: [
{ text: "Tracks", section: "General", page: Qt.resolvedUrl("TracksPage.qml") },
{ text: "Venue", section: "General", page: Qt.resolvedUrl("VenuePage.qml") },
{ text: "Settings", section: "General", page: Qt.resolvedUrl("SettingsPage.qml") },
{ text: "Rate this App", section: "More", special: "rate", iconType: IconType.star },
{ text: "Share this App", section: "More", special: "share", iconType: IconType.share }
]
section.property: "section"
onItemSelected: (index, item) => {
if(model[index].special) {
if(model[index].special === "rate") {
amplitude.logEvent("RateInStore")
logic.setFeedBackSent(true)
nativeUtils.openUrl(ratingUrl)
} else if(model[index].special === "share") {
amplitude.logEvent("Share Button Pressed")
nativeUtils.share("Check out the Qt World Summit 2019 Conference App!", "https://felgo.com/qws-conference-in-app-2019")
}
} else {
morePage.navigationStack.popAllExceptFirstAndPush(model[index].page)
}
}