Skip to content

Commit a62f1ac

Browse files
committed
style: apply clang-format for CI
1 parent 3ef91c9 commit a62f1ac

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

src/backend/monitor/rammonitor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ void RamMonitor::refresh() {
8383
}
8484
}
8585

86-
// TR: Bazi kernel/ortamlarda MemAvailable olmayabilir; yaklasik deger hesapla.
87-
// EN: Some kernels/environments do not expose MemAvailable; compute a fallback.
86+
// TR: Bazi kernel/ortamlarda MemAvailable olmayabilir; yaklasik deger
87+
// hesapla. EN: Some kernels/environments do not expose MemAvailable; compute
88+
// a fallback.
8889
if (memAvailableKiB < 0 && memFreeKiB >= 0 && buffersKiB >= 0 &&
8990
cachedKiB >= 0) {
9091
const qint64 reclaimable = sReclaimableKiB > 0 ? sReclaimableKiB : 0;

src/backend/nvidia/detector.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ NvidiaDetector::NvidiaDetector(QObject *parent) : QObject(parent) {}
1212
NvidiaDetector::GpuInfo NvidiaDetector::detect() const {
1313
GpuInfo info;
1414

15-
// TR: Tespit adimlari olabildigince bagimsiz tutulur; biri fail etse digeri devam eder.
16-
// EN: Detection steps are independent so one failure does not block others.
15+
// TR: Tespit adimlari olabildigince bagimsiz tutulur; biri fail etse digeri
16+
// devam eder. EN: Detection steps are independent so one failure does not
17+
// block others.
1718
info.name = detectGpuName();
1819
info.found = !info.name.isEmpty();
1920
info.driverVersion = detectDriverVersion();
@@ -56,9 +57,9 @@ QString NvidiaDetector::verificationReport() const {
5657
"NVIDIA Modulu: %5\nNouveau: %6")
5758
.arg(gpuText, versionText,
5859
m_info.secureBootKnown
59-
? (m_info.secureBootEnabled ? QStringLiteral("Acik")
60-
: QStringLiteral("Kapali"))
61-
: QStringLiteral("Bilinmiyor"),
60+
? (m_info.secureBootEnabled ? QStringLiteral("Acik")
61+
: QStringLiteral("Kapali"))
62+
: QStringLiteral("Bilinmiyor"),
6263
m_info.sessionType.isEmpty() ? QStringLiteral("Bilinmiyor")
6364
: m_info.sessionType,
6465
m_info.driverLoaded ? QStringLiteral("Yuklu")
@@ -142,7 +143,8 @@ bool NvidiaDetector::isModuleLoaded(const QString &moduleName) const {
142143

143144
bool NvidiaDetector::detectSecureBoot(bool *known) const {
144145
// TR: mokutil yoksa "kapali" degil "bilinmiyor" olarak siniflandir.
145-
// EN: If mokutil is unavailable, classify as "unknown" rather than "disabled".
146+
// EN: If mokutil is unavailable, classify as "unknown" rather than
147+
// "disabled".
146148
CommandRunner runner;
147149
const auto result =
148150
runner.run(QStringLiteral("mokutil"), {QStringLiteral("--sb-state")});

src/backend/nvidia/updater.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ NvidiaUpdater::NvidiaUpdater(QObject *parent) : QObject(parent) {}
1010
void NvidiaUpdater::checkForUpdate() {
1111
// TR: Her kontrol denemesinde UI'ye gorunur bir baslangic mesaji gonder.
1212
// EN: Always emit a visible start message for each check request.
13-
emit progressMessage(
14-
QStringLiteral("Guncelleme kontrolu baslatildi..."));
13+
emit progressMessage(QStringLiteral("Guncelleme kontrolu baslatildi..."));
1514

1615
// Mevcut kurulu sürücü versiyonu
1716
NvidiaDetector detector;
@@ -28,8 +27,7 @@ void NvidiaUpdater::checkForUpdate() {
2827
m_updateAvailable = false;
2928
emit updateAvailableChanged();
3029
}
31-
emit progressMessage(
32-
QStringLiteral("Kurulu NVIDIA surucusu bulunamadi."));
30+
emit progressMessage(QStringLiteral("Kurulu NVIDIA surucusu bulunamadi."));
3331
return;
3432
}
3533

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ int main(int argc, char *argv[]) {
1616
QApplication app(argc, argv);
1717

1818
// TR: Bu meta bilgiler masaustu entegrasyonu ve UI kimligi icin kullanilir.
19-
// EN: These metadata values are used for desktop integration and app identity.
19+
// EN: These metadata values are used for desktop integration and app
20+
// identity.
2021
app.setApplicationName("ro-control");
2122
app.setApplicationDisplayName("ro-Control");
2223
app.setApplicationVersion("0.1.0");

0 commit comments

Comments
 (0)