formatting-fix

This commit is contained in:
DawnFire42 2026-05-21 13:53:19 -04:00
parent 69b076e1f9
commit 2931355cfb
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
5 changed files with 19 additions and 11 deletions

View file

@ -37,7 +37,7 @@ public:
{
config = ManaCurveConfig::fromJson(o);
updateDisplay();
};
}
QJsonObject extractConfigFromDialog(QDialog *dlg) const override;

View file

@ -27,7 +27,7 @@ public:
bool isCompact() const
{
return compact;
};
}
protected:
void mousePressEvent(QMouseEvent *event) override;

View file

@ -133,7 +133,7 @@ public:
ICardSetPriorityController *getPriorityController()
{
return setPriorityController;
};
}
public slots:
/**

View file

@ -70,28 +70,33 @@ public:
}
virtual void nodeChanged() const
{
if (parent() != nullptr)
if (parent() != nullptr) {
parent()->nodeChanged();
}
}
virtual void preInsertChild(const FilterTreeNode *p, int i) const
{
if (parent() != nullptr)
if (parent() != nullptr) {
parent()->preInsertChild(p, i);
}
}
virtual void postInsertChild(const FilterTreeNode *p, int i) const
{
if (parent() != nullptr)
if (parent() != nullptr) {
parent()->postInsertChild(p, i);
}
}
virtual void preRemoveChild(const FilterTreeNode *p, int i) const
{
if (parent() != nullptr)
if (parent() != nullptr) {
parent()->preRemoveChild(p, i);
}
}
virtual void postRemoveChild(const FilterTreeNode *p, int i) const
{
if (parent() != nullptr)
if (parent() != nullptr) {
parent()->postRemoveChild(p, i);
}
}
};

View file

@ -257,8 +257,9 @@ Qt::ItemFlags DeckListModel::flags(const QModelIndex &index) const
void DeckListModel::emitBackgroundUpdates(const QModelIndex &parent)
{
int rows = rowCount(parent);
if (rows == 0)
if (rows == 0) {
return;
}
QModelIndex topLeft = index(0, 0, parent);
QModelIndex bottomRight = index(rows - 1, columnCount() - 1, parent);
@ -539,8 +540,9 @@ int DeckListModel::findSortedInsertRow(const InnerDecklistNode *parent, const Ca
for (int i = 0; i < parent->size(); ++i) {
auto *existingCard = dynamic_cast<DecklistModelCardNode *>(parent->at(i));
if (!existingCard)
if (!existingCard) {
continue;
}
bool lessThan = false;
switch (lastKnownColumn) {
@ -557,8 +559,9 @@ int DeckListModel::findSortedInsertRow(const InnerDecklistNode *parent, const Ca
break;
}
if (lessThan)
if (lessThan) {
return i;
}
}
return parent->size(); // insert at end if no earlier match