Commit 30a5d0c8a1f3e5ce9439f2fd0a47a8c6eca7d74a

Authored by Peter Zhigalov
1 parent 6a2a37bf

Унифицировал диалоги в проекте с Qt

Showing 1 changed file with 8 additions and 4 deletions
src_qt/mainwindow.cpp
... ... @@ -579,11 +579,13 @@ void MainWindow::on_actionAbout_FEM_Draw_triggered()
579 579 msgBox.setStandardButtons(QMessageBox::Ok);
580 580 msgBox.setDefaultButton(QMessageBox::Ok);
581 581 msgBox.setWindowTitle("About");
582   - msgBox.setText("<b>FEM Draw v1.6 (Qt)</b><br><br>"
  582 + msgBox.setText(QString("<b>FEM Draw v1.6 (Qt)</b>").replace(" ", "&nbsp;"));
  583 + msgBox.setInformativeText(QString(
583 584 "<a href=\"https://fami.codefreak.ru/osp/fem_draw/\">https://fami.codefreak.ru/osp/fem_draw/</a><br>"
584 585 "License: <a href=\"http://www.gnu.org/copyleft/gpl.html\">GNU GPL v3</a><br><br>"
585 586 "Copyright &copy; 2014-2016<br>"
586   - "Peter Zhigalov &lt;<a href=\"mailto:peter.zhigalov@gmail.com\">peter.zhigalov@gmail.com</a>&gt;");
  587 + "Peter Zhigalov &lt;<a href=\"mailto:peter.zhigalov@gmail.com\">peter.zhigalov@gmail.com</a>&gt;"
  588 + ).replace(" ", "&nbsp;").replace("a&nbsp;href", "a href"));
587 589 msgBox.setIconPixmap(QPixmap::fromImage(QImage(":/resources/icon_64.png")));
588 590 msgBox.setWindowIcon(QIcon(":/resources/icon.ico"));
589 591 msgBox.exec();
... ... @@ -597,7 +599,8 @@ void MainWindow::on_actionAbout_Third_Party_Libraries_triggered()
597 599 msgBox.setStandardButtons(QMessageBox::Ok);
598 600 msgBox.setDefaultButton(QMessageBox::Ok);
599 601 msgBox.setWindowTitle("About Third Party Libraries");
600   - msgBox.setText("<b>Third Party Libraries:</b><br>"
  602 + msgBox.setText(QString("<b>Third Party Libraries:</b>").replace(" ", "&nbsp;"));
  603 + msgBox.setInformativeText(QString(
601 604 "<table border=\"0\">"
602 605 "<tr><td style=\"padding-right:8%\">Library:</td><td>Jon Olick JPEG Writer</td></tr>"
603 606 "<tr><td style=\"padding-right:8%\">License:</td><td>public domain</td></tr>"
... ... @@ -612,7 +615,8 @@ void MainWindow::on_actionAbout_Third_Party_Libraries_triggered()
612 615 "<tr><td style=\"padding-right:8%\">Library:</td><td>Jon Olick TGA Writer</td></tr>"
613 616 "<tr><td style=\"padding-right:8%\">License:</td><td>public domain</td></tr>"
614 617 "<tr><td style=\"padding-right:8%\">Website:</td><td><a href=\"http://www.jonolick.com/code.html\">http://www.jonolick.com/code.html</td></tr>"
615   - "</table>");
  618 + "</table>"
  619 + ).replace(" ", "&nbsp;").replace("a&nbsp;href", "a href").replace("table&nbsp;border", "table border").replace("td&nbsp;style", "td style"));
616 620 msgBox.setIconPixmap(QPixmap::fromImage(QImage(":/resources/icon_64.png")));
617 621 msgBox.setWindowIcon(QIcon(":/resources/icon.ico"));
618 622 msgBox.exec();
... ...