
The core has already implemented parsing OPML files from URLs and files, it only needs to be exposed by the UI which this parch does.
38 lines
702 B
QML
38 lines
702 B
QML
import QtQuick 2.0
|
|
import QtQuick.Controls 1.0
|
|
import QtQuick.Layouts 1.0
|
|
import QtQuick.Dialogs 1.2
|
|
|
|
import '../common'
|
|
import '../common/util.js' as Util
|
|
|
|
Dialog {
|
|
property alias labelText: urlEntyLabel.text
|
|
signal addUrl(string url)
|
|
|
|
width: 300
|
|
height: 100
|
|
title: 'Add new podcast'
|
|
standardButtons: StandardButton.Open | StandardButton.Cancel
|
|
|
|
RowLayout {
|
|
anchors.fill: parent
|
|
|
|
Label {
|
|
id: urlEntyLabel
|
|
text: 'URL:'
|
|
}
|
|
|
|
TextField {
|
|
id: urlEntry
|
|
focus: true
|
|
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
|
|
onAccepted: {
|
|
addUrl(urlEntry.text);
|
|
visible = false;
|
|
}
|
|
}
|