Skip to content

Commit

Permalink
updates: Remove keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Jan 15, 2024
1 parent 004fd38 commit 30c9407
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/modules/updates/rpmdiffmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void RpmDiffModel::addItem(RpmDiffItem *item)
m_items.append(item);
endInsertRows();

emit countChanged();
Q_EMIT countChanged();
}

void RpmDiffModel::removeItem(RpmDiffItem *item)
Expand All @@ -75,7 +75,7 @@ void RpmDiffModel::removeItem(RpmDiffItem *item)
m_items.removeOne(item);
endRemoveRows();

emit countChanged();
Q_EMIT countChanged();
}
}

Expand All @@ -86,6 +86,6 @@ void RpmDiffModel::clearItems()
qDeleteAll(m_items);
endResetModel();

emit countChanged();
Q_EMIT countChanged();
}
}
2 changes: 1 addition & 1 deletion src/modules/updates/rpmdiffmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RpmDiffModel : public QAbstractListModel
void removeItem(RpmDiffItem *item);
void clearItems();

signals:
Q_SIGNALS:
void countChanged();

private:
Expand Down
4 changes: 2 additions & 2 deletions src/modules/updates/rpmostreebackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void RpmOstreeBackend::readCachedUpdate()
qCDebug(gLcUpdates, "Got OS '%s', version '%s', checksum '%s'",
qPrintable(m_osName), qPrintable(m_checksum), qPrintable(m_version));

emit cachedUpdateChanged();
Q_EMIT cachedUpdateChanged();
}

bool RpmOstreeBackend::registerClient()
Expand Down Expand Up @@ -378,5 +378,5 @@ void RpmOstreeBackend::processRpmDiff(const QVariantMap &rpmDiff)
}
}

emit rpmDiffChanged();
Q_EMIT rpmDiffChanged();
}
2 changes: 1 addition & 1 deletion src/modules/updates/rpmostreebackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RpmOstreeBackend : public QObject

void populateRpmDiffModel();

signals:
Q_SIGNALS:
void cachedUpdateChanged();
void rpmDiffChanged();

Expand Down
6 changes: 3 additions & 3 deletions src/modules/updates/softwareupdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SoftwareUpdate::SoftwareUpdate(QObject *parent)
connect(m_backend, &RpmOstreeBackend::rpmDiffChanged, this, [this] {
auto n = m_backend->model()->rowCount();
m_information = tr("%n package(s) added, removed or updated", "", n);
emit informationChanged();
Q_EMIT informationChanged();
});
connect(m_backend, &RpmOstreeBackend::cachedUpdateChanged, this, &SoftwareUpdate::versionChanged);

Expand Down Expand Up @@ -134,14 +134,14 @@ void SoftwareUpdate::setTransaction(Transaction *transaction)
}
});

emit currentTransactionChanged(m_transaction);
Q_EMIT currentTransactionChanged(m_transaction);
}

void SoftwareUpdate::unsetTransaction()
{
if (m_transaction) {
disconnect(m_transactionConnection);
m_transaction.clear();
emit currentTransactionChanged(nullptr);
Q_EMIT currentTransactionChanged(nullptr);
}
}
2 changes: 1 addition & 1 deletion src/modules/updates/softwareupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SoftwareUpdate : public QObject, public QQmlParserStatus
Q_INVOKABLE Transaction *checkForUpdates();
Q_INVOKABLE Transaction *upgrade(bool allowDowngrade = false, bool reboot = false);

signals:
Q_SIGNALS:
void informationChanged();
void versionChanged();
void currentTransactionChanged(Transaction *transaction);
Expand Down
8 changes: 4 additions & 4 deletions src/modules/updates/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ void Transaction::setStatus(Status status)
{
if (m_status != status) {
m_status = status;
emit statusChanged(status);
Q_EMIT statusChanged(status);
}
}

void Transaction::setLastErrorMessage(const QString &message)
{
m_lastErrorMessage = message;
emit lastErrorMessageChanged(message);
Q_EMIT lastErrorMessageChanged(message);
}

void Transaction::handleDownloadProgress(RpmOstree::TimeData time,
Expand Down Expand Up @@ -147,14 +147,14 @@ void Transaction::handleMessage(const QString &text)
{
qCInfo(gLcUpdates, "Transaction \"%s\": %s",
qPrintable(m_name), qPrintable(text));
emit passiveMessage(text);
Q_EMIT passiveMessage(text);
}

void Transaction::handlePercentProgress(const QString &text, uint percentage)
{
qCInfo(gLcUpdates, "Transaction \"%s\" progress %d %%: %s",
qPrintable(m_name), percentage, qPrintable(text));
emit progressChanged(percentage);
Q_EMIT progressChanged(percentage);
}

void Transaction::handleProgressEnd()
Expand Down

0 comments on commit 30c9407

Please sign in to comment.