Add an about Qt dialog

This commit is contained in:
spiros
2024-06-22 22:23:19 +03:00
parent b55e168aad
commit 3d980d18b9
9 changed files with 364 additions and 329 deletions

View File

@@ -975,6 +975,22 @@ void MainWindow::on_actionGitHub_triggered()
QDesktopServices::openUrl(QUrl("https://github.com/edisionnano/QDiskInfo"));
}
void MainWindow::on_actionAbout_QDiskInfo_triggered()
{
QString message = tr("An ATA and NVMe S.M.A.R.T. data viewer for Linux") + "\n";
message += tr("Licensed under the GNU G.P.L. Version 3") + "\n";
message += tr("Made by Samantas5855") + "\n";
message += tr("Version") + " " + QString::number(PROJECT_VERSION_MAJOR) + "." + QString::number(PROJECT_VERSION_MINOR);
QMessageBox::about(this, tr("About QDiskInfo"), message);
}
void MainWindow::on_actionAbout_Qt_triggered()
{
QMessageBox::aboutQt(this, tr("About Qt"));
}
void MainWindow::on_actionRescan_Refresh_triggered()
{
QPair<QStringList, QJsonArray> values = Utils.scanDevices(initializing);
@@ -986,16 +1002,6 @@ void MainWindow::on_actionRescan_Refresh_triggered()
}
}
void MainWindow::on_actionAbout_triggered()
{
QString message = tr("An ATA and NVMe S.M.A.R.T. data viewer for Linux") + "\n";
message += tr("Licensed under the GNU G.P.L. Version 3") + "\n";
message += tr("Made by Samantas5855") + "\n";
message += tr("Version") + " " + QString::number(PROJECT_VERSION_MAJOR) + "." + QString::number(PROJECT_VERSION_MINOR);
QMessageBox::about(this, tr("About QDiskInfo"), message);
}
void MainWindow::on_actionIgnore_C4_Reallocation_Event_Count_toggled(bool enabled)
{
settings.setValue("IgnoreC4", enabled);