From 19a703f74592a40ec56b73211e95b8df113d8211 Mon Sep 17 00:00:00 2001 From: Spiros Date: Thu, 6 Jun 2024 17:59:01 +0300 Subject: [PATCH] Rename QRegExp to QRegularExpression Thx Cassio --- kdiskinfo.ts | 312 +++++++++++++++++++++++++++++++++++++++++++++++++ mainwindow.cpp | 2 +- 2 files changed, 313 insertions(+), 1 deletion(-) create mode 100644 kdiskinfo.ts diff --git a/kdiskinfo.ts b/kdiskinfo.ts new file mode 100644 index 0000000..ed356fa --- /dev/null +++ b/kdiskinfo.ts @@ -0,0 +1,312 @@ + + + + + MainWindow + + + + + KDiskInfo + + + + + + + <html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:700;">Hard Drive Name</span></p></body></html> + + + + + + + <html><head/><body><p align="center">Health Status</p></body></html> + + + + + + + <html><head/><body><p align="center"><span style=" font-size:12pt; font-weight:700; color:#000000;">Good</span></p><p align="center"><span style=" font-size:12pt; font-weight:700; color:#000000;">100 %</span></p></body></html> + + + + + + + <html><head/><body><p align="center">Temperature</p></body></html> + + + + + + + <html><head/><body><p align="center"><span style=" font-size:12pt; font-weight:700; color:#000000;">23° C</span></p></body></html> + + + + + + + Firmware + Λογισμικό + + + + + + Serial Number + Σειριακός Αριθμός + + + + + + Protocol + Πρωτόκολλο + + + + + + Device Node + Διαδρομή + + + + + + Type + Τύπος + + + + + + Total Host Reads + Συνολικές Αναγνώσεις + + + + + + Total Host Writes + Συνολικές Εγγραφές + + + + + + Rotation Rate + Ρυθμός Περιστροφής + + + + + + Power On Count + Μετρητής Λειτουργίας + + + + + + Power On Hours + Ώρες Λειτουργίας + + + + + + File + Αρχείο + + + + + + Function + Λειτουργία + + + + + + &Help + Βοήθεια + + + + + + &Save JSON + Αποθήκευση JSON + + + + + + Ctrl+S + + + + + + + &Exit + Έξοδος + + + + + + Alt+F4 + + + + + + + &Rescan and Refresh + Σάρωση και Επαναφόρτωση + + + + + + &GitHub + + + + + + + &About + Σχετικά + + + + + + &Ignore C4 (Reallocated Event Count) + Αγνόησε το C4 (Reallocated Event Count) + + + + + + &Decimal Raw Values + Δεκαδικές Τιμές + + + + + + &Use Fahrenheit + Χρήση Fahrenheit + + + + Good + Καλή + + + + Caution + Προσοχή + + + + Bad + Κακή + + + + Unknown + Άγνωστη + + + + + ID + + + + + + Attribute Name + Ιδιότητα + + + + + Raw Values + Τιμή + + + + Current + Τρέχουσα + + + + Worst + Χειρότερη + + + + Threshold + Όριο + + + + Empty JSON + Άδειο JSON + + + + The JSON is empty + Αυτό το JSON είναι άδειο + + + + Save JSON + Αποθήκευση JSON + + + + JSON (*.json);;All Files (*) + + + + + Unable to open file for writing + Δεν είναι δυνατό το άνοιγμα αυτού του αρχείου για εγγραφή + + + + An ATA and NVMe S.M.A.R.T. data viewer for Linux + + + Ένας αναγνώστης S.M.A.R.T. για τα Linux + + + + Licensed under the GNU G.P.L. Version 3 + + + Διατίθεται υπό την άδεια GNU G.P.L. Έκδοση 3 + + + + Made by Samantas5855 + Δημιουργήθηκε από τον Samantas5855 + + + + About KDiskInfo + Σχετικά με το KDiskInfo + + + diff --git a/mainwindow.cpp b/mainwindow.cpp index 8871ddf..957b1be 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -108,7 +108,7 @@ void MainWindow::scanDevices() int startIndex = 0; int endIndex = 0; - while ((endIndex = allDevicesOutput.indexOf(QRegExp("\\}\\n\\{"), startIndex)) != -1) { + while ((endIndex = allDevicesOutput.indexOf(QRegularExpression("\\}\\n\\{"), startIndex)) != -1) { ++endIndex; QString jsonFragment = allDevicesOutput.mid(startIndex, endIndex - startIndex); deviceOutputs.append(jsonFragment);