Move Chat/ dir under Pages/
This commit is contained in:
parent
2bdf21d528
commit
f4d7636df6
|
@ -182,7 +182,7 @@ Item {
|
|||
// Chat
|
||||
|
||||
HShortcut {
|
||||
enabled: window.uiState.page === "Chat/Chat.qml"
|
||||
enabled: window.uiState.page === "Pages/Chat/Chat.qml"
|
||||
sequences: settings.keys.clearRoomMessages
|
||||
onActivated: utils.makePopup(
|
||||
"Popups/ClearMessagesPopup.qml",
|
||||
|
@ -195,7 +195,7 @@ Item {
|
|||
}
|
||||
|
||||
HShortcut {
|
||||
enabled: window.uiState.page === "Chat/Chat.qml"
|
||||
enabled: window.uiState.page === "Pages/Chat/Chat.qml"
|
||||
sequences: settings.keys.sendFile
|
||||
onActivated: utils.makeObject(
|
||||
"Dialogs/SendFilePicker.qml",
|
||||
|
@ -210,7 +210,7 @@ Item {
|
|||
}
|
||||
|
||||
HShortcut {
|
||||
enabled: window.uiState.page === "Chat/Chat.qml"
|
||||
enabled: window.uiState.page === "Pages/Chat/Chat.qml"
|
||||
sequences: settings.keys.sendFileFromPathInClipboard
|
||||
onActivated: utils.sendFile(
|
||||
window.uiState.pageProperties.userId,
|
||||
|
|
|
@ -9,7 +9,7 @@ HTileDelegate {
|
|||
opacity: model.data.left ? theme.mainPane.room.leftRoomOpacity : 1
|
||||
|
||||
shouldBeCurrent:
|
||||
window.uiState.page === "Chat/Chat.qml" &&
|
||||
window.uiState.page === "Pages/Chat/Chat.qml" &&
|
||||
window.uiState.pageProperties.userId === model.user_id &&
|
||||
window.uiState.pageProperties.roomId === model.data.room_id
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
Rectangle {
|
||||
id: banner
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
Banner {
|
||||
property string inviterId: chat.roomInfo.inviter
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
Banner {
|
||||
color: theme.chat.leftBanner.background
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
Banner {
|
||||
color: theme.chat.unknownDevices.background
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
import "../../Base"
|
||||
import "RoomPane"
|
||||
|
||||
Item {
|
||||
|
@ -41,7 +41,7 @@ Item {
|
|||
width: 96 * theme.uiScale
|
||||
height: width
|
||||
|
||||
source: opacity > 0 ? "../Base/HBusyIndicator.qml" : ""
|
||||
source: opacity > 0 ? "../../Base/HBusyIndicator.qml" : ""
|
||||
opacity: ready ? 0 : 1
|
||||
|
||||
Behavior on opacity { HNumberAnimation { factor: 2 } }
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
import "../../Base"
|
||||
import "Banners"
|
||||
import "Timeline"
|
||||
import "FileTransfer"
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
import "../Dialogs"
|
||||
import "../../Base"
|
||||
import "../../Dialogs"
|
||||
|
||||
Rectangle {
|
||||
property string indent: " "
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HColumnLayout {
|
||||
id: transfer
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
Rectangle {
|
||||
implicitWidth: 800
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
import "../../Base"
|
||||
|
||||
HProgressBar {
|
||||
indeterminate: true
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
import "../../Base"
|
||||
|
||||
Rectangle {
|
||||
implicitHeight: theme.baseElementsHeight
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HTileDelegate {
|
||||
id: memberDelegate
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HColumnLayout {
|
||||
HListView {
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HDrawer {
|
||||
id: roomPane
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HBox {
|
||||
color: "transparent"
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HNoticePage {
|
||||
text: model.date.toLocaleDateString()
|
|
@ -1,8 +1,8 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import QtAV 1.7
|
||||
import "../../Base"
|
||||
import "../../Base/MediaPlayer"
|
||||
import "../../../Base"
|
||||
import "../../../Base/MediaPlayer"
|
||||
|
||||
AudioPlayer {
|
||||
id: audio
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HRowLayout {
|
||||
id: eventContent
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HColumnLayout {
|
||||
id: eventDelegate
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HTile {
|
||||
id: file
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HMxcImage {
|
||||
id: image
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HLabel {
|
||||
id: bubble
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
Rectangle {
|
||||
property alias selectableLabelContainer: selectableLabelContainer
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick 2.12
|
||||
import "../../Base"
|
||||
import "../../../Base"
|
||||
|
||||
HLoader {
|
||||
id: loader
|
|
@ -1,8 +1,8 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import QtAV 1.7
|
||||
import "../../Base"
|
||||
import "../../Base/MediaPlayer"
|
||||
import "../../../Base"
|
||||
import "../../../Base/MediaPlayer"
|
||||
|
||||
VideoPlayer {
|
||||
id: video
|
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import "../Base"
|
||||
import "../../Base"
|
||||
|
||||
Rectangle {
|
||||
id: typingMembersBar
|
|
@ -15,7 +15,7 @@ BoxPopup {
|
|||
box.focusButton: "ok"
|
||||
|
||||
onOk: py.callClientCoro(userId, "room_forget", [roomId], () => {
|
||||
if (window.uiState.page === "Chat/Chat.qml" &&
|
||||
if (window.uiState.page === "Pages/Chat/Chat.qml" &&
|
||||
window.uiState.pageProperties.userId === userId &&
|
||||
window.uiState.pageProperties.roomId === roomId)
|
||||
{
|
||||
|
|
|
@ -86,7 +86,7 @@ Item {
|
|||
let page = window.uiState.page
|
||||
let props = window.uiState.pageProperties
|
||||
|
||||
if (page === "Chat/Chat.qml") {
|
||||
if (page === "Pages/Chat/Chat.qml") {
|
||||
pageLoader.showRoom(props.userId, props.roomId)
|
||||
} else {
|
||||
pageLoader._show(page, props)
|
||||
|
@ -110,9 +110,9 @@ Item {
|
|||
}
|
||||
|
||||
function showRoom(userId, roomId) {
|
||||
_show("Chat/Chat.qml", {userId, roomId})
|
||||
_show("Pages/Chat/Chat.qml", {userId, roomId})
|
||||
|
||||
window.uiState.page = "Chat/Chat.qml"
|
||||
window.uiState.page = "Pages/Chat/Chat.qml"
|
||||
window.uiState.pageProperties = {userId, roomId}
|
||||
window.uiStateChanged()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user