Friendiqa v0.3.2

This commit is contained in:
LubuWest 2018-08-25 16:17:09 +02:00
commit 99ae53f624
54 changed files with 2771 additions and 437 deletions

View file

@ -46,13 +46,13 @@ Item {
imageUrls=h;
imageUrl=h[0];
ready();
root.imagePicking=false
}
}
}
Component.onCompleted: {
SystemDispatcher.loadClass("androidnative.ImagePicker");
if (root.currentIndex==0){SystemDispatcher.setInitialized();}
}
}

View file

@ -2,7 +2,7 @@ import QtQuick 2.0
import AndroidNative 1.0
Item {
id:intent
/// The URL of the image chosen. If multiple images are picked, it will be equal to the first image.
property string imageUrl: ""
@ -16,7 +16,7 @@ Item {
Connections {
target: SystemDispatcher
onDispatched: {
if (type === m_IMAGE_MESSAGE) {
if ((type === m_IMAGE_MESSAGE)&& (root.imagePicking==false)) {
var h=[];
for (var n in message.imageUrls){
h.push("file://"+ decodeURIComponent(message.imageUrls[n]).substring(5))

View file

@ -32,17 +32,18 @@
import QtQuick 2.7
import QtQuick.Controls 1.2
import "qrc:/qml/genericqml"
import "qrc:/js/news.js" as Newsjs
import "qrc:/js/helper.js" as Helperjs
import "qrc:/js/service.js" as Service
//import "qrc:/js/news.js" as Newsjs
//import "qrc:/js/helper.js" as Helperjs
//import "qrc:/js/service.js" as Service
Item {
Rectangle {
id:searchComponent
onVisibleChanged: if (visible) searchText.forceActiveFocus()
//onActiveFocusChanged: searchText.forceActiveFocus()
//onVisibleChanged: if (visible) searchText.forceActiveFocus()
// border.color: "#EEEEEE"
// border.width: 1
// color:"lightgrey"
color:"lightgrey"
// width:conversationView.width
// height:Math.max(replyText.contentHeight+2*mm,6*mm)
Rectangle{
@ -53,19 +54,21 @@ Item {
anchors.top:parent.top
anchors.topMargin: 0.5*mm
width:parent.width-2*mm
height:Math.max( searchText.contentHeight,5*mm)
height: 7*mm //Math.max( searchText.contentHeight,5*mm)
TextInput {
id: searchText
focus: true
font.pixelSize: 3*mm
wrapMode: Text.Wrap
anchors.fill: parent
selectByMouse: true
cursorVisible: false
onEditingFinished: search(displayText)
onEditingFinished:{ if (displayText!=""){search(displayText)};searchComponent.destroy()}
//onHeightChanged: newsView.contentY+=4.5*mm
}
}
Component.onCompleted: searchText.forceActiveFocus()
// BlueButton {
// id: sendButton
// text: "\uf002"
@ -80,4 +83,5 @@ Item {
// }
// }
}
}