Warning, /multimedia/plasmatube/src/ui/TrendingPage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com
0002 // SPDX-License-Identifier: GPL-3.0-or-later
0003 
0004 import QtQuick
0005 
0006 import org.kde.kirigami as Kirigami
0007 
0008 import org.kde.plasmatube
0009 
0010 FeedPage {
0011     id: page
0012 
0013     initialQuery: VideoListModel.Trending
0014 
0015     title: i18nc("@title Trending videos", "Trending")
0016 
0017     header: Kirigami.NavigationTabBar {
0018         visible: PlasmaTube.selectedSource !== null && PlasmaTube.selectedSource.supportsTrendingCategories()
0019         width: parent.width
0020         actions: [
0021             VideoListAction {
0022                 videoModel: page.videoModel
0023                 queryType: VideoListModel.Trending
0024             },
0025             VideoListAction {
0026                 videoModel: page.videoModel
0027                 queryType: VideoListModel.TrendingGaming
0028             },
0029             VideoListAction {
0030                 videoModel: page.videoModel
0031                 queryType: VideoListModel.TrendingMovies
0032             },
0033             VideoListAction {
0034                 videoModel: page.videoModel
0035                 queryType: VideoListModel.TrendingMusic
0036             },
0037             VideoListAction {
0038                 videoModel: page.videoModel
0039                 queryType: VideoListModel.TrendingNews
0040             }
0041         ]
0042 
0043         Component.onCompleted: actions[0].checked = true
0044     }
0045 }