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