mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-13 16:20:54 +03:00
Improve the button's appearence
This commit is contained in:
@@ -144,7 +144,7 @@ void MainWindow::scanDevices()
|
||||
for (const QJsonValue &value : std::as_const(devices)) {
|
||||
QJsonObject device = value.toObject();
|
||||
QString deviceName = device["name"].toString();
|
||||
commandList.append(QString(smartctlPath + " --all --json %1").arg(deviceName));
|
||||
commandList.append(QString(smartctlPath + " --all --json=o %1").arg(deviceName));
|
||||
}
|
||||
QString command = commandList.join(" ; ");
|
||||
|
||||
@@ -272,7 +272,7 @@ void MainWindow::updateUI()
|
||||
healthColor = naColor;
|
||||
}
|
||||
|
||||
CustomButton *button = new CustomButton(health, deviceName, temperature, healthColor, this);
|
||||
CustomButton *button = new CustomButton(health, temperature, deviceName, healthColor, this);
|
||||
button->setToolTip(tr("Disk") + " " + QString::number(i) + " : " + modelName + " : " + userCapacityString);
|
||||
|
||||
buttonGroup->addButton(button);
|
||||
|
||||
Reference in New Issue
Block a user