make lint

This commit is contained in:
trilene 2021-02-07 13:58:32 -05:00
parent 8d68534456
commit 974c336c5e
4 changed files with 17 additions and 11 deletions

View file

@ -102,6 +102,7 @@ ListView {
Avatar { Avatar {
id: messageUserAvatar id: messageUserAvatar
width: avatarSize width: avatarSize
height: avatarSize height: avatarSize
url: modelData ? chat.model.avatarUrl(modelData.userId).replace("mxc://", "image://MxcImage/") : "" url: modelData ? chat.model.avatarUrl(modelData.userId).replace("mxc://", "image://MxcImage/") : ""
@ -113,7 +114,7 @@ ListView {
Connections { Connections {
target: chat.model target: chat.model
onRoomAvatarUrlChanged: { onRoomAvatarUrlChanged: {
messageUserAvatar.url = modelData ? chat.model.avatarUrl(modelData.userId).replace("mxc://", "image://MxcImage/") : "" messageUserAvatar.url = modelData ? chat.model.avatarUrl(modelData.userId).replace("mxc://", "image://MxcImage/") : "";
} }
} }

View file

@ -49,6 +49,7 @@ ApplicationWindow {
Text { Text {
id: errorText id: errorText
text: "Error Text" text: "Error Text"
color: "red" color: "red"
visible: opacity > 0 visible: opacity > 0
@ -58,24 +59,28 @@ ApplicationWindow {
SequentialAnimation { SequentialAnimation {
id: hideErrorAnimation id: hideErrorAnimation
running: false running: false
PauseAnimation { PauseAnimation {
duration: 4000 duration: 4000
} }
NumberAnimation { NumberAnimation {
target: errorText target: errorText
property: 'opacity' property: 'opacity'
to: 0 to: 0
duration: 1000 duration: 1000
} }
} }
Connections{ Connections {
target: profile target: profile
onDisplayError: { onDisplayError: {
errorText.text = errorMessage errorText.text = errorMessage;
errorText.opacity = 1 errorText.opacity = 1;
hideErrorAnimation.restart() hideErrorAnimation.restart();
} }
} }

View file

@ -449,8 +449,7 @@ ChatPage::deleteConfigs()
{ {
QSettings settings; QSettings settings;
if (UserSettings::instance()->profile() != "") if (UserSettings::instance()->profile() != "") {
{
settings.beginGroup("profile"); settings.beginGroup("profile");
settings.beginGroup(UserSettings::instance()->profile()); settings.beginGroup(UserSettings::instance()->profile());
} }

View file

@ -70,7 +70,8 @@ utils::replaceEmoji(const QString &body)
for (auto &code : utf32_string) { for (auto &code : utf32_string) {
if (utils::codepointIsEmoji(code)) { if (utils::codepointIsEmoji(code)) {
if (!insideFontBlock) { if (!insideFontBlock) {
fmtBody += QString("<font face=\"" + UserSettings::instance()->font() + "\">"); fmtBody += QString("<font face=\"" +
UserSettings::instance()->font() + "\">");
insideFontBlock = true; insideFontBlock = true;
} }