diff --git a/src/AboutDialog.h b/src/AboutDialog.h index a8e28a1e..aca97e70 100644 --- a/src/AboutDialog.h +++ b/src/AboutDialog.h @@ -1,23 +1,23 @@ #pragma once +#include "openscad.h" #include "qtgettext.h" #include "ui_AboutDialog.h" -#define STRINGIFY(x) #x -#define TOSTRING(x) STRINGIFY(x) - class AboutDialog : public QDialog, public Ui::AboutDialog { Q_OBJECT; public: AboutDialog(QWidget *) { setupUi(this); - this->setWindowTitle( QString(_("About OpenSCAD")) + " " + QString(TOSTRING( OPENSCAD_VERSION)) ); - this->aboutText->setOpenExternalLinks(true); + this->setWindowTitle( QString(_("About OpenSCAD")) + " " + openscad_versionnumber.c_str()); QUrl flattr_qurl(":icons/flattr.png" ); this->aboutText->loadResource( QTextDocument::ImageResource, flattr_qurl ); QString tmp = this->aboutText->toHtml(); - tmp.replace("__VERSION__",QString(TOSTRING(OPENSCAD_VERSION))); + tmp.replace("__VERSION__", openscad_versionnumber.c_str()); this->aboutText->setHtml(tmp); } + +public slots: + void on_okPushButton_clicked() { accept(); } }; diff --git a/src/AboutDialog.html b/src/AboutDialog.html index d138eecb..8eefeecf 100644 --- a/src/AboutDialog.html +++ b/src/AboutDialog.html @@ -19,7 +19,7 @@

-OpenSCAD version __VERSION__ +OpenSCAD version __VERSION__

diff --git a/src/AboutDialog.ui b/src/AboutDialog.ui index 587d27e2..0a3bedf9 100644 --- a/src/AboutDialog.ui +++ b/src/AboutDialog.ui @@ -6,16 +6,98 @@ 0 0 - 567 - 359 + 628 + 419 + + + 0 + 0 + + About OpenSCAD - - + + + 16 + + + 6 + + + + + 0 + + + 6 + + + + + + 96 + 96 + + + + + 96 + 96 + + + + + + + :/icons/openscad.png + + + true + + + + + + + <html><head/><body> +<p style="font-family: 'Open Sans', 'Droid Sans', 'sans-serif'; font-weight: bold; padding-bottom: 0; margin-bottom: 0; font-size: 22pt;"><span style="color: green;">Open</span>SCAD</p> +<p style="font-family: 'Open Sans', 'Droid Sans', 'sans-serif'; font-weight: normal; font-size: 14pt; padding-top: 0; margin-top: 0; margin-left: 2em;">The Programmers Solid 3D CAD Modeller</p> +</body></html> + + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 20 + 2 + + + + + + + + + + 400 + 200 + + true @@ -24,8 +106,31 @@ qrc:/src/AboutDialog.html + + true + + + + + OK + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + +