Qt World Summit Conference App
import Felgo 3.0
import QtQuick 2.0
import "../common"
ListPage {
id: morePage
title: "More"
model: [
{ text: "Business Meet", section: "Social", page: socialViewItem.businessMeetPage },
{ text: "Your Profile", section: "Social", page: socialViewItem.profilePage },
{ text: "Chat", section: "Social", page: socialViewItem.inboxPage },
{ text: "Leaderboard", section: "Social", page: socialViewItem.leaderboardPage },
{ 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", icon: IconType.star },
{ text: "Share this App", section: "More", special: "share", icon: IconType.share }
]
section.property: "section"
onItemSelected: {
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)
}
}