Compare commits

...

3 Commits

Author SHA1 Message Date
vae
0c93aa55f7 Revert "fix: wrong order of arguments in QImage()"
This reverts commit 849159d5
2021-05-09 04:16:58 +03:00
vae
8d88aa5d09
fix: empty statements 2021-05-09 03:30:06 +03:00
vae
849159d5a5
fix: wrong order of arguments in QImage() 2021-05-09 02:51:04 +03:00
8 changed files with 10 additions and 10 deletions

View File

@ -318,7 +318,7 @@ void Core::Archive::changeMessage(const QString& id, const QMap<QString, QVarian
if (rc != 0) {
throw Unknown(jid.toStdString(), mdb_strerror(rc));
}
};
}
lmdbData.mv_size = ba.size();
lmdbData.mv_data = (uint8_t*)ba.data();

View File

@ -53,7 +53,7 @@ void Core::MessageHandler::onMessageReceived(const QXmppMessage& msg)
if (cnt != 0) {
cnt->changeMessage(id, cData);
}
;
emit acc->changeMessage(jid, id, cData);
pendingStateMessages.erase(itr);
handled = true;

View File

@ -202,7 +202,7 @@ void Core::UrlStorage::addFile(const std::list<Shared::MessageInfo>& msgs, const
}
UrlInfo info (path, msgs);
writeInfo(url, info, true);;
writeInfo(url, info, true);
}
QString Core::UrlStorage::addMessageAndCheckForPath(const QString& url, const QString& account, const QString& jid, const QString& id)

View File

@ -211,7 +211,7 @@ QIcon Models::Contact::getStatusIcon(bool big) const
if (getMessagesCount() > 0) {
return Shared::icon("mail-message", big);
} else if (state == Shared::SubscriptionState::both || state == Shared::SubscriptionState::to) {
return Shared::availabilityIcon(availability, big);;
return Shared::availabilityIcon(availability, big);
} else {
return Shared::subscriptionStateIcon(state, big);
}

View File

@ -187,9 +187,9 @@ struct FeedItem {
Shared::Message::State state;
Attachment attach;
};
};
}
Q_DECLARE_METATYPE(Models::Attachment);
Q_DECLARE_METATYPE(Models::FeedItem);
Q_DECLARE_METATYPE(Models::Attachment)
Q_DECLARE_METATYPE(Models::FeedItem)
#endif // MESSAGEFEED_H

View File

@ -29,6 +29,6 @@
namespace Utils {
void exponentialblur(QImage &img, qreal radius, bool improvedQuality = false, int transposed = 0);
};
}
#endif // EXPONENTIALBLUR_H

View File

@ -36,7 +36,7 @@
namespace Models {
struct FeedItem;
};
}
class MessageDelegate : public QStyledItemDelegate
{

View File

@ -59,7 +59,7 @@ QMap<QString, QVariant> Account::value() const
void Account::lockId()
{
m_ui->name->setReadOnly(true);;
m_ui->name->setReadOnly(true);
}
void Account::setData(const QMap<QString, QVariant>& data)