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:
parent
4d4971630a
commit
a6373bd3c9
|
@ -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)
|
||||
|
|
15
src/scripts/helloqml/helloqml.qml
Normal file
15
src/scripts/helloqml/helloqml.qml
Normal 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!")
|
||||
}
|
||||
}
|
10
src/scripts/helloqml/metadata.desktop
Normal file
10
src/scripts/helloqml/metadata.desktop
Normal 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
|
Loading…
Reference in New Issue
Block a user