tune button interfaces
This commit is contained in:
parent
6770469763
commit
114a749abb
@ -1,7 +1,2 @@
|
|||||||
{
|
{
|
||||||
"events": [
|
|
||||||
{
|
|
||||||
"name": "pressed"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,10 @@
|
|||||||
<file>mediaplayer.json</file>
|
<file>mediaplayer.json</file>
|
||||||
<file>battery.json</file>
|
<file>battery.json</file>
|
||||||
<file>button.json</file>
|
<file>button.json</file>
|
||||||
|
<file>simplebutton.json</file>
|
||||||
|
<file>longpressbutton.json</file>
|
||||||
|
<file>simplemultibutton.json</file>
|
||||||
|
<file>longpressmultibutton.json</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/"/>
|
<qresource prefix="/"/>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
8
libguh/interfaces/longpressbutton.json
Normal file
8
libguh/interfaces/longpressbutton.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"extends": "simplebutton",
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"name": "longPressed"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
14
libguh/interfaces/longpressmultibutton.json
Normal file
14
libguh/interfaces/longpressmultibutton.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extends": "longpressbutton",
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"name": "longPressed",
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "buttonName",
|
||||||
|
"type": "QString"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
8
libguh/interfaces/simplebutton.json
Normal file
8
libguh/interfaces/simplebutton.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"extends": "button",
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"name": "pressed"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
14
libguh/interfaces/simplemultibutton.json
Normal file
14
libguh/interfaces/simplemultibutton.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extends": "button",
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"name": "pressed",
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "buttonName",
|
||||||
|
"type": "QString"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user