By default on Windows font point size 8 points we need 11 like on Linux.
--HG-- branch : develop
This commit is contained in:
parent
6221833f45
commit
eb2e3ea799
|
@ -32,6 +32,7 @@
|
|||
#include <QDate>
|
||||
#include <QDesktopServices>
|
||||
#include <QMessageBox>
|
||||
#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
|
||||
|
|
|
@ -48,6 +48,8 @@ private:
|
|||
Ui::DialogAboutApp *ui;
|
||||
Q_DISABLE_COPY(DialogAboutApp)
|
||||
|
||||
void FontPointSize(QWidget *w, int pointSize);
|
||||
|
||||
private slots:
|
||||
void webButtonClicked();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user