[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33953 - gnunet-qt/SecureShare/qml
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33953 - gnunet-qt/SecureShare/qml |
Date: |
Thu, 10 Jul 2014 22:52:52 +0200 |
Author: tg
Date: 2014-07-10 22:52:52 +0200 (Thu, 10 Jul 2014)
New Revision: 33953
Added:
gnunet-qt/SecureShare/qml/Profile.qml
gnunet-qt/SecureShare/qml/ThreadChat.qml
Removed:
gnunet-qt/SecureShare/qml/profile.qml
gnunet-qt/SecureShare/qml/threadChat.qml
Log:
fix qml filenames
Copied: gnunet-qt/SecureShare/qml/Profile.qml (from rev 33952,
gnunet-qt/SecureShare/qml/profile.qml)
===================================================================
--- gnunet-qt/SecureShare/qml/Profile.qml (rev 0)
+++ gnunet-qt/SecureShare/qml/Profile.qml 2014-07-10 20:52:52 UTC (rev
33953)
@@ -0,0 +1,529 @@
+import QtQuick 2.1
+import QtQuick.Window 2.1
+import QtQuick.Controls 1.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls.Styles 1.1
+
+import Psyc 1.0
+
+Window {
+ id: profileWnd
+ width: 1000
+ height: 700
+ color: "white"
+ title: "Profile"
+
+
+ FontLoader { id: bebasFont; source: "fonts/BebasNeue.otf" }
+ FontLoader { id: ubuntuFont; source: "fonts/Ubuntu-R.ttf" }
+ FontLoader { id: ubuntuBIFont; source: "fonts/Ubuntu-BI.ttf" }
+ FontLoader { id: ubuntuBFont; source: "fonts/Ubuntu-B.ttf" }
+ FontLoader { id: ubuntuLFont; source: "fonts/Ubuntu-L.ttf" }
+
+
+
+ QtObject {
+ id: person
+ property string name : "Maria da Silva"
+ property string nick : "Bailadora"
+ property string address : "1243 Your Sr. Town, XX 54321"
+ property string telephone : "(555)123-4567"
+ property string site : "mysite.com"
+ property string email : "address@hidden"
+ property string image: "images/demo/baila.jpg"
+ property string description: "Augusta Ada King, Countess of Lovelace,
born Augusta Ada Byron and now commonly known as Ada Lovelace, was an English
mathematician and writer chiefly known for her work on Charles Babbage's early
mechanical general-purpose computer, the Analytical Engine."
+ property var extraInfo :
+ ListModel {
+ id: extraInfoModel
+
+ ListElement {
+ name: "Favorite Animals"
+ value: "Dogs and Cats"
+ }
+ ListElement {
+ name: "Favorite Music"
+ value: "Madonna; Psy"
+ }
+ ListElement {
+ name: "Language"
+ value: "Portuguese"
+ }
+ ListElement {
+ name: "Wedding date"
+ value: "27/11/1989"
+ }
+ }
+ property var community :
+ ListModel {
+ id: communityModel
+
+ ListElement {
+ name: "GNUnet"
+ image: "images/demo/gnunet.png"
+ }
+ ListElement {
+ name: "PSYC"
+ image: "images/demo/secushare.png"
+ }
+ ListElement {
+ name: "Brazil"
+ image: "images/demo/brazil.png"
+ }
+ ListElement {
+ name: "lynX Fanclub"
+ image: "images/demo/arp.jpg"
+ }
+ }
+ }
+
+ RowLayout{
+ anchors.fill: parent
+
+ Rectangle{
+ Layout.fillHeight: true
+ Layout.minimumWidth: 290
+ Layout.maximumWidth: 290
+ color: "white"
+
+ Rectangle{
+ id: profilePhotoRectangle
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.topMargin: 20
+ anchors.leftMargin: 20
+ width: 250; height: 380
+ color: "#CBCBCB"
+
+ Image {
+ id: profilePhoto
+ anchors.fill: parent
+ anchors.margins: 1
+ source: person.image
+
+ fillMode: Image.PreserveAspectCrop
+
+ }
+ }
+
+
+ Label{
+ id: nickLine
+ anchors.top: profilePhotoRectangle.bottom
+ anchors.topMargin: 15
+ anchors.left: profilePhotoRectangle.left
+ anchors.leftMargin: 15
+ text: person.nick
+ font.pointSize: 22
+ font.family: ubuntuFont.name
+ }
+ Label{
+ id: phraseLine
+ anchors.top: nickLine.bottom
+ anchors.left: nickLine.left
+ text: person.nick
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+
+ Row{
+ id:addressLine
+ anchors.top: phraseLine.bottom
+ anchors.topMargin: 10
+ anchors.left: phraseLine.left
+ spacing: 5
+
+ Image {
+ id: addressIcon
+ source: "images/location.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.address
+ anchors.verticalCenter: addressIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+
+ Row{
+ id:phoneLine
+
+ anchors.top: addressLine.bottom
+ anchors.topMargin: 10
+ anchors.left: addressLine.left
+ spacing: 5
+
+ Image {
+ id: phoneIcon
+ source: "images/phone.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.telephone
+ anchors.verticalCenter: phoneIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+ Row{
+ id:websiteLine
+
+ anchors.top: phoneLine.bottom
+ anchors.topMargin: 10
+ anchors.left: phoneLine.left
+ spacing: 5
+
+ Image {
+ id: websiteIcon
+ source: "images/home.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.site
+ anchors.verticalCenter: websiteIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+ Row{
+ id:emailLine
+
+ anchors.top: websiteLine.bottom
+ anchors.topMargin: 10
+ anchors.left: websiteLine.left
+ spacing: 5
+
+ Image {
+ id: emailIcon
+ source: "images/email.png"
+ fillMode: Image.PreserveAspectFit
+ height: 15
+ width: 15
+ }
+
+ Label{
+
+ text: person.email
+ anchors.verticalCenter: emailIcon.verticalCenter
+ font.pointSize: 12
+ font.family: ubuntuFont.name
+ }
+ }
+
+ }
+
+ Rectangle{
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ color: "white"
+
+
+
+ Label {
+ id: title
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.right: trustRect.left
+
+ anchors.topMargin: 20
+ height: 60
+ width: 200
+ text: "About " + person.name
+ font.pixelSize: 32
+ font.family: ubuntuFont.name
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ }
+
+ Rectangle{
+ id: trustRect
+
+ anchors.top: parent.top
+ anchors.topMargin: 20
+ anchors.right: parent.right
+ anchors.rightMargin: 20
+
+ width: 150
+ height: 50
+ color: "#CBCBCB"
+
+ Label{
+ id: trustLabel
+ text: "Trust level:"
+
+ }
+
+ Slider {
+ id: slider1
+ anchors.top : trustLabel.bottom
+ value: 0.5
+ style: SliderStyle { }
+ implicitWidth: 150
+ }
+
+
+ }
+
+
+
+
+ Rectangle{
+ id: descriptionRect
+ anchors.top: title.bottom
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.rightMargin: 10
+ height: descriptionText.contentHeight +20
+
+ color: "#f1f1f1"
+
+ Label{
+ id: descriptionText
+ anchors.fill: parent
+ anchors.leftMargin: 20
+ anchors.rightMargin: 20
+ anchors.topMargin: 10
+ wrapMode : Text.Wrap
+ //elide : Text.ElideRight
+ color: "black"
+ font.family: ubuntuLFont.name
+ font.pixelSize: 16
+ //font.letterSpacing : -2
+
+ text: person.description
+ }
+ }
+
+ ListView {
+ id: moreList
+ anchors.top: descriptionRect.bottom
+
+ anchors.topMargin: 20
+
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.rightMargin: 20
+ state: "HIDDEN"
+
+ clip: true
+
+
+ model: person.extraInfo
+ delegate: Rectangle {
+ Rectangle{
+ color: "#DDDDDD"
+ height : 1
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.right: parent.right
+ }
+
+ objectName: "delegate"
+ width: parent.width
+ height: 25
+ color: index % 2 ? "#F9F9F9" : "white"
+
+ Row{
+ anchors.verticalCenter: parent.verticalCenter
+ spacing: 5
+
+ Label {
+ color: "black"
+ text: name + ": "
+ font.family: ubuntuBFont.name
+ font.pixelSize: 14
+ }
+ Label {
+ color: "black"
+ text: value
+ font.family: ubuntuFont.name
+ font.pixelSize: 14
+ }
+
+ }
+
+
+ }
+
+ Behavior on height { PropertyAnimation {} }
+
+ states: [
+ State {
+ name: "SHOWN"
+ PropertyChanges { target: moreList; height: 110;
visible:true}
+ },
+ State {
+ name: "HIDDEN"
+ PropertyChanges { target: moreList; height: 0;
visible:false}
+ }
+ ]
+
+ }
+
+ Label{
+ id: showmoreLabel
+ anchors.top:moreList.bottom
+ anchors.topMargin: 10
+ text:"Show more information..."
+ color: "blue"
+
+ MouseArea{
+ id: ma
+ anchors.fill: parent
+ hoverEnabled: true
+
+
+ onContainsMouseChanged: {
+ if(containsMouse){
+ showmoreLabel.font.underline = true
+ cursorShape: Qt.PointingHandCursor
+ }
+ else
+ {
+ showmoreLabel.font.underline = false
+ cursorShape: Qt.ArrowCursor
+ }
+ }
+
+ onClicked: {
+ if(moreList.state == "HIDDEN")
+ {
+ moreList.state = "SHOWN"
+ showmoreLabel.text = "Hide more information..."
+ }
+ else
+ {
+ moreList.state = "HIDDEN"
+ showmoreLabel.text = "Show more information..."
+ }
+ }
+
+ }
+ }
+
+ Label{
+ id: channelsLabel
+ anchors.top:showmoreLabel.bottom
+ anchors.topMargin: 10
+ text: "Channels"
+ font.family: ubuntuLFont.name
+ font.pixelSize: 16
+ }
+ Rectangle{
+ color: "#DDDDDD"
+ height : 1
+ anchors.top: channelsLabel.bottom
+ anchors.topMargin: 5
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.rightMargin: 5
+ }
+
+ ListView {
+ id: channelsList
+ anchors.top: channelsLabel.bottom
+
+ anchors.topMargin: 20
+
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.rightMargin: 20
+
+ anchors.bottom: parent.bottom
+
+ clip: true
+
+ model: person.community
+ delegate: Rectangle {
+
+ id: rectItem
+ objectName: "delegate"
+ width: parent.width
+ height: 50
+
+
+
+ Image {
+ id: channelImage
+ source: image
+ fillMode: Image.PreserveAspectCrop
+ height: 45
+ width: 45
+ }
+ Label {
+ color: "black"
+ text: name
+ anchors.left: channelImage.right
+ anchors.leftMargin: 10
+ font.family: ubuntuFont.name
+ font.pixelSize: 16
+ }
+
+ Rectangle{
+ id:buttonRect
+ border.color: "#A7C9A1"
+ border.width: 1
+ height: 30
+ width: 80
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.rightMargin: 10
+ visible: false
+
+ Text {
+ id: labelEnter
+ anchors.centerIn: parent
+ text: qsTr("Enter")
+ color: "#81A87B"
+ }
+ }
+
+ MouseArea{
+ id: maItem
+ anchors.fill: parent
+ hoverEnabled: true
+
+
+ onContainsMouseChanged: {
+ if(containsMouse){
+ rectItem.color = "#F9F9F9"
+ buttonRect.visible = true
+ }
+ else
+ {
+ rectItem.color = "white"
+ buttonRect.visible = false
+ }
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+
+
+ }
+
+
+ }
+}
Copied: gnunet-qt/SecureShare/qml/ThreadChat.qml (from rev 33952,
gnunet-qt/SecureShare/qml/threadChat.qml)
===================================================================
--- gnunet-qt/SecureShare/qml/ThreadChat.qml (rev 0)
+++ gnunet-qt/SecureShare/qml/ThreadChat.qml 2014-07-10 20:52:52 UTC (rev
33953)
@@ -0,0 +1,644 @@
+import QtQuick 2.1
+import QtQuick.Window 2.1
+import QtQuick.Controls 1.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls.Styles 1.2
+
+import Psyc 1.0
+
+Window {
+ id: threadChatWnd
+ width: 1000
+ height: 700
+ color: "white"
+ title: "All conversations"
+
+ property var selectedItem: null
+
+ FontLoader { id: bebasFont; source: "fonts/BebasNeue.otf" }
+ FontLoader { id: ubuntuFont; source: "fonts/Ubuntu-R.ttf" }
+ FontLoader { id: ubuntuBIFont; source: "fonts/Ubuntu-BI.ttf" }
+
+
+
+
+
+
+ RowLayout{
+ anchors.fill: parent
+
+ ColumnLayout{
+
+ height: parent.height
+ width: 230
+
+
+ Image {
+ Layout.maximumWidth: 180
+ id: logoSecureShare
+ anchors.horizontalCenter: parent.horizontalCenter
+ width: 16
+ height: 100
+ source: "images/logo.png"
+ fillMode: Image.PreserveAspectFit
+ }
+
+ Rectangle{
+ Layout.fillHeight: true
+ width: 200;
+ anchors.left: parent.left
+ anchors.leftMargin: 8
+
+
+
+ color: "#EB0C60"
+
+
+
+ Rectangle{
+ id: topicsTitle
+ color: "white"
+ height: 30
+
+
+
+ anchors.top: parent.top
+ anchors.topMargin: 15
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.right: parent.right
+ anchors.rightMargin: 5
+
+ Text {
+ id: topicsTitleText
+ text: qsTr("TOPICS")
+ anchors.centerIn: parent
+ font.pointSize: 22
+ //font.bold :true
+ font.family: bebasFont.name
+ }
+ }
+
+ ListModel {
+ id: topicsModel
+ ListElement {
+ name: "Things you knew this morning"
+ image: "images/demo/Conffeti-background.jpg"
+ }
+ ListElement {
+ name: "Did you see the NSA graffiti"
+ image: "images/demo/ubuntu-wallpaper.jpg"
+ }
+ ListElement {
+ name: "Popcorn"
+ image: "images/demo/popcorn-background.jpg"
+ }
+ }
+
+
+ ListView {
+ id: topicList
+ anchors.top: topicsTitle.bottom
+ anchors.topMargin: 30
+ anchors.bottom: parent.bottom
+ anchors.right: parent.right
+
+ anchors.left: parent.left
+ anchors.leftMargin: 15
+
+ spacing: 15
+ clip: true
+
+ Component {
+ id: topicsDelegate
+
+
+ Item {
+ id: wrapper
+ width: wrapper.ListView.isCurrentItem ? 186 : 170
+ height: 170
+
+
+
+
+ Rectangle {
+ id: wrapperInside
+ anchors.fill: parent
+ anchors.topMargin: 20
+ opacity: 1.0
+
+ color: wrapper.ListView.isCurrentItem ?
"white" : "black"
+
+ Image {
+ id: threadMiniImage
+ source: image
+ fillMode: Image.PreserveAspectCrop
+ height: 60
+ width: 160
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+ anchors.topMargin: 5
+
+ }
+
+ Text {
+ anchors.top: threadMiniImage.bottom
+ id: contactInfo
+ text: name
+ width: 160
+ height: 80
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: wrapper.ListView.isCurrentItem ?
"black" : "white"
+
+ font.family: ubuntuBIFont.name
+ font.pointSize: 18
+ font.letterSpacing : -2
+ }
+
+
+
+
+
+ MouseArea{
+ id:ma
+ anchors.fill: parent
+ onClicked: {
+ topicList.currentIndex = index
+ }
+ }
+ }
+ Rectangle{
+
+ id:indicator
+
+ radius: 35
+ color: "#EFC208"
+ anchors.left: wrapperInside.left
+ anchors.leftMargin: 125
+ anchors.top: parent.top
+ anchors.topMargin: 10
+ border.color: "black"
+ border.width: 3
+ height: 35
+ width: 35
+ visible: wrapper.ListView.isCurrentItem ?
false: true
+
+
+ Text {
+ anchors.centerIn: parent
+ id: numberNewTopics
+ text: "12"
+ font.family: ubuntuFont.name
+ font.pointSize: 14
+
+ }
+ }
+
+ }
+ }
+
+ model: topicsModel
+ delegate: topicsDelegate
+ focus: true
+
+ onCurrentIndexChanged: {
+ selectedItem = model.get(currentIndex)
+ }
+ }
+
+
+
+ }
+
+
+ }
+
+
+ ColumnLayout{
+ Layout.fillWidth: true
+
+
+ Rectangle{
+ anchors.fill: parent
+ anchors.leftMargin: 20
+ anchors.rightMargin: 20
+ anchors.topMargin: 20
+ color: "white"
+
+
+ Image {
+ id: topicBackgroundImage
+ anchors.fill: parent
+ opacity: 0.5
+ fillMode: Image.Tile
+ clip: true
+ source: selectedItem.image
+ }
+
+ Rectangle{
+ id: forumTitleRectangle
+ color: "black"
+ height: 50
+ width: 500
+ opacity: 0.9
+ anchors.top: parent.top
+ anchors.topMargin: 20
+ Text {
+ id: forumTitleText
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.left: parent.left
+ anchors.leftMargin: 20
+ text: qsTr("Forum for clandestine urban art")
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: "white"
+ //font.bold: true
+ font.pointSize: 22
+ font.family: bebasFont.name
+ }
+ }
+
+
+ ListModel {
+ id: messagesModel
+ ListElement {
+ name: "Bailadora"
+ image: "images/demo/baila.jpg"
+ messagecontent: "Did you see that NSA graffiti on the
corner of Chaussestr. and Torstr. not only does it look amazing, it's algo such
a strong message !!"
+ }
+ ListElement {
+ name: "La Doll"
+ image: "images/demo/doll.jpg"
+
+ messagecontent: "Oh yeah, totally awesome! Was about
time somebody said that! And with style!"
+ }
+ ListElement {
+ name: "Arpeggio"
+ image: "images/demo/arp.jpg"
+ messagecontent: "What! What ? Guess I'll take an extra
detour on the bike to see that!"
+ }
+
+ }
+
+ ListView {
+ id: messagesList
+ anchors.top: forumTitleRectangle.bottom
+ anchors.topMargin: 30
+ anchors.bottom: replyField.top
+ anchors.right: parent.right
+
+ anchors.left: parent.left
+ anchors.leftMargin: 15
+
+ spacing: 15
+ clip: true
+
+ Component {
+ id: messagesDelegate
+ Item {
+ id: wrapper
+ width: parent.width - 100
+ height: (contentWrapper.height >
userWrapper.height) ? contentWrapper.height : userWrapper.height
+
+
+
+ Rectangle {
+ id: userWrapper
+ width: (index == 0) ? 140 : 90
+ height: (index == 0) ? 140 : 90
+ anchors.left: parent.left
+ anchors.leftMargin: (index == 0) ? 0 : 50
+
+ color: "black"
+ opacity: 1.0
+
+ Image {
+ id: messageMiniImage
+ source: image
+ fillMode: Image.PreserveAspectCrop
+ height: (index == 0) ? 100 : 60
+ width: (index == 0) ? 130 : 80
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+ anchors.topMargin: 5
+
+ }
+
+ Text {
+ anchors.top: messageMiniImage.bottom
+ id: contactText
+ text: name
+
+
+ width: (index == 0) ? 135 : 85
+ height: 30
+ anchors.left: parent.left
+ anchors.leftMargin: 10
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: "white"
+ font.family: ubuntuBIFont.name
+ font.pointSize: (index == 0) ? 16 : 12
+ font.letterSpacing : -2
+
+ }
+
+
+ MouseArea{
+ id:ma
+ anchors.fill: parent
+ onClicked: {
+ messagesList.currentIndex = index
+ }
+ }
+ }
+
+
+ Rectangle{
+
+ id: contentWrapper
+
+ anchors.left: userWrapper.right
+ anchors.right: parent.right
+ anchors.top: parent.top
+ anchors.leftMargin: 10
+ anchors.rightMargin: 10
+ anchors.topMargin: 0
+
+ height: content.contentHeight + 20
+
+
+
+
+ Text {
+ id: content
+ anchors.fill: parent
+ anchors.margins: 10
+
+ text: messagecontent
+ font.pointSize: 12
+ wrapMode : Text.Wrap
+
+ font.family: ubuntuFont.name
+
+ }
+ }
+
+
+ }
+ }
+
+ model: messagesModel
+ delegate: messagesDelegate
+
+ }
+
+ Item{
+ id: replyField
+ height: 70
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.bottom: parent.bottom
+
+
+
+ Rectangle {
+ id: userWrapper
+ width: 60
+ height: 60
+ color: "black"
+ opacity: 1.0
+
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+
+
+ Image {
+ id: messageMiniImage
+ source: "images/demo/lynX.jpg"
+ fillMode: Image.PreserveAspectCrop
+ height: 40
+ width: 48
+ anchors.left: parent.left
+ anchors.top: parent.top
+ anchors.margins: 3
+
+ }
+
+ Text {
+ anchors.top: messageMiniImage.bottom
+ id: contactText
+ text: "lynX"
+ font.pointSize: 10
+ width: 55
+ height: 15
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: "white"
+
+ font.family: ubuntuBIFont.name
+ font.letterSpacing : -1
+ }
+
+
+ }
+
+
+
+ TextArea{
+
+ anchors.left: userWrapper.right
+ anchors.right: parent.right
+ anchors.top: userWrapper.top
+ anchors.bottom: userWrapper.bottom
+ anchors.rightMargin: 10
+ anchors.leftMargin: 10
+
+ }
+
+ /*Rectangle{
+ anchors.left: userWrapper.right
+ anchors.right: parent.right
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.leftMargin: 5
+
+ TextArea{
+
+ anchors.fill: parent
+ anchors.margins: 10
+
+ }
+
+ }*/
+
+
+ }
+
+
+ }
+
+
+
+
+
+
+
+
+ }
+
+
+ ColumnLayout{
+ Rectangle{
+ Layout.fillHeight: true
+ width: 200;
+ anchors.right: parent.right
+ anchors.rightMargin: 8
+ anchors.top: parent.top
+ anchors.topMargin: 20
+
+
+
+ color: "#EFC208"
+
+
+
+ Rectangle{
+ id: participantsTitle
+ color: "white"
+ height: 30
+
+
+
+ anchors.top: parent.top
+ anchors.topMargin: 15
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.right: parent.right
+ anchors.rightMargin: 5
+
+ Text {
+ id: participantsTitleText
+ text: qsTr("PARTICIPANTS")
+ anchors.centerIn: parent
+ font.pointSize: 22
+ //font.bold :true
+ font.family: bebasFont.name
+ }
+ }
+
+ ListModel {
+ id: participantsModel
+ ListElement {
+ name: "Bailadora"
+ image: "images/demo/baila.jpg"
+ }
+ ListElement {
+ name: "Arpeggio"
+ image: "images/demo/arp.jpg"
+ }
+ ListElement {
+ name: "La Doll"
+ image: "images/demo/doll.jpg"
+ }
+
+ ListElement {
+ name: "lynX"
+ image: "images/demo/lynX.jpg"
+ }
+ }
+
+
+ ListView {
+ id: participantsList
+ anchors.top: participantsTitle.bottom
+ anchors.topMargin: 30
+ anchors.bottom: parent.bottom
+ anchors.right: parent.right
+
+ anchors.left: parent.left
+ anchors.leftMargin: 15
+
+ spacing: 15
+ clip: true
+
+ Component {
+ id: participantsDelegate
+ Rectangle {
+ id: wrapper
+ width: 170
+ height: 150
+ color: ListView.isCurrentItem ? "white" : "black"
+
+ Image {
+ id: threadMiniImage
+ source: image
+ fillMode: Image.PreserveAspectCrop
+ height: 110
+ width: 160
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+ anchors.top: parent.top
+ anchors.topMargin: 5
+
+ }
+
+ Text {
+ anchors.top: threadMiniImage.bottom
+ id: contactInfo
+ text: name
+
+ width: 160
+ height: 40
+ anchors.left: parent.left
+ anchors.leftMargin: 5
+
+ wrapMode : Text.Wrap
+ elide : Text.ElideRight
+ color: wrapper.ListView.isCurrentItem ?
"black" : "white"
+
+ font.family: ubuntuBIFont.name
+ font.pointSize: 18
+ font.letterSpacing : -2
+
+ }
+
+
+ MouseArea{
+ id:ma
+ anchors.fill: parent
+ onClicked: {
+ participantsList.currentIndex = index
+ }
+ }
+ }
+ }
+
+ model: participantsModel
+ delegate: participantsDelegate
+ focus: true
+ }
+
+
+
+ }
+ }
+
+
+
+
+ }
+
+
+}
Deleted: gnunet-qt/SecureShare/qml/profile.qml
===================================================================
--- gnunet-qt/SecureShare/qml/profile.qml 2014-07-10 20:27:53 UTC (rev
33952)
+++ gnunet-qt/SecureShare/qml/profile.qml 2014-07-10 20:52:52 UTC (rev
33953)
@@ -1,529 +0,0 @@
-import QtQuick 2.1
-import QtQuick.Window 2.1
-import QtQuick.Controls 1.2
-import QtQuick.Layouts 1.1
-import QtQuick.Controls.Styles 1.1
-
-import Psyc 1.0
-
-Window {
- id: profileWnd
- width: 1000
- height: 700
- color: "white"
- title: "Profile"
-
-
- FontLoader { id: bebasFont; source: "fonts/BebasNeue.otf" }
- FontLoader { id: ubuntuFont; source: "fonts/Ubuntu-R.ttf" }
- FontLoader { id: ubuntuBIFont; source: "fonts/Ubuntu-BI.ttf" }
- FontLoader { id: ubuntuBFont; source: "fonts/Ubuntu-B.ttf" }
- FontLoader { id: ubuntuLFont; source: "fonts/Ubuntu-L.ttf" }
-
-
-
- QtObject {
- id: person
- property string name : "Maria da Silva"
- property string nick : "Bailadora"
- property string address : "1243 Your Sr. Town, XX 54321"
- property string telephone : "(555)123-4567"
- property string site : "mysite.com"
- property string email : "address@hidden"
- property string image: "images/demo/baila.jpg"
- property string description: "Augusta Ada King, Countess of Lovelace,
born Augusta Ada Byron and now commonly known as Ada Lovelace, was an English
mathematician and writer chiefly known for her work on Charles Babbage's early
mechanical general-purpose computer, the Analytical Engine."
- property var extraInfo :
- ListModel {
- id: extraInfoModel
-
- ListElement {
- name: "Favorite Animals"
- value: "Dogs and Cats"
- }
- ListElement {
- name: "Favorite Music"
- value: "Madonna; Psy"
- }
- ListElement {
- name: "Language"
- value: "Portuguese"
- }
- ListElement {
- name: "Wedding date"
- value: "27/11/1989"
- }
- }
- property var community :
- ListModel {
- id: communityModel
-
- ListElement {
- name: "GNUnet"
- image: "images/demo/gnunet.png"
- }
- ListElement {
- name: "PSYC"
- image: "images/demo/secushare.png"
- }
- ListElement {
- name: "Brazil"
- image: "images/demo/brazil.png"
- }
- ListElement {
- name: "lynX Fanclub"
- image: "images/demo/arp.jpg"
- }
- }
- }
-
- RowLayout{
- anchors.fill: parent
-
- Rectangle{
- Layout.fillHeight: true
- Layout.minimumWidth: 290
- Layout.maximumWidth: 290
- color: "white"
-
- Rectangle{
- id: profilePhotoRectangle
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.topMargin: 20
- anchors.leftMargin: 20
- width: 250; height: 380
- color: "#CBCBCB"
-
- Image {
- id: profilePhoto
- anchors.fill: parent
- anchors.margins: 1
- source: person.image
-
- fillMode: Image.PreserveAspectCrop
-
- }
- }
-
-
- Label{
- id: nickLine
- anchors.top: profilePhotoRectangle.bottom
- anchors.topMargin: 15
- anchors.left: profilePhotoRectangle.left
- anchors.leftMargin: 15
- text: person.nick
- font.pointSize: 22
- font.family: ubuntuFont.name
- }
- Label{
- id: phraseLine
- anchors.top: nickLine.bottom
- anchors.left: nickLine.left
- text: person.nick
- font.pointSize: 12
- font.family: ubuntuFont.name
- }
-
- Row{
- id:addressLine
- anchors.top: phraseLine.bottom
- anchors.topMargin: 10
- anchors.left: phraseLine.left
- spacing: 5
-
- Image {
- id: addressIcon
- source: "images/location.png"
- fillMode: Image.PreserveAspectFit
- height: 15
- width: 15
- }
-
- Label{
-
- text: person.address
- anchors.verticalCenter: addressIcon.verticalCenter
- font.pointSize: 12
- font.family: ubuntuFont.name
- }
- }
-
-
- Row{
- id:phoneLine
-
- anchors.top: addressLine.bottom
- anchors.topMargin: 10
- anchors.left: addressLine.left
- spacing: 5
-
- Image {
- id: phoneIcon
- source: "images/phone.png"
- fillMode: Image.PreserveAspectFit
- height: 15
- width: 15
- }
-
- Label{
-
- text: person.telephone
- anchors.verticalCenter: phoneIcon.verticalCenter
- font.pointSize: 12
- font.family: ubuntuFont.name
- }
- }
-
- Row{
- id:websiteLine
-
- anchors.top: phoneLine.bottom
- anchors.topMargin: 10
- anchors.left: phoneLine.left
- spacing: 5
-
- Image {
- id: websiteIcon
- source: "images/home.png"
- fillMode: Image.PreserveAspectFit
- height: 15
- width: 15
- }
-
- Label{
-
- text: person.site
- anchors.verticalCenter: websiteIcon.verticalCenter
- font.pointSize: 12
- font.family: ubuntuFont.name
- }
- }
-
- Row{
- id:emailLine
-
- anchors.top: websiteLine.bottom
- anchors.topMargin: 10
- anchors.left: websiteLine.left
- spacing: 5
-
- Image {
- id: emailIcon
- source: "images/email.png"
- fillMode: Image.PreserveAspectFit
- height: 15
- width: 15
- }
-
- Label{
-
- text: person.email
- anchors.verticalCenter: emailIcon.verticalCenter
- font.pointSize: 12
- font.family: ubuntuFont.name
- }
- }
-
- }
-
- Rectangle{
- Layout.fillHeight: true
- Layout.fillWidth: true
- color: "white"
-
-
-
- Label {
- id: title
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.right: trustRect.left
-
- anchors.topMargin: 20
- height: 60
- width: 200
- text: "About " + person.name
- font.pixelSize: 32
- font.family: ubuntuFont.name
- wrapMode : Text.Wrap
- elide : Text.ElideRight
- }
-
- Rectangle{
- id: trustRect
-
- anchors.top: parent.top
- anchors.topMargin: 20
- anchors.right: parent.right
- anchors.rightMargin: 20
-
- width: 150
- height: 50
- color: "#CBCBCB"
-
- Label{
- id: trustLabel
- text: "Trust level:"
-
- }
-
- Slider {
- id: slider1
- anchors.top : trustLabel.bottom
- value: 0.5
- style: SliderStyle { }
- implicitWidth: 150
- }
-
-
- }
-
-
-
-
- Rectangle{
- id: descriptionRect
- anchors.top: title.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.rightMargin: 10
- height: descriptionText.contentHeight +20
-
- color: "#f1f1f1"
-
- Label{
- id: descriptionText
- anchors.fill: parent
- anchors.leftMargin: 20
- anchors.rightMargin: 20
- anchors.topMargin: 10
- wrapMode : Text.Wrap
- //elide : Text.ElideRight
- color: "black"
- font.family: ubuntuLFont.name
- font.pixelSize: 16
- //font.letterSpacing : -2
-
- text: person.description
- }
- }
-
- ListView {
- id: moreList
- anchors.top: descriptionRect.bottom
-
- anchors.topMargin: 20
-
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.rightMargin: 20
- state: "HIDDEN"
-
- clip: true
-
-
- model: person.extraInfo
- delegate: Rectangle {
- Rectangle{
- color: "#DDDDDD"
- height : 1
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.right: parent.right
- }
-
- objectName: "delegate"
- width: parent.width
- height: 25
- color: index % 2 ? "#F9F9F9" : "white"
-
- Row{
- anchors.verticalCenter: parent.verticalCenter
- spacing: 5
-
- Label {
- color: "black"
- text: name + ": "
- font.family: ubuntuBFont.name
- font.pixelSize: 14
- }
- Label {
- color: "black"
- text: value
- font.family: ubuntuFont.name
- font.pixelSize: 14
- }
-
- }
-
-
- }
-
- Behavior on height { PropertyAnimation {} }
-
- states: [
- State {
- name: "SHOWN"
- PropertyChanges { target: moreList; height: 110;
visible:true}
- },
- State {
- name: "HIDDEN"
- PropertyChanges { target: moreList; height: 0;
visible:false}
- }
- ]
-
- }
-
- Label{
- id: showmoreLabel
- anchors.top:moreList.bottom
- anchors.topMargin: 10
- text:"Show more information..."
- color: "blue"
-
- MouseArea{
- id: ma
- anchors.fill: parent
- hoverEnabled: true
-
-
- onContainsMouseChanged: {
- if(containsMouse){
- showmoreLabel.font.underline = true
- cursorShape: Qt.PointingHandCursor
- }
- else
- {
- showmoreLabel.font.underline = false
- cursorShape: Qt.ArrowCursor
- }
- }
-
- onClicked: {
- if(moreList.state == "HIDDEN")
- {
- moreList.state = "SHOWN"
- showmoreLabel.text = "Hide more information..."
- }
- else
- {
- moreList.state = "HIDDEN"
- showmoreLabel.text = "Show more information..."
- }
- }
-
- }
- }
-
- Label{
- id: channelsLabel
- anchors.top:showmoreLabel.bottom
- anchors.topMargin: 10
- text: "Channels"
- font.family: ubuntuLFont.name
- font.pixelSize: 16
- }
- Rectangle{
- color: "#DDDDDD"
- height : 1
- anchors.top: channelsLabel.bottom
- anchors.topMargin: 5
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.rightMargin: 5
- }
-
- ListView {
- id: channelsList
- anchors.top: channelsLabel.bottom
-
- anchors.topMargin: 20
-
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.rightMargin: 20
-
- anchors.bottom: parent.bottom
-
- clip: true
-
- model: person.community
- delegate: Rectangle {
-
- id: rectItem
- objectName: "delegate"
- width: parent.width
- height: 50
-
-
-
- Image {
- id: channelImage
- source: image
- fillMode: Image.PreserveAspectCrop
- height: 45
- width: 45
- }
- Label {
- color: "black"
- text: name
- anchors.left: channelImage.right
- anchors.leftMargin: 10
- font.family: ubuntuFont.name
- font.pixelSize: 16
- }
-
- Rectangle{
- id:buttonRect
- border.color: "#A7C9A1"
- border.width: 1
- height: 30
- width: 80
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
- anchors.rightMargin: 10
- visible: false
-
- Text {
- id: labelEnter
- anchors.centerIn: parent
- text: qsTr("Enter")
- color: "#81A87B"
- }
- }
-
- MouseArea{
- id: maItem
- anchors.fill: parent
- hoverEnabled: true
-
-
- onContainsMouseChanged: {
- if(containsMouse){
- rectItem.color = "#F9F9F9"
- buttonRect.visible = true
- }
- else
- {
- rectItem.color = "white"
- buttonRect.visible = false
- }
- }
-
- }
-
-
- }
-
-
- }
-
-
-
-
- }
-
-
- }
-}
Deleted: gnunet-qt/SecureShare/qml/threadChat.qml
===================================================================
--- gnunet-qt/SecureShare/qml/threadChat.qml 2014-07-10 20:27:53 UTC (rev
33952)
+++ gnunet-qt/SecureShare/qml/threadChat.qml 2014-07-10 20:52:52 UTC (rev
33953)
@@ -1,644 +0,0 @@
-import QtQuick 2.1
-import QtQuick.Window 2.1
-import QtQuick.Controls 1.2
-import QtQuick.Layouts 1.1
-import QtQuick.Controls.Styles 1.2
-
-import Psyc 1.0
-
-Window {
- id: threadChatWnd
- width: 1000
- height: 700
- color: "white"
- title: "All conversations"
-
- property var selectedItem: null
-
- FontLoader { id: bebasFont; source: "fonts/BebasNeue.otf" }
- FontLoader { id: ubuntuFont; source: "fonts/Ubuntu-R.ttf" }
- FontLoader { id: ubuntuBIFont; source: "fonts/Ubuntu-BI.ttf" }
-
-
-
-
-
-
- RowLayout{
- anchors.fill: parent
-
- ColumnLayout{
-
- height: parent.height
- width: 230
-
-
- Image {
- Layout.maximumWidth: 180
- id: logoSecureShare
- anchors.horizontalCenter: parent.horizontalCenter
- width: 16
- height: 100
- source: "images/logo.png"
- fillMode: Image.PreserveAspectFit
- }
-
- Rectangle{
- Layout.fillHeight: true
- width: 200;
- anchors.left: parent.left
- anchors.leftMargin: 8
-
-
-
- color: "#EB0C60"
-
-
-
- Rectangle{
- id: topicsTitle
- color: "white"
- height: 30
-
-
-
- anchors.top: parent.top
- anchors.topMargin: 15
- anchors.left: parent.left
- anchors.leftMargin: 5
- anchors.right: parent.right
- anchors.rightMargin: 5
-
- Text {
- id: topicsTitleText
- text: qsTr("TOPICS")
- anchors.centerIn: parent
- font.pointSize: 22
- //font.bold :true
- font.family: bebasFont.name
- }
- }
-
- ListModel {
- id: topicsModel
- ListElement {
- name: "Things you knew this morning"
- image: "images/demo/Conffeti-background.jpg"
- }
- ListElement {
- name: "Did you see the NSA graffiti"
- image: "images/demo/ubuntu-wallpaper.jpg"
- }
- ListElement {
- name: "Popcorn"
- image: "images/demo/popcorn-background.jpg"
- }
- }
-
-
- ListView {
- id: topicList
- anchors.top: topicsTitle.bottom
- anchors.topMargin: 30
- anchors.bottom: parent.bottom
- anchors.right: parent.right
-
- anchors.left: parent.left
- anchors.leftMargin: 15
-
- spacing: 15
- clip: true
-
- Component {
- id: topicsDelegate
-
-
- Item {
- id: wrapper
- width: wrapper.ListView.isCurrentItem ? 186 : 170
- height: 170
-
-
-
-
- Rectangle {
- id: wrapperInside
- anchors.fill: parent
- anchors.topMargin: 20
- opacity: 1.0
-
- color: wrapper.ListView.isCurrentItem ?
"white" : "black"
-
- Image {
- id: threadMiniImage
- source: image
- fillMode: Image.PreserveAspectCrop
- height: 60
- width: 160
- anchors.left: parent.left
- anchors.leftMargin: 5
- anchors.top: parent.top
- anchors.topMargin: 5
-
- }
-
- Text {
- anchors.top: threadMiniImage.bottom
- id: contactInfo
- text: name
- width: 160
- height: 80
- anchors.left: parent.left
- anchors.leftMargin: 5
-
- wrapMode : Text.Wrap
- elide : Text.ElideRight
- color: wrapper.ListView.isCurrentItem ?
"black" : "white"
-
- font.family: ubuntuBIFont.name
- font.pointSize: 18
- font.letterSpacing : -2
- }
-
-
-
-
-
- MouseArea{
- id:ma
- anchors.fill: parent
- onClicked: {
- topicList.currentIndex = index
- }
- }
- }
- Rectangle{
-
- id:indicator
-
- radius: 35
- color: "#EFC208"
- anchors.left: wrapperInside.left
- anchors.leftMargin: 125
- anchors.top: parent.top
- anchors.topMargin: 10
- border.color: "black"
- border.width: 3
- height: 35
- width: 35
- visible: wrapper.ListView.isCurrentItem ?
false: true
-
-
- Text {
- anchors.centerIn: parent
- id: numberNewTopics
- text: "12"
- font.family: ubuntuFont.name
- font.pointSize: 14
-
- }
- }
-
- }
- }
-
- model: topicsModel
- delegate: topicsDelegate
- focus: true
-
- onCurrentIndexChanged: {
- selectedItem = model.get(currentIndex)
- }
- }
-
-
-
- }
-
-
- }
-
-
- ColumnLayout{
- Layout.fillWidth: true
-
-
- Rectangle{
- anchors.fill: parent
- anchors.leftMargin: 20
- anchors.rightMargin: 20
- anchors.topMargin: 20
- color: "white"
-
-
- Image {
- id: topicBackgroundImage
- anchors.fill: parent
- opacity: 0.5
- fillMode: Image.Tile
- clip: true
- source: selectedItem.image
- }
-
- Rectangle{
- id: forumTitleRectangle
- color: "black"
- height: 50
- width: 500
- opacity: 0.9
- anchors.top: parent.top
- anchors.topMargin: 20
- Text {
- id: forumTitleText
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- anchors.leftMargin: 20
- text: qsTr("Forum for clandestine urban art")
- wrapMode : Text.Wrap
- elide : Text.ElideRight
- color: "white"
- //font.bold: true
- font.pointSize: 22
- font.family: bebasFont.name
- }
- }
-
-
- ListModel {
- id: messagesModel
- ListElement {
- name: "Bailadora"
- image: "images/demo/baila.jpg"
- messagecontent: "Did you see that NSA graffiti on the
corner of Chaussestr. and Torstr. not only does it look amazing, it's algo such
a strong message !!"
- }
- ListElement {
- name: "La Doll"
- image: "images/demo/doll.jpg"
-
- messagecontent: "Oh yeah, totally awesome! Was about
time somebody said that! And with style!"
- }
- ListElement {
- name: "Arpeggio"
- image: "images/demo/arp.jpg"
- messagecontent: "What! What ? Guess I'll take an extra
detour on the bike to see that!"
- }
-
- }
-
- ListView {
- id: messagesList
- anchors.top: forumTitleRectangle.bottom
- anchors.topMargin: 30
- anchors.bottom: replyField.top
- anchors.right: parent.right
-
- anchors.left: parent.left
- anchors.leftMargin: 15
-
- spacing: 15
- clip: true
-
- Component {
- id: messagesDelegate
- Item {
- id: wrapper
- width: parent.width - 100
- height: (contentWrapper.height >
userWrapper.height) ? contentWrapper.height : userWrapper.height
-
-
-
- Rectangle {
- id: userWrapper
- width: (index == 0) ? 140 : 90
- height: (index == 0) ? 140 : 90
- anchors.left: parent.left
- anchors.leftMargin: (index == 0) ? 0 : 50
-
- color: "black"
- opacity: 1.0
-
- Image {
- id: messageMiniImage
- source: image
- fillMode: Image.PreserveAspectCrop
- height: (index == 0) ? 100 : 60
- width: (index == 0) ? 130 : 80
- anchors.left: parent.left
- anchors.leftMargin: 5
- anchors.top: parent.top
- anchors.topMargin: 5
-
- }
-
- Text {
- anchors.top: messageMiniImage.bottom
- id: contactText
- text: name
-
-
- width: (index == 0) ? 135 : 85
- height: 30
- anchors.left: parent.left
- anchors.leftMargin: 10
-
- wrapMode : Text.Wrap
- elide : Text.ElideRight
- color: "white"
- font.family: ubuntuBIFont.name
- font.pointSize: (index == 0) ? 16 : 12
- font.letterSpacing : -2
-
- }
-
-
- MouseArea{
- id:ma
- anchors.fill: parent
- onClicked: {
- messagesList.currentIndex = index
- }
- }
- }
-
-
- Rectangle{
-
- id: contentWrapper
-
- anchors.left: userWrapper.right
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.leftMargin: 10
- anchors.rightMargin: 10
- anchors.topMargin: 0
-
- height: content.contentHeight + 20
-
-
-
-
- Text {
- id: content
- anchors.fill: parent
- anchors.margins: 10
-
- text: messagecontent
- font.pointSize: 12
- wrapMode : Text.Wrap
-
- font.family: ubuntuFont.name
-
- }
- }
-
-
- }
- }
-
- model: messagesModel
- delegate: messagesDelegate
-
- }
-
- Item{
- id: replyField
- height: 70
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
-
-
-
- Rectangle {
- id: userWrapper
- width: 60
- height: 60
- color: "black"
- opacity: 1.0
-
- anchors.left: parent.left
- anchors.leftMargin: 5
- anchors.top: parent.top
-
-
- Image {
- id: messageMiniImage
- source: "images/demo/lynX.jpg"
- fillMode: Image.PreserveAspectCrop
- height: 40
- width: 48
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.margins: 3
-
- }
-
- Text {
- anchors.top: messageMiniImage.bottom
- id: contactText
- text: "lynX"
- font.pointSize: 10
- width: 55
- height: 15
- anchors.left: parent.left
- anchors.leftMargin: 5
-
- wrapMode : Text.Wrap
- elide : Text.ElideRight
- color: "white"
-
- font.family: ubuntuBIFont.name
- font.letterSpacing : -1
- }
-
-
- }
-
-
-
- TextArea{
-
- anchors.left: userWrapper.right
- anchors.right: parent.right
- anchors.top: userWrapper.top
- anchors.bottom: userWrapper.bottom
- anchors.rightMargin: 10
- anchors.leftMargin: 10
-
- }
-
- /*Rectangle{
- anchors.left: userWrapper.right
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.leftMargin: 5
-
- TextArea{
-
- anchors.fill: parent
- anchors.margins: 10
-
- }
-
- }*/
-
-
- }
-
-
- }
-
-
-
-
-
-
-
-
- }
-
-
- ColumnLayout{
- Rectangle{
- Layout.fillHeight: true
- width: 200;
- anchors.right: parent.right
- anchors.rightMargin: 8
- anchors.top: parent.top
- anchors.topMargin: 20
-
-
-
- color: "#EFC208"
-
-
-
- Rectangle{
- id: participantsTitle
- color: "white"
- height: 30
-
-
-
- anchors.top: parent.top
- anchors.topMargin: 15
- anchors.left: parent.left
- anchors.leftMargin: 5
- anchors.right: parent.right
- anchors.rightMargin: 5
-
- Text {
- id: participantsTitleText
- text: qsTr("PARTICIPANTS")
- anchors.centerIn: parent
- font.pointSize: 22
- //font.bold :true
- font.family: bebasFont.name
- }
- }
-
- ListModel {
- id: participantsModel
- ListElement {
- name: "Bailadora"
- image: "images/demo/baila.jpg"
- }
- ListElement {
- name: "Arpeggio"
- image: "images/demo/arp.jpg"
- }
- ListElement {
- name: "La Doll"
- image: "images/demo/doll.jpg"
- }
-
- ListElement {
- name: "lynX"
- image: "images/demo/lynX.jpg"
- }
- }
-
-
- ListView {
- id: participantsList
- anchors.top: participantsTitle.bottom
- anchors.topMargin: 30
- anchors.bottom: parent.bottom
- anchors.right: parent.right
-
- anchors.left: parent.left
- anchors.leftMargin: 15
-
- spacing: 15
- clip: true
-
- Component {
- id: participantsDelegate
- Rectangle {
- id: wrapper
- width: 170
- height: 150
- color: ListView.isCurrentItem ? "white" : "black"
-
- Image {
- id: threadMiniImage
- source: image
- fillMode: Image.PreserveAspectCrop
- height: 110
- width: 160
- anchors.left: parent.left
- anchors.leftMargin: 5
- anchors.top: parent.top
- anchors.topMargin: 5
-
- }
-
- Text {
- anchors.top: threadMiniImage.bottom
- id: contactInfo
- text: name
-
- width: 160
- height: 40
- anchors.left: parent.left
- anchors.leftMargin: 5
-
- wrapMode : Text.Wrap
- elide : Text.ElideRight
- color: wrapper.ListView.isCurrentItem ?
"black" : "white"
-
- font.family: ubuntuBIFont.name
- font.pointSize: 18
- font.letterSpacing : -2
-
- }
-
-
- MouseArea{
- id:ma
- anchors.fill: parent
- onClicked: {
- participantsList.currentIndex = index
- }
- }
- }
- }
-
- model: participantsModel
- delegate: participantsDelegate
- focus: true
- }
-
-
-
- }
- }
-
-
-
-
- }
-
-
-}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33953 - gnunet-qt/SecureShare/qml,
gnunet <=