gpodder-ui-qml/desktop/dialogs/AddPodcastDialog.qml
Jeena 8aab9adb4d Implement OPML import in the desktop and touch ui
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.
2016-02-22 04:51:05 +01:00

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;
}
}