new version with hashtags
This commit is contained in:
parent
d81ad52031
commit
56bdb80ea0
47 changed files with 1424 additions and 825 deletions
|
@ -44,17 +44,6 @@ Rectangle {
|
|||
y:1
|
||||
color: "white"
|
||||
|
||||
// function showContactdetails(contact){
|
||||
// var component = Qt.createComponent("qrc:/qml/contactqml/ContactDetailsComponent.qml");
|
||||
// if(contact.isFriend){
|
||||
// friendsTabView.currentIndex=1;
|
||||
// var contactDetails = component.createObject(friendstab,{"contact": contact})
|
||||
// }
|
||||
// else{friendsTabView.currentIndex=2;
|
||||
// var contactDetails = component.createObject(friendstab,{"contact": contact})
|
||||
// }
|
||||
// }
|
||||
|
||||
function showContactdetails(contact){
|
||||
rootstack.currentIndex=0;
|
||||
bar.currentIndex=0;
|
||||
|
@ -85,18 +74,22 @@ Rectangle {
|
|||
TabButton {
|
||||
text: qsTr("Me")
|
||||
font.pixelSize: 2*mm
|
||||
height: 7*mm
|
||||
}
|
||||
TabButton {
|
||||
text: qsTr("Friends")
|
||||
font.pixelSize: 2*mm
|
||||
height: 7*mm
|
||||
}
|
||||
TabButton {
|
||||
text: qsTr("Contacts")
|
||||
font.pixelSize: 2*mm
|
||||
height: 7*mm
|
||||
}
|
||||
TabButton {
|
||||
text: qsTr("Groups")
|
||||
font.pixelSize: 2*mm
|
||||
height: 7*mm
|
||||
}
|
||||
}
|
||||
StackLayout{
|
||||
|
@ -119,23 +112,7 @@ Rectangle {
|
|||
}
|
||||
else if (currentIndex==3){groupsSignal(root.login.username)}
|
||||
}
|
||||
// style: TabViewStyle {
|
||||
// frameOverlap: 1
|
||||
// tab: Rectangle {
|
||||
// color: "white"
|
||||
// implicitWidth: root.width/4-2*mm
|
||||
// implicitHeight: 4*mm
|
||||
// Text { id: text
|
||||
// anchors.centerIn: parent
|
||||
// text: styleData.title
|
||||
// color: "dark grey"
|
||||
// font.pixelSize:2.5*mm
|
||||
// font.bold: styleData.selected
|
||||
// }
|
||||
// }
|
||||
// frame: Rectangle { color: "light grey" }
|
||||
// tabsAlignment:Qt.AlignHCenter
|
||||
// }
|
||||
|
||||
|
||||
Item{
|
||||
id:profileGridTab
|
||||
|
@ -170,7 +147,7 @@ Rectangle {
|
|||
}
|
||||
Connections{
|
||||
target:xhr
|
||||
onDownloaded:{
|
||||
function onDownloaded(type,url,filename,i){
|
||||
if(type=="contactlist"){
|
||||
//print(url+" "+filename+" "+i)
|
||||
friendsGridTab.currentContact=i+1;
|
||||
|
@ -277,6 +254,7 @@ Rectangle {
|
|||
y:cleanButton.height+2*mm
|
||||
width:contactsGridTab.width-2*mm
|
||||
height:contactsGridTab.height-cleanButton.height-2*mm
|
||||
spacing: 2
|
||||
clip: true
|
||||
function processContactSelection(contactobject){showContactdetails(contactobject)}
|
||||
//add: Transition {
|
||||
|
@ -324,8 +302,8 @@ Rectangle {
|
|||
|
||||
Connections{
|
||||
target:xhr
|
||||
onError:{print(data)}//if (data=="image"){Helperjs.showMessage()}}
|
||||
onSuccess:{
|
||||
function onError(data,url,api,code){print(data)}//if (data=="image"){Helperjs.showMessage()}}
|
||||
function onSuccess(data,api){
|
||||
Newsjs.requestGroups(root.login,root.db,root,function(){
|
||||
showGroups(root.login.username)});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue