mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Merge pull request #651 from LorenDB/qml-all-the-things
Fix a few UI things
This commit is contained in:
commit
ca3d17dc22
4 changed files with 24 additions and 5 deletions
|
@ -107,7 +107,7 @@ ApplicationWindow {
|
||||||
userid: model.mxid
|
userid: model.mxid
|
||||||
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
||||||
displayName: model.displayName
|
displayName: model.displayName
|
||||||
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
|
onClicked: TimelineManager.openGlobalUserProfile(model.mxid)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
@ -477,12 +477,23 @@ ScrollView {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer: Spinner {
|
footer: Item {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
running: chat.model && chat.model.paginationInProgress
|
anchors.margins: Nheko.paddingLarge
|
||||||
foreground: Nheko.colors.mid
|
|
||||||
visible: chat.model && chat.model.paginationInProgress
|
visible: chat.model && chat.model.paginationInProgress
|
||||||
z: 3
|
// hacky, but works
|
||||||
|
height: loadingSpinner.height + 2 * Nheko.paddingLarge
|
||||||
|
|
||||||
|
Spinner {
|
||||||
|
id: loadingSpinner
|
||||||
|
|
||||||
|
anchors.centerIn: parent
|
||||||
|
anchors.margins: Nheko.paddingLarge
|
||||||
|
running: chat.model && chat.model.paginationInProgress
|
||||||
|
foreground: Nheko.colors.mid
|
||||||
|
z: 3
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -393,6 +393,13 @@ TimelineViewManager::openInviteUsers(QString roomId)
|
||||||
emit openInviteUsersDialog(model);
|
emit openInviteUsersDialog(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
TimelineViewManager::openGlobalUserProfile(QString userId)
|
||||||
|
{
|
||||||
|
UserProfile *profile = new UserProfile{QString{}, userId, this};
|
||||||
|
emit openProfile(profile);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TimelineViewManager::setVideoCallItem()
|
TimelineViewManager::setVideoCallItem()
|
||||||
{
|
{
|
||||||
|
|
|
@ -69,6 +69,7 @@ public:
|
||||||
Q_INVOKABLE void openRoomMembers(QString room_id);
|
Q_INVOKABLE void openRoomMembers(QString room_id);
|
||||||
Q_INVOKABLE void openRoomSettings(QString room_id);
|
Q_INVOKABLE void openRoomSettings(QString room_id);
|
||||||
Q_INVOKABLE void openInviteUsers(QString roomId);
|
Q_INVOKABLE void openInviteUsers(QString roomId);
|
||||||
|
Q_INVOKABLE void openGlobalUserProfile(QString userId);
|
||||||
|
|
||||||
Q_INVOKABLE void focusMessageInput();
|
Q_INVOKABLE void focusMessageInput();
|
||||||
Q_INVOKABLE void openLeaveRoomDialog(QString roomid) const;
|
Q_INVOKABLE void openLeaveRoomDialog(QString roomid) const;
|
||||||
|
|
Loading…
Reference in a new issue