mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +03:00
Add an about Qt dialog
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user