Apply clang-format

This commit is contained in:
Martchus 2023-07-25 23:34:39 +02:00
parent 1a94b5c85d
commit 1017873c28
4 changed files with 5 additions and 4 deletions

View File

@ -95,7 +95,7 @@ void MusicBrainzResultsModel::parseInitialResults(const QByteArray &data)
// parse XML tree
QXmlStreamReader xmlReader(data);
// clang-format off
// clang-format off
#include <qtutilities/misc/xmlparsermacros.h>
children {
iftag("metadata") {

View File

@ -279,7 +279,8 @@ void DbQueryWidget::showResults()
if (m_model->results().isEmpty()) {
m_ui->notificationLabel->setText(tr("No results available"));
} else {
m_ui->notificationLabel->setText(tr("%1 result(s) available", nullptr, Utility::containerSizeToInt(m_model->results().size())).arg(m_model->results().size()));
m_ui->notificationLabel->setText(
tr("%1 result(s) available", nullptr, Utility::containerSizeToInt(m_model->results().size())).arg(m_model->results().size()));
}
} else {
m_ui->notificationLabel->setNotificationType(NotificationType::Critical);

View File

@ -369,7 +369,7 @@ void TagEditorWidget::updateTagEditsAndAttachmentEdits(bool updateUi, PreviousVa
auto index = targets.indexOf(target);
if (index < 0) {
targets << target;
tagsByTarget << QList<Tag *>({tag});
tagsByTarget << QList<Tag *>({ tag });
} else {
tagsByTarget[index] << tag;
}

View File

@ -6,8 +6,8 @@
#include <QString>
#include <QStringList>
#include <type_traits>
#include <limits>
#include <type_traits>
QT_FORWARD_DECLARE_CLASS(QDir)
QT_FORWARD_DECLARE_CLASS(QAbstractItemModel)