From 8b587855172e6a5d515429744c8883d57f8293ca Mon Sep 17 00:00:00 2001 From: LubuWest Date: Tue, 18 May 2021 21:01:32 +0200 Subject: [PATCH] version v0.6 bugfixes --- source-android/android/gradle.properties | 3 + source-android/qml/friendiqa.qml | 4 +- source-linux/application.qrc | 2 + source-linux/common/updatenews.cpp | 12 ++-- source-linux/js/newsworker.js | 4 +- .../qml/configqml/LeftDrawerScrollview.qml | 8 +-- .../qml/genericqml/ContactComponent.qml | 2 +- source-linux/qml/newsqml/MessageSend.qml | 10 ++-- source-linux/qml/newsqml/NewsImage.qml | 2 +- source-linux/qml/newsqml/NewsTab.qml | 56 +----------------- source-linux/qml/newsqml/Newsitem.qml | 2 +- source-linux/translations/friendiqa-hu.qm | Bin 15758 -> 15746 bytes source-linux/translations/friendiqa-hu.ts | 6 +- 13 files changed, 36 insertions(+), 75 deletions(-) diff --git a/source-android/android/gradle.properties b/source-android/android/gradle.properties index 82755ae..bedc041 100644 --- a/source-android/android/gradle.properties +++ b/source-android/android/gradle.properties @@ -1,4 +1,7 @@ +# androidBuildToolsVersion=25.0.3 +# androidCompileSdkVersion=26 buildDir=.build +# qt5AndroidDir=/home/pankraz/Qt/5.11.1/android_armv7/src/android/java android.useAndroidX=true android.enableJetifier=true android.enforceUniquePackageName=false diff --git a/source-android/qml/friendiqa.qml b/source-android/qml/friendiqa.qml index 41558a7..5bea20f 100644 --- a/source-android/qml/friendiqa.qml +++ b/source-android/qml/friendiqa.qml @@ -256,8 +256,8 @@ ApplicationWindow{ Loader{ id: newstab - Layout.fillWidth:true - Layout.fillHeight: true +// Layout.fillWidth:true +// Layout.fillHeight: true property string newstabstatus property var conversation:[] diff --git a/source-linux/application.qrc b/source-linux/application.qrc index 091eb8a..3e62eeb 100644 --- a/source-linux/application.qrc +++ b/source-linux/application.qrc @@ -247,5 +247,7 @@ qml/contactqml/ContactsListTab.qml qml/contactqml/GroupsListTab.qml qml/calendarqml/EventListItem.qml + translations/friendiqa-hu.qm + translations/friendiqa-hu.ts diff --git a/source-linux/common/updatenews.cpp b/source-linux/common/updatenews.cpp index 77d607a..5da6b54 100644 --- a/source-linux/common/updatenews.cpp +++ b/source-linux/common/updatenews.cpp @@ -135,7 +135,7 @@ void UPDATENEWS::login() } void UPDATENEWS::startsync() -{ qDebug()<<"Friendiqa start syncing "<0){ - qDebug() << "start Friendrequests imagedownload"; + //qDebug() << "start Friendrequests imagedownload"; startImagedownload("friendrequests"); + }else{ + if(m_updateInterval!=0){ + syncindex+=1; + startsync(); + } } } } diff --git a/source-linux/js/newsworker.js b/source-linux/js/newsworker.js index 4e4558d..21f5a25 100644 --- a/source-linux/js/newsworker.js +++ b/source-linux/js/newsworker.js @@ -72,11 +72,13 @@ function beautify(newsitemobject,msg){ else if (attachArray[image].mimetype=="image/png"){attachhelper.url=attachhelper.url+".png"} } else {attachhelper.url=attachArray[image].url} - imageAttachmentList.push(attachhelper) + //print("Attachhelper "+attachhelper.url) newsitemobject.statusnet_html=newsitemobject.statusnet_html.replace(attachhelper.url,"") newsitemobject.statusnet_html=newsitemobject.statusnet_html.replace(attachhelper.url.substring(0,attachhelper.url.length-4)+".jpeg","") newsitemobject.statusnet_html=newsitemobject.statusnet_html.replace(attachhelper.url.substring(0,attachhelper.url.length-4),"") + + imageAttachmentList.push(attachhelper) } } }catch(e){print("attachment "+e)} diff --git a/source-linux/qml/configqml/LeftDrawerScrollview.qml b/source-linux/qml/configqml/LeftDrawerScrollview.qml index f7f0f62..8a11dce 100644 --- a/source-linux/qml/configqml/LeftDrawerScrollview.qml +++ b/source-linux/qml/configqml/LeftDrawerScrollview.qml @@ -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]}); } } diff --git a/source-linux/qml/genericqml/ContactComponent.qml b/source-linux/qml/genericqml/ContactComponent.qml index e652156..9688b1a 100644 --- a/source-linux/qml/genericqml/ContactComponent.qml +++ b/source-linux/qml/genericqml/ContactComponent.qml @@ -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)?"":( ""+qsTr("Connect")+"
") diff --git a/source-linux/qml/newsqml/MessageSend.qml b/source-linux/qml/newsqml/MessageSend.qml index 1cd98bb..d72f109 100644 --- a/source-linux/qml/newsqml/MessageSend.qml +++ b/source-linux/qml/newsqml/MessageSend.qml @@ -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="" diff --git a/source-linux/qml/newsqml/NewsImage.qml b/source-linux/qml/newsqml/NewsImage.qml index e754d57..9527959 100644 --- a/source-linux/qml/newsqml/NewsImage.qml +++ b/source-linux/qml/newsqml/NewsImage.qml @@ -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 diff --git a/source-linux/qml/newsqml/NewsTab.qml b/source-linux/qml/newsqml/NewsTab.qml index f7b4cb6..7257bfe 100644 --- a/source-linux/qml/newsqml/NewsTab.qml +++ b/source-linux/qml/newsqml/NewsTab.qml @@ -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){ diff --git a/source-linux/qml/newsqml/Newsitem.qml b/source-linux/qml/newsqml/Newsitem.qml index 3ae3431..a7c4c9f 100644 --- a/source-linux/qml/newsqml/Newsitem.qml +++ b/source-linux/qml/newsqml/Newsitem.qml @@ -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) diff --git a/source-linux/translations/friendiqa-hu.qm b/source-linux/translations/friendiqa-hu.qm index 8045dabf315733671fdd7c17516fdf94bb133976..a9599bd9d858317406d06c46009aa81806878f6f 100644 GIT binary patch delta 1815 zcmXYxdr*{R6viLe{l0JSyRdQ(SXj9upnzk7j^>DnB4&xq8YOufm_ zL>$S?OL8l<9ThZZG(pr-DXS50p=OFUsd<~Cv?v4Yb zbRcjQpyUD3a|F}BBKHHSp@72)Xl@I}B?5DQ0irGeC946gRnX)u81@rT9uI^b1>DDY zUZr4q7o<@pAnj*JSu26CIfCw(&5*Jw0F98U)Ijh?NPETratNf8-vDY0a}bcw0{Job=`@0-UcvB#Q2NeI`xwe^6qTBd%!Eg9Lw58J z;Ma2(SlAsDn?FvN{%B_29bDj54a3Ob&rBSy@vX#?UmV!pGQ z0)_~hqXome;qsy*gBHWJmJUP@@1q+?uRz)CdO%+#Xjvr~5s9*s4}hf2aJTS4W0#=s zML~NWwks}1oQeh~1*Ge7J?j~eG8%UiDLiG3*Sl|R2a>0F5B4pjvnua~+HJs4m3O=A z2%yq-?!H5fL=@j?r3k5Ctg0?4WYwiQUI!zt8kHSJ9sx#cGPF{Fiy`_Q| z2U*q4i97i{QGII1Bp%!-=uI{)o1e0QOH&Gt$WOny;DIk?lEF=IpYZQqRbePRp4^QQWXV&fJqkHp-4= zocH@jFyM-O;*%K^uuwkp0_TmDg1%LPc1gaJ!;2Go6xB=B3?NDIOX58PYLxipqk-r2 z%BWW;MDI=(151pc?X;5Rc)*E6f|mV)5xGkK?k={ELwUQKsnHb*nx_cb6s5A8-81-t zvfeDwL7lRpa}iV0t_0H#o<4f%kAwJn0CM#1oT+T6KM+5gJw{sDrf3dWXe3(vp9YR}frthhnt+1gSr zME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WOo&47|n*hV?3Gd4rrdE$DSzF#I(o=TI-(XPL6do*?7 zd~AXfH2ZGfp=HZ8hpw;RGzI} z&V`6kX{%gcF!y%BkOu8XT|7AOuy)UBMmB1Z_RA%t(O=NVPcWiU=YQl0ovG3->E^3Q z$xCN5KzYkBsZ=rP9Ql8<4J&l(KOfD9XHeJCz!a#i>yB;8=7TX=*LC4B9}JVOYk;(^ z(W5n%DS9aA^_yULrCtgxVplZj7ukAPGm-lGv%gdL2K~0H4_Pa2{kaJgYz;Nonm?eE z9)`GH*Uya5YM7RJm=o=Wtma3|alGO6+*}snV#6^HCnLLNxH*b~d@~JqQ&+P6GK`X$ z)g0GpO!>2sf`*JGX*1c^$Ba&Q3Ii-PZtCKC|180P7Qw(^!N`;5DKQoXcE+4Hb)Sir zWtsDa>GMA$dd$0KvUu>l`Jg`)YaN270>Myw2`i}6{jGdYR+XZ#uG4rez#o}diZGO8 z2xT5~u>__3Ds=BL&9WpUa+uBOV!S)D$T9L;!o}soi$-P(QO2)AIItXj?x2Vg>wo@E B(is2% diff --git a/source-linux/translations/friendiqa-hu.ts b/source-linux/translations/friendiqa-hu.ts index a1a88a0..6afd3d0 100644 --- a/source-linux/translations/friendiqa-hu.ts +++ b/source-linux/translations/friendiqa-hu.ts @@ -396,7 +396,7 @@ Approve - Jóváhagyja + Jóváhagyás @@ -406,7 +406,7 @@ Ignore - Ne törődj a + Mellőzés @@ -754,7 +754,7 @@ Drop your Content here. - Tegye le itt a Tartalmát. + Ejtse ide a tartalmat.