Redo the popup window to use styleable components
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
e757056047
commit
314b3d56f2
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user