Redo the popup window to use styleable components

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-06-19 23:50:43 +02:00
parent e757056047
commit 314b3d56f2
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -64,12 +64,21 @@ Falkon.PluginInterface {
location: Falkon.BrowserAction.NavigationToolBar | Falkon.BrowserAction.StatusBar
onClicked: findFeeds()
popup: ScrollView {
id: popupWindow
popup: Pane {
id: mainPane
width: 500
height: 200
ScrollBar.horizontal.policy: ScrollBar.AlwaysOn
ScrollView {
width: mainPane.width
height: mainPane.height
anchors.top: parent.top
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
ListView {
@ -78,8 +87,9 @@ Falkon.PluginInterface {
Button {
hoverEnabled: true
width: popupWindow.width
onClicked: Falkon.Clipboard.copy(url)
width: rssList.width
height: wrapper.height
ToolTip.delay: 1000
ToolTip.timeout: 5000
@ -88,23 +98,27 @@ Falkon.PluginInterface {
ColumnLayout {
id: wrapper
spacing: 0
spacing: 2
Text {
Label {
font.bold: true
text: title
}
Text {
Label {
text: url
}
}
}
}
id: rssList
model: rssFinderObject.feeds
delegate: contactsDelegate
focus: true
spacing: 5
}
}
}
}
}