2022-03-29 23:05:12 +02:00
|
|
|
import org.kde.falkon 1.0 as Falkon
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick 2.3
|
|
|
|
|
|
|
|
Falkon.PluginInterface {
|
|
|
|
|
|
|
|
init: function(state, settingsPath) {
|
|
|
|
console.log(i18n('"Tutorial7" plugin loaded'))
|
|
|
|
}
|
|
|
|
|
|
|
|
testPlugin: function() {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
unload: function() {
|
|
|
|
console.log(i18n('"Tutorial7" plugin unloaded'))
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Taken from "Hello Qml" example */
|
|
|
|
Falkon.SideBar {
|
|
|
|
name: 'qml-tutorial7-sidebar'
|
|
|
|
title: i18n('Tutorial 7 - QML SideBar')
|
|
|
|
icon: 'falkon'
|
|
|
|
checkable: true
|
|
|
|
shortcut: 'Ctrl+Shift+Alt+S'
|
2022-07-14 11:00:31 +02:00
|
|
|
|
|
|
|
Pane {
|
2022-03-29 23:05:12 +02:00
|
|
|
Image {
|
|
|
|
source: 'qrc:/icons/other/startpage.svg'
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: i18n('Hello Qml Plugin')
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|