Apply clang-format
This commit is contained in:
parent
1a94b5c85d
commit
1017873c28
|
@ -95,7 +95,7 @@ void MusicBrainzResultsModel::parseInitialResults(const QByteArray &data)
|
||||||
|
|
||||||
// parse XML tree
|
// parse XML tree
|
||||||
QXmlStreamReader xmlReader(data);
|
QXmlStreamReader xmlReader(data);
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#include <qtutilities/misc/xmlparsermacros.h>
|
#include <qtutilities/misc/xmlparsermacros.h>
|
||||||
children {
|
children {
|
||||||
iftag("metadata") {
|
iftag("metadata") {
|
||||||
|
|
|
@ -279,7 +279,8 @@ void DbQueryWidget::showResults()
|
||||||
if (m_model->results().isEmpty()) {
|
if (m_model->results().isEmpty()) {
|
||||||
m_ui->notificationLabel->setText(tr("No results available"));
|
m_ui->notificationLabel->setText(tr("No results available"));
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
m_ui->notificationLabel->setNotificationType(NotificationType::Critical);
|
m_ui->notificationLabel->setNotificationType(NotificationType::Critical);
|
||||||
|
|
|
@ -369,7 +369,7 @@ void TagEditorWidget::updateTagEditsAndAttachmentEdits(bool updateUi, PreviousVa
|
||||||
auto index = targets.indexOf(target);
|
auto index = targets.indexOf(target);
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
targets << target;
|
targets << target;
|
||||||
tagsByTarget << QList<Tag *>({tag});
|
tagsByTarget << QList<Tag *>({ tag });
|
||||||
} else {
|
} else {
|
||||||
tagsByTarget[index] << tag;
|
tagsByTarget[index] << tag;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include <type_traits>
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <type_traits>
|
||||||
|
|
||||||
QT_FORWARD_DECLARE_CLASS(QDir)
|
QT_FORWARD_DECLARE_CLASS(QDir)
|
||||||
QT_FORWARD_DECLARE_CLASS(QAbstractItemModel)
|
QT_FORWARD_DECLARE_CLASS(QAbstractItemModel)
|
||||||
|
|
Loading…
Reference in New Issue