Skip to content
Browse files

Minor enhancements

  • Loading branch information...
1 parent dbda7ac commit 32409c2a1774a90ee752a5a11a487964b0539f3a @shaque committed Mar 18, 2013
View
9 invokeclient/assets/main.qml
@@ -148,6 +148,7 @@ Page {
TextField {
visible: (actionSelector.selectedValue == "")
hintText: qsTr("E.g. com.example.BEBOLD")
+ inputMode: TextFieldInputMode.Url
onTextChanging: {
_app.action = text
}
@@ -162,6 +163,7 @@ Page {
TextField {
hintText: qsTr("E.g. image/png")
text: "text/plain"
+ inputMode: TextFieldInputMode.Url
onTextChanging: {
_app.mimeType = text
}
@@ -174,7 +176,9 @@ Page {
title: "URI"
}
TextField {
+ id: uriField
hintText: qsTr("Enter URI or double tap to pick a file")
+ inputMode: TextFieldInputMode.Url
onTextChanging: {
_app.uri = text
}
@@ -184,6 +188,7 @@ Page {
gestureHandlers: [
DoubleTapHandler {
onDoubleTapped: {
+ filePicker.open();
}
}
]
@@ -199,7 +204,7 @@ Page {
]
onFileSelected: {
var path = selectedFiles[0];
- text = path;
+ uriField.text = "file://" + path;
}
}
]
@@ -210,6 +215,7 @@ Page {
TextField {
hintText: qsTr("E.g. anything!")
text: qsTr("Test data..")
+ inputMode: TextFieldInputMode.Url
onTextChanging: {
_app.data = text
}
@@ -222,6 +228,7 @@ Page {
}
TextField {
hintText: qsTr("E.g. com.example.app")
+ inputMode: TextFieldInputMode.Url
onTextChanging: {
_app.target = text
}
View
10 invokeclient/translations/invokeclient.ts
@@ -184,27 +184,27 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="163"/>
+ <location filename="../assets/main.qml" line="164"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="177"/>
+ <location filename="../assets/main.qml" line="180"/>
<source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="211"/>
+ <location filename="../assets/main.qml" line="216"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="212"/>
+ <location filename="../assets/main.qml" line="217"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="224"/>
+ <location filename="../assets/main.qml" line="230"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
10 invokeclient/translations/invokeclient_de.ts
@@ -184,27 +184,27 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="163"/>
+ <location filename="../assets/main.qml" line="164"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="177"/>
+ <location filename="../assets/main.qml" line="180"/>
<source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="211"/>
+ <location filename="../assets/main.qml" line="216"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="212"/>
+ <location filename="../assets/main.qml" line="217"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="224"/>
+ <location filename="../assets/main.qml" line="230"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
10 invokeclient/translations/invokeclient_en_GB.ts
@@ -184,27 +184,27 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="163"/>
+ <location filename="../assets/main.qml" line="164"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="177"/>
+ <location filename="../assets/main.qml" line="180"/>
<source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="211"/>
+ <location filename="../assets/main.qml" line="216"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="212"/>
+ <location filename="../assets/main.qml" line="217"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="224"/>
+ <location filename="../assets/main.qml" line="230"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
10 invokeclient/translations/invokeclient_es.ts
@@ -184,27 +184,27 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="163"/>
+ <location filename="../assets/main.qml" line="164"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="177"/>
+ <location filename="../assets/main.qml" line="180"/>
<source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="211"/>
+ <location filename="../assets/main.qml" line="216"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="212"/>
+ <location filename="../assets/main.qml" line="217"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="224"/>
+ <location filename="../assets/main.qml" line="230"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
10 invokeclient/translations/invokeclient_fr.ts
@@ -184,27 +184,27 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="163"/>
+ <location filename="../assets/main.qml" line="164"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="177"/>
+ <location filename="../assets/main.qml" line="180"/>
<source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="211"/>
+ <location filename="../assets/main.qml" line="216"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="212"/>
+ <location filename="../assets/main.qml" line="217"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="224"/>
+ <location filename="../assets/main.qml" line="230"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
10 invokeclient/translations/invokeclient_it.ts
@@ -184,27 +184,27 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="163"/>
+ <location filename="../assets/main.qml" line="164"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="177"/>
+ <location filename="../assets/main.qml" line="180"/>
<source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="211"/>
+ <location filename="../assets/main.qml" line="216"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="212"/>
+ <location filename="../assets/main.qml" line="217"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="224"/>
+ <location filename="../assets/main.qml" line="230"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>

0 comments on commit 32409c2

Please sign in to comment.
Something went wrong with that request. Please try again.