version v0.6 bugfixes
This commit is contained in:
parent
8482bde3ed
commit
8b58785517
13 changed files with 36 additions and 75 deletions
|
@ -92,20 +92,20 @@ ScrollView{
|
|||
Component.onCompleted:{
|
||||
Service.readAllLogins(db,function(accounts){
|
||||
if (accounts.length>0 && bar.currentIndex==0){
|
||||
leftDrawerColumn.height=4.5*root.fontFactor*osSettings.bigFontSize+accounts.length*13*root.fontFactor*osSettings.bigFontSize
|
||||
leftDrawerColumn.height=4.5*root.fontFactor*osSettings.bigFontSize+accounts.length*17*root.fontFactor*osSettings.bigFontSize
|
||||
for(var i = 0; i < accounts.length; i++) {
|
||||
var accountComponent = Qt.createComponent("qrc:/qml/genericqml/DrawerAccountComponent.qml");
|
||||
var accountQml = accountComponent.createObject(leftDrawerColumn,{
|
||||
"y":4.5*root.fontFactor*osSettings.bigFontSize+i*13*root.fontFactor*osSettings.bigFontSize,
|
||||
"y":4.5*root.fontFactor*osSettings.bigFontSize+i*17*root.fontFactor*osSettings.bigFontSize,
|
||||
"currentnewstabstatus":currentnewstabstatus,
|
||||
"account":accounts[i]});
|
||||
}
|
||||
}else if(accounts.length>0 && bar.currentIndex==1){
|
||||
leftDrawerColumn.height=4.5*root.fontFactor*osSettings.bigFontSize+accounts.length*6.5*root.fontFactor*osSettings.bigFontSize
|
||||
leftDrawerColumn.height=4.5*root.fontFactor*osSettings.bigFontSize+accounts.length*8*root.fontFactor*osSettings.bigFontSize
|
||||
for(var i = 0; i < accounts.length; i++) {
|
||||
var accountComponent = Qt.createComponent("qrc:/qml/genericqml/DrawerAccountComponentContacts.qml");
|
||||
var accountQml = accountComponent.createObject(leftDrawerColumn,{
|
||||
"y":4.5*root.fontFactor*osSettings.bigFontSize+i*6.5*root.fontFactor*osSettings.bigFontSize,
|
||||
"y":4.5*root.fontFactor*osSettings.bigFontSize+i*8*root.fontFactor*osSettings.bigFontSize,
|
||||
"account":accounts[i]});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ import "qrc:/qml/genericqml"
|
|||
|
||||
Item {
|
||||
id: contactComponent
|
||||
height: 5*root.fontFactor*osSettings.systemFontSize//8*mm
|
||||
height: 4.5*root.fontFactor*osSettings.systemFontSize//8*mm
|
||||
width: contactComponent.ListView.view.width//parent.width
|
||||
property var createdAtDate: new Date(contact.created_at)
|
||||
property string connectUrl: (contact.network!=="dfrn")||(contact.isFriend==1)?"":( "<a href='"+contact.url.replace("profile","dfrn_request") +"'>"+qsTr("Connect")+"</a><br>")
|
||||
|
|
|
@ -132,12 +132,12 @@ Rectangle{
|
|||
//print("Newsobject "+newsitemobject.id+ " "+JSON.stringify(newsitemobject.user));
|
||||
if (newsitemobject!=""){
|
||||
messageSend.state="conversation"
|
||||
reply_to_user=newsitemobject.user.screen_name;
|
||||
parentId=newsitemobject.id
|
||||
messageSend.reply_to_user=newsitemobject.user.screen_name;
|
||||
messageSend.parentId=newsitemobject.id
|
||||
} else {
|
||||
messageSend.state=null;
|
||||
reply_to_user="";
|
||||
parentId="";
|
||||
//messageSend.state=null;
|
||||
messageSend.reply_to_user="";
|
||||
messageSend.parentId="";
|
||||
bodyField.text="";
|
||||
attachImageURLs.pop();
|
||||
imageAttachment.source=""
|
||||
|
|
|
@ -34,7 +34,7 @@ AnimatedImage {id:gif;
|
|||
width:toprow.width;
|
||||
//property string mimetype:""
|
||||
fillMode: Image.PreserveAspectFit;
|
||||
onStatusChanged: playing = (status == AnimatedImage.Ready)
|
||||
onStatusChanged: {playing = (status == AnimatedImage.Ready)}
|
||||
Rectangle{
|
||||
visible: (model.newsitemobject.imageAttachmentList.length>1)&&(gif.status==Image.Ready)
|
||||
opacity: 0.5
|
||||
|
|
|
@ -39,11 +39,9 @@ import "qrc:/js/service.js" as Service
|
|||
|
||||
Rectangle{
|
||||
id:newstabitem
|
||||
width:rootstack.width//-5*mm
|
||||
height: rootstack.height-8*mm//rootstack.height-100*mm
|
||||
width:rootstack.width
|
||||
height: rootstack.height-8*mm
|
||||
|
||||
//anchors.fill: parent
|
||||
//onHeightChanged: {newsSwipeview.height=height-5*mm}
|
||||
Timer {id:contacttimer; interval: 50; running: false; repeat: false
|
||||
onTriggered: {
|
||||
root.newContacts=Newsjs.findNewContacts(root.news,root.contactlist);
|
||||
|
@ -155,63 +153,15 @@ Rectangle{
|
|||
LeftDrawerAndroid{
|
||||
id: leftDrawerAndroid
|
||||
}
|
||||
// BlueButton{
|
||||
// z:2
|
||||
// anchors.left: newsSwipeview.left
|
||||
// anchors.verticalCenter: newsSwipeview.verticalCenter//anchors.bottom: newsSwipeview.bottom
|
||||
// anchors.margins: mm
|
||||
// visible: wideScreen && newsSwipeview.currentIndex!=0
|
||||
// text:"\uf053"
|
||||
// fontColor:"grey"
|
||||
// border.color: "transparent"
|
||||
// color:"transparent"
|
||||
// radius:0
|
||||
// onClicked: {newsSwipeview.currentIndex=newsSwipeview.currentIndex-1}
|
||||
// }
|
||||
|
||||
// BlueButton{
|
||||
// z:2
|
||||
// anchors.right: newsSwipeview.right
|
||||
// anchors.verticalCenter: newsSwipeview.verticalCenter//anchors.bottom: newsSwipeview.bottom
|
||||
// anchors.margins: mm
|
||||
// visible: wideScreen && newsSwipeview.currentIndex!=3
|
||||
// text:"\uf054"
|
||||
// fontColor:"grey"
|
||||
// border.color: "transparent"
|
||||
// color:"transparent"
|
||||
// radius:0
|
||||
// onClicked: {newsSwipeview.currentIndex=newsSwipeview.currentIndex+1}
|
||||
// }
|
||||
|
||||
SwipeView{
|
||||
id: newsSwipeview
|
||||
property string stacktype:"Home"
|
||||
currentIndex: 0
|
||||
width: wideScreen&&rootstackView.depth<2?newstabitem.width-leftDrawer.width-mm:newstabitem.width-mm//newstabitem.width/3*2:newstabitem.width
|
||||
width: wideScreen&&rootstackView.depth<2?newstabitem.width-leftDrawer.width:newstabitem.width//newstabitem.width/3*2:newstabitem.width
|
||||
height: newstabitem.height-4*mm
|
||||
x: leftDrawer.width
|
||||
function onDirectMessage(friend){currentIndex=2}
|
||||
// transitions: Transition {
|
||||
// PropertyAnimation { properties: "height";
|
||||
// easing.type: Easing.InOutQuad
|
||||
// duration: 1000
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// Label{
|
||||
// text:"\uf0c9 "
|
||||
// font.pixelSize: 5* mm
|
||||
// anchors.left: parent.left
|
||||
// anchors.margins: mm
|
||||
// color: "#B0BEC5"
|
||||
// MouseArea{
|
||||
// anchors.fill: parent
|
||||
// onClicked:{
|
||||
// leftDrawer.open()
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
onCurrentIndexChanged: {
|
||||
switch(currentIndex){
|
||||
|
|
|
@ -74,7 +74,7 @@ Item {
|
|||
id:toprow //newscolumn
|
||||
width: newsitemobject.hasOwnProperty("indent")?newsitem.width-(newsitem.width/20 *(newsitemobject.indent+1)):newsitem.width//-8*mm
|
||||
x:newsitemobject.hasOwnProperty("indent")?newsitem.width/20*(newsitemobject.indent):0
|
||||
height: newsitemobject.nsfw?5*mm:Math.min(itemHeader.height+itemBody.height,3/4*root.height)
|
||||
height: newsitemobject.nsfw?5*mm:Math.min(implicitHeight,3/4*root.height)
|
||||
clip: true
|
||||
Item{id:itemHeader
|
||||
height: Math.max(profileImage.height+mm,topFlow.implicitHeight+mm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue