Verified Commit 94181d23 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳
Browse files

Simplify NavigationEntrySheet

parent 84d30c2d
...@@ -44,9 +44,6 @@ Controls.Drawer { ...@@ -44,9 +44,6 @@ Controls.Drawer {
property int fullHeight: 0.9 * rootPage.height property int fullHeight: 0.9 * rootPage.height
property bool openedState: false property bool openedState: false
property Item urlInput
property Item listView
contentHeight: fullHeight - topPadding - bottomPadding contentHeight: fullHeight - topPadding - bottomPadding
contentWidth: parent.width - rightPadding - leftPadding contentWidth: parent.width - rightPadding - leftPadding
contentItem: Item { contentItem: Item {
...@@ -85,7 +82,6 @@ Controls.Drawer { ...@@ -85,7 +82,6 @@ Controls.Drawer {
onAccepted: applyUrl() onAccepted: applyUrl()
onTextChanged: urlFilter.setFilterFixedString(text) onTextChanged: urlFilter.setFilterFixedString(text)
Keys.onEscapePressed: if (overlay.sheetOpen) overlay.close() Keys.onEscapePressed: if (overlay.sheetOpen) overlay.close()
Component.onCompleted: overlay.urlInput = urlInput
function applyUrl() { function applyUrl() {
if (text.match(RegexWebUrl.re_weburl)) { if (text.match(RegexWebUrl.re_weburl)) {
...@@ -133,8 +129,6 @@ Controls.Drawer { ...@@ -133,8 +129,6 @@ Controls.Drawer {
id: urlFilter id: urlFilter
sourceModel: BrowserManager.history sourceModel: BrowserManager.history
} }
Component.onCompleted: overlay.listView = listView
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment