Alexandra Betouni 0eb40287fa refactor: removed dynamic scoping from shared module
Properties and functions moved to Global:
- toastMessage
- openProfilePopup()
- getProfileImage()
- popupOpened

Closes #4248
2022-02-01 11:46:39 +01:00

26 lines
589 B
QML

import QtQuick 2.14
import shared 1.0
import shared.panels 1.0
import shared.stores 1.0
import StatusQ.Controls 0.1 as StatusQ
import utils 1.0
StyledText {
id: chatTime
color: Style.current.secondaryText
property string timestamp
text: Utils.formatTime(chatTime.timestamp)
font.pixelSize: Style.current.asideTextFontSize
StatusQ.StatusToolTip {
visible: hhandler.hovered
text: new Date(parseInt(chatTime.timestamp, 10)).toLocaleString(Qt.locale(RootStore.locale))
maxWidth: 350
}
HoverHandler {
id: hhandler
}
}