1 /*****************************************************************************
2 * Copyright (C) 2021 VLC authors and VideoLAN
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * ( at your option ) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
17 *****************************************************************************/
20 import QtQuick.Controls 2.4
21 import QtQuick.Layouts 1.3
22 import QtQml.Models 2.2
24 import org.videolan.medialib 0.1
26 import "qrc:///widgets/" as Widgets
27 import "qrc:///main/" as MainInterface
28 import "qrc:///util/" as Util
29 import "qrc:///style/"
34 //---------------------------------------------------------------------------------------------
36 //---------------------------------------------------------------------------------------------
38 onCurrentIndexChanged: {
39 history.update([ "mc", "video", { "initialIndex": currentIndex }])
42 //---------------------------------------------------------------------------------------------
44 //---------------------------------------------------------------------------------------------
53 property Item focusItem: loader.item.focusItem
57 topPadding: VLCStyle.margin_normal
59 spacing: VLCStyle.margin_normal
66 height: item.implicitHeight
68 active: (modelRecent.count)
74 sourceComponent: VideoDisplayRecentVideos {
83 navigationParent: root
85 navigationDown: function() {
86 component.focus = false;
88 currentItem.setCurrentItemFocus();
93 Widgets.SubtitleLabel {
96 leftPadding : VLCStyle.margin_xlarge
97 bottomPadding: VLCStyle.margin_xsmall
99 text: i18n.qtr("Videos")