1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Added helloqml plugin

This commit is contained in:
Anmol Gautam 2018-05-19 22:43:30 +05:30
parent 4d4971630a
commit a6373bd3c9
3 changed files with 34 additions and 0 deletions

View File

@ -9,5 +9,14 @@ function(install_python_script name)
endif()
endfunction()
function(install_qml_script name)
install(
DIRECTORY ${name}
DESTINATION "${FALKON_INSTALL_PLUGINDIR}/qml"
)
endfunction()
install_python_script(hellopython)
install_python_script(runaction)
install_qml_script(helloqml)

View File

@ -0,0 +1,15 @@
import org.kde.falkon 1.0 as Falkon
Falkon.PluginInterface {
init: function(state, settingsPath){
console.log(__name__ + " Plugin loaded")
}
testPlugin: function() {
return true
}
unload: function() {
console.log("Bye!")
}
}

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=Hello Qml
Comment=Sample Qml Plugin
Icon=
Type=Service
X-Falkon-Author=Anmol Gautam
X-Falkon-Email=tarptaeya@gmail.com
X-Falkon-Version=0.1.0
X-Falkon-Settings=false
X-Falkon-EntryPoint=helloqml.qml