e6f0088ae4
textures now. Implementation is almost complete beside of the not yet done Qt antialiasing mode. Not all sort of linear gradients ( see QLinearGradients ) are implemented - needs 1-2 days more. The aspect flags for box primitives have been substantially changed from too atomic to more strutured units. The skins are currently incomplete - will be fixed later.
44 lines
622 B
QML
44 lines
622 B
QML
import QtQuick 2.0
|
|
import Skinny 1.0 as Qsk
|
|
|
|
Qsk.PushButton
|
|
{
|
|
sizePolicy
|
|
{
|
|
horizontalPolicy: Qsk.SizePolicy.Ignored
|
|
verticalPolicy: Qsk.SizePolicy.Ignored
|
|
}
|
|
|
|
corner
|
|
{
|
|
sizeMode: Qt.RelativeSize
|
|
aspectRatioMode: Qt.KeepAspectRatio
|
|
radius: 10
|
|
}
|
|
|
|
onClicked:
|
|
{
|
|
console.log( "Clicked" )
|
|
}
|
|
|
|
onPressed:
|
|
{
|
|
console.log( "Pressed" )
|
|
}
|
|
|
|
onReleased:
|
|
{
|
|
console.log( "Released" )
|
|
}
|
|
|
|
onCanceled:
|
|
{
|
|
console.log( "Canceled" )
|
|
}
|
|
|
|
onToggled:
|
|
{
|
|
console.log( "Toggled" )
|
|
}
|
|
}
|