Commit 25fbc2b7 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Use strict typing for properties

parent 57053f35
......@@ -3,9 +3,11 @@ import QtQuick.Layouts 1.1
import QtQuick.Controls 2.2 as Controls
import org.kde.kirigami 2.5 as Kirigami
import QtWebEngine 1.4
Kirigami.OverlaySheet {
id: authSheet
property var request
property AuthenticationDialogRequest request
Kirigami.FormLayout {
Layout.fillWidth: true
......
import QtQuick 2.0
import org.kde.kirigami 2.4 as Kirigami
import QtWebEngine 1.1
Kirigami.InlineMessage {
id: downloadQuestion
text: i18n("Do you want to download this file?")
showCloseButton: false
property var download
property WebEngineDownloadItem download
actions: [
Kirigami.Action {
......
......@@ -36,7 +36,7 @@ Repeater {
property bool privateTabsMode: false
property alias currentIndex: tabsModel.currentTab
property var currentItem
property WebView currentItem
property alias tabsModel: tabsModel
......
......@@ -5,10 +5,10 @@ import org.kde.kirigami 2.4 as Kirigami
Kirigami.InlineMessage {
id: newTabQuestion
type: Kirigami.MessageType.Warning
text: url? i18n("Site wants to open a new tab: \n%1", url.toString()) : ""
text: url ? i18n("Site wants to open a new tab: \n%1", url.toString()) : ""
showCloseButton: true
property var url
property url url
actions: [
Kirigami.Action {
......
......@@ -28,8 +28,8 @@ import org.kde.purpose 1.0 as Purpose
Kirigami.OverlaySheet {
id: inputSheet
property var url
property var title
property url url
property string title
Purpose.AlternativesView {
id: view
......
......@@ -107,7 +107,7 @@ WebEngineView {
// Custom context menu
Controls.Menu {
property var request
property ContextMenuRequest request
id: contextMenu
Controls.MenuItem {
......
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