diff --git a/src/main.cpp b/src/main.cpp index c837a795..3f2cfc4d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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"))); diff --git a/src/qml/PodcastPlayerPage.qml b/src/qml/PodcastPlayerPage.qml deleted file mode 100644 index 38fac68a..00000000 --- a/src/qml/PodcastPlayerPage.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * SPDX-FileCopyrightText: 2020 Tobias Fella - * - * 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() - } - } -} diff --git a/src/resources.qrc b/src/resources.qrc index 91d0112b..12ffb9a4 100755 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -9,7 +9,6 @@ qml/EntryListDelegate.qml qml/AddFeedSheet.qml qml/FeedListDelegate.qml - qml/PodcastPlayerPage.qml qml/MinimizedPlayerControls.qml qml/PlayerControls.qml qml/FooterBar.qml