- added help in window About\nchanged About QMessageBox by a window

This commit is contained in:
2023-02-13 16:54:56 +01:00
parent d681d65d9c
commit ca61c6013e
8 changed files with 202 additions and 57 deletions
+15 -10
View File
@@ -46,8 +46,19 @@ MainWindow::MainWindow(QWidget *parent)
// init configuration window
config.setupUi(&Configuration);
// init of About
this->about.description = tr("Client for rsync server\n\nYou click on file to enqueue it, and RyncUI Download one file a time");
// init about window
AboutW.setupUi(&aboutDialog);
// text of About
QString aboutText = tr("<h2>Client for rsync server</h2>") +
"<b>" + tr("Version") + ": " + this->about.version + "</b><br>" +
"<b>" + tr("Licence") + ": " + this->about.licence + "</b><br>" +
"<b>" + tr("Author") + ": " + this->about.author + "</b><br>" +
"<b>" + tr("EMail") + ": " + this->about.email + "</b><br>" +
"<b>" + tr("Source code") + ": " + this->about.git + "</b><br>" +
tr("You click on file to enqueue it, and RyncUI Download one file a time");
AboutW.TextAbout->setHtml(aboutText);
// connectors
connect(this, &MainWindow::progressSignal, ui->progressBar, &QProgressBar::setValue);
@@ -863,13 +874,7 @@ void MainWindow::saveSettings()
// About
void MainWindow::on_actionAbout_triggered()
{
QString text = this->about.description + "\n\n" +
tr("Version") + ": " + this->about.version + "\n" +
tr("Licence") + ": " + this->about.licence + "\n" +
tr("Author") + ": " + this->about.author + "\n" +
tr("EMail") + ": " + this->about.email + "\n" +
tr("Source code") + ": " + this->about.git;
QMessageBox::about(this, this->about.title, text);
aboutDialog.show();
}
// About QT
@@ -1029,7 +1034,7 @@ void MainWindow::on_actionDownload_triggered()
}
*/
// Chnage toolbar style
// Change toolbar style
void MainWindow::on_comboBox_currentIndexChanged(int index)
{
ui->toolBar->setToolButtonStyle((Qt::ToolButtonStyle)index);