diff --git a/src/app/dialogs/app/dialogaboutapp.cpp b/src/app/dialogs/app/dialogaboutapp.cpp index 6e3878c41..1961177c9 100644 --- a/src/app/dialogs/app/dialogaboutapp.cpp +++ b/src/app/dialogs/app/dialogaboutapp.cpp @@ -32,6 +32,7 @@ #include #include #include +#include "../../options.h" //--------------------------------------------------------------------------------------------------------------------- DialogAboutApp::DialogAboutApp(QWidget *parent) : @@ -52,9 +53,15 @@ DialogAboutApp::DialogAboutApp(QWidget *parent) : "KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY " "AND FITNESS FOR A PARTICULAR PURPOSE.")); + ui->pushButton_Web_Site->setText(tr("Web site : %1").arg(VER_COMPANYDOMAIN_STR)); connect(ui->pushButton_Web_Site, &QPushButton::clicked, this, &DialogAboutApp::webButtonClicked ); + // By default on Windows font point size 8 points we need 11 like on Linux. + FontPointSize(ui->label_Legal_Stuff, 11); + FontPointSize(ui->label_contrib_label, 11); + FontPointSize(ui->label_Valentina_Built, 11); + FontPointSize(ui->label_QT_Version, 11); } //--------------------------------------------------------------------------------------------------------------------- @@ -63,6 +70,16 @@ DialogAboutApp::~DialogAboutApp() delete ui; } +//--------------------------------------------------------------------------------------------------------------------- +void DialogAboutApp::FontPointSize(QWidget *w, int pointSize) +{ + SCASSERT(w != nullptr); + + QFont font = w->font(); + font.setPointSize(pointSize); + w->setFont(font); +} + //--------------------------------------------------------------------------------------------------------------------- /** * @brief Fake button clicked diff --git a/src/app/dialogs/app/dialogaboutapp.h b/src/app/dialogs/app/dialogaboutapp.h index 8c6f27341..97c07a104 100644 --- a/src/app/dialogs/app/dialogaboutapp.h +++ b/src/app/dialogs/app/dialogaboutapp.h @@ -48,6 +48,8 @@ private: Ui::DialogAboutApp *ui; Q_DISABLE_COPY(DialogAboutApp) + void FontPointSize(QWidget *w, int pointSize); + private slots: void webButtonClicked(); };