mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 06:35:32 +02:00
pr review
This commit is contained in:
parent
97777a416d
commit
56196c03a3
3 changed files with 10 additions and 6 deletions
interface/resources/qml/hifi
|
@ -130,7 +130,7 @@ Rectangle {
|
|||
property int dropSamples: 9;
|
||||
property int dropSpread: 0;
|
||||
DropShadow {
|
||||
visible: showPlace && desktop.gradientsSupported;
|
||||
visible: showPlace; // Do we have to check for whatever the modern equivalent is for desktop.gradientsSupported?
|
||||
source: place;
|
||||
anchors.fill: place;
|
||||
horizontalOffset: dropHorizontalOffset;
|
||||
|
|
|
@ -31,6 +31,7 @@ Column {
|
|||
property string labelText: actions;
|
||||
property string filter: '';
|
||||
onFilterChanged: filterChoicesByText();
|
||||
property var goFunction: null;
|
||||
|
||||
HifiConstants { id: hifi }
|
||||
ListModel { id: suggestions; }
|
||||
|
@ -57,7 +58,7 @@ Column {
|
|||
created_at: data.created_at || "",
|
||||
action: data.action || "",
|
||||
thumbnail_url: resolveUrl(thumbnail_url),
|
||||
image_url: resolveUrl(data.details.image_url),
|
||||
image_url: resolveUrl(data.details && data.details.image_url),
|
||||
|
||||
metaverseId: (data.id || "").toString(), // Some are strings from server while others are numbers. Model objects require uniformity.
|
||||
|
||||
|
@ -181,7 +182,7 @@ Column {
|
|||
delegate: Card {
|
||||
width: cardWidth;
|
||||
height: cardHeight;
|
||||
goFunction: goCard; // fixme global
|
||||
goFunction: root.goFunction;
|
||||
userName: model.username;
|
||||
placeName: model.place_name;
|
||||
hifiUrl: model.place_name + model.path;
|
||||
|
|
|
@ -242,7 +242,7 @@ StackView {
|
|||
height: stack.height;
|
||||
color: "transparent";
|
||||
anchors {
|
||||
left: bgMain.left;
|
||||
left: parent.left;
|
||||
leftMargin: column.pad;
|
||||
topMargin: column.pad;
|
||||
}
|
||||
|
@ -258,9 +258,10 @@ StackView {
|
|||
cardHeight: places.cardHeight * happeningNow.cardScale;
|
||||
metaverseServerUrl: addressBarDialog.metaverseServerUrl;
|
||||
labelText: 'Happening Now';
|
||||
//actions: 'concurrency,snapshot'; // uncomment this line instead of next to produce fake announcement data for testing.
|
||||
actions: 'announcement';
|
||||
actions: 'concurrency,snapshot'; // uncomment this line instead of next to produce fake announcement data for testing.
|
||||
//actions: 'announcement';
|
||||
filter: addressLine.text;
|
||||
goFunction: goCard;
|
||||
}
|
||||
Feed {
|
||||
id: places;
|
||||
|
@ -269,6 +270,7 @@ StackView {
|
|||
labelText: 'Places';
|
||||
actions: 'concurrency';
|
||||
filter: addressLine.text;
|
||||
goFunction: goCard;
|
||||
}
|
||||
Feed {
|
||||
id: snapshots;
|
||||
|
@ -277,6 +279,7 @@ StackView {
|
|||
labelText: 'Recent Activity';
|
||||
actions: 'snapshot';
|
||||
filter: addressLine.text;
|
||||
goFunction: goCard;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue