|
43 | 43 | #include "SimulationOutputWidget.h" |
44 | 44 | #include "FetchInterfaceDataDialog.h" |
45 | 45 | #include "TLMCoSimulationOutputWidget.h" |
| 46 | +#ifdef WIN32 |
| 47 | +#include "version.h" |
| 48 | +#endif |
46 | 49 |
|
47 | 50 | MainWindow::MainWindow(QSplashScreen *pSplashScreen, bool debug, QWidget *parent) |
48 | 51 | : QMainWindow(parent), mDebug(debug), mExitApplicationStatus(false) |
@@ -3293,9 +3296,15 @@ AboutOMEditWidget::AboutOMEditWidget(MainWindow *pMainWindow) |
3293 | 3296 | // OMEdit intro text |
3294 | 3297 | Label *pIntroLabel = new Label(Helper::applicationIntroText); |
3295 | 3298 | pIntroLabel->setFont(QFont(Helper::systemFontInfo.family(), Helper::systemFontInfo.pointSize() + 3 + MAC_FONT_FACTOR)); |
| 3299 | +#ifdef WIN32 |
| 3300 | + Label *pOMEditVersionLabel = new Label(GIT_SHA); |
| 3301 | +#else |
| 3302 | + Label *pOMEditVersionLabel = new Label; |
| 3303 | +#endif |
| 3304 | + pOMEditVersionLabel->setFont(QFont(Helper::systemFontInfo.family(), Helper::systemFontInfo.pointSize() - 3 + MAC_FONT_FACTOR)); |
3296 | 3305 | // OpenModelica compiler info |
3297 | 3306 | Label *pConnectedLabel = new Label(QString("Connected to ").append(Helper::OpenModelicaVersion)); |
3298 | | - pConnectedLabel->setFont(QFont(Helper::systemFontInfo.family(), Helper::systemFontInfo.pointSize() - 2 + MAC_FONT_FACTOR)); |
| 3307 | + pConnectedLabel->setFont(QFont(Helper::systemFontInfo.family(), Helper::systemFontInfo.pointSize() - 3 + MAC_FONT_FACTOR)); |
3299 | 3308 | // about text |
3300 | 3309 | QString aboutText = QString("Copyright <b>Open Source Modelica Consortium (OSMC)</b>.<br />") |
3301 | 3310 | .append("Distributed under OSMC-PL and GPL, see <u><a href=\"http://www.openmodelica.org\">www.openmodelica.org</a></u>.<br /><br />") |
@@ -3346,11 +3355,12 @@ AboutOMEditWidget::AboutOMEditWidget(MainWindow *pMainWindow) |
3346 | 3355 | pMainLayout->setContentsMargins(45, 200, 45, 20); |
3347 | 3356 | pMainLayout->setAlignment(Qt::AlignTop | Qt::AlignLeft); |
3348 | 3357 | pMainLayout->addWidget(pIntroLabel, 1, 0, 1, 1, Qt::AlignHCenter); |
3349 | | - pMainLayout->addWidget(pConnectedLabel, 2, 0, 1, 1, Qt::AlignHCenter); |
3350 | | - pMainLayout->addLayout(pAboutLayout, 3, 0, 1, 1); |
3351 | | - pMainLayout->addWidget(pContributorsHeading, 4, 0, 1, 1); |
3352 | | - pMainLayout->addWidget(pScrollArea, 5, 0, 1, 1); |
3353 | | - pMainLayout->addWidget(pCloseButton, 6, 0, 1, 1, Qt::AlignRight); |
| 3358 | + pMainLayout->addWidget(pOMEditVersionLabel, 2, 0, 1, 1, Qt::AlignHCenter); |
| 3359 | + pMainLayout->addWidget(pConnectedLabel, 3, 0, 1, 1, Qt::AlignHCenter); |
| 3360 | + pMainLayout->addLayout(pAboutLayout, 4, 0, 1, 1); |
| 3361 | + pMainLayout->addWidget(pContributorsHeading, 5, 0, 1, 1); |
| 3362 | + pMainLayout->addWidget(pScrollArea, 6, 0, 1, 1); |
| 3363 | + pMainLayout->addWidget(pCloseButton, 7, 0, 1, 1, Qt::AlignRight); |
3354 | 3364 | setLayout(pMainLayout); |
3355 | 3365 | } |
3356 | 3366 |
|
|
0 commit comments