Remove unneeded PodcastPlayerPage and debug lines in main.cpp

This commit is contained in:
Bart De Vries 2021-04-04 20:09:24 +02:00
parent 8b78de960b
commit 030bc07bb5
3 changed files with 0 additions and 51 deletions

View File

@ -89,8 +89,6 @@ int main(int argc, char *argv[])
Database::instance();
DataManager::instance();
//qDebug() << DataManager::instance().getFeed(0)->name();
//qDebug() << DataManager::instance().getEntry(0, 0)->title();
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));

View File

@ -1,48 +0,0 @@
/**
* SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
import QtQuick 2.14
import QtQuick.Controls 2.14 as Controls
import QtQuick.Layouts 1.14
import QtMultimedia 5.15
import org.kde.kirigami 2.14 as Kirigami
import org.kde.alligator 1.0
Kirigami.Page {
id: podcastPlayerPage
property QtObject entry
title: entry.title
clip: true
Layout.margins: 0
icon.name: "media-playback-start"
title: "Play"
EntryPage {
entry: podcastPlayerPage.entry
anchors.fill: parent
icon.name: "help-about"
title: "Info"
}
actions.main: Kirigami.Action {
text: !entry.enclosure ? i18n("Open in Browser") :
entry.enclosure.status === Enclosure.Downloadable ? i18n("Download") :
entry.enclosure.status === Enclosure.Downloading ? i18n("Cancel download") :
i18n("Delete downloaded file")
icon.name: !entry.enclosure ? "globe" :
entry.enclosure.status === Enclosure.Downloadable ? "download" :
entry.enclosure.status === Enclosure.Downloading ? "edit-delete-remove" :
"delete"
onTriggered: {
if(!entry.enclosure) Qt.openUrlExternally(entry.link)
else if(entry.enclosure.status === Enclosure.Downloadable) entry.enclosure.download()
else if(entry.enclosure.status === Enclosure.Downloading) entry.enclosure.cancelDownload()
else entry.enclosure.deleteFile()
}
}
}

View File

@ -9,7 +9,6 @@
<file alias="EntryListDelegate.qml">qml/EntryListDelegate.qml</file>
<file alias="AddFeedSheet.qml">qml/AddFeedSheet.qml</file>
<file alias="FeedListDelegate.qml">qml/FeedListDelegate.qml</file>
<file alias="PodcastPlayerPage.qml">qml/PodcastPlayerPage.qml</file>
<file alias="MinimizedPlayerControls.qml">qml/MinimizedPlayerControls.qml</file>
<file alias="PlayerControls.qml">qml/PlayerControls.qml</file>
<file alias="FooterBar.qml">qml/FooterBar.qml</file>