This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Experimental InverseMouseArea | |
import QtQuick 2.0 | |
Item { | |
id : component | |
property Item sensingArea : null | |
signal pressed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
Rectangle { | |
color : "white" | |
MouseArea { | |
anchors.fill:parent | |
onClicked: Grabber.grab(grid); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font: normal 400 14px/1.2 Arial; | |
margin-top: 85px; | |
font-family: Arial, Helvetica; | |
text-align: left; | |
margin-left: 5px; | |
margin-right: 5px; | |
} | |
p { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" | |
android:name="quickandroid.QuickAndroidActivity" | |
android:label="Quick Android Example" | |
android:theme="@style/AppTheme" | |
android:screenOrientation="unspecified" | |
android:launchMode="singleTop"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Splash screen --> | |
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splash"/> | |
<!-- Splash screen --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loader { | |
id: loader | |
anchors.fill: parent | |
asynchronous: true | |
opacity: 0 | |
focus: true; | |
sourceComponent: PageStack { | |
initialPage: YourPage { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListView { | |
Dialog { | |
id: alertDialog | |
property int removeItemId; | |
onAccepted: { | |
// remove item | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Window { | |
id: window | |
Dialog { | |
id: alertDialog | |
property int removeItemId; | |
onAccepted: { | |
// remove it from model | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListView { | |
id: listView | |
signal removeClicked(int index); | |
delegate: YourItem { | |
onRemoveClicked: listView.removeClicked(model.index); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListVIew { | |
id : listView; | |
signal removeClicked(int index); | |
signal clicked(int index); | |
delegate: YourItem { | |
onRemoveClicked: listView.removeClicked(model.index); | |
onClicked: listView.clicked(model.index); | |
} | |
} |
OlderNewer