summaryrefslogtreecommitdiff
path: root/src/AboutDialog.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-28 02:42:20 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-28 02:42:20 (GMT)
commit1e64dddf1ea30282c89de7f35854a68614234652 (patch)
tree165d37c1c66f6ff79d48c74794238b3f0bed09da /src/AboutDialog.h
parent5c779159c208ca3d88c88479ab29f9cd66574859 (diff)
parentd0856efe6da545693f9c50a8a2514a9f999ab5ef (diff)
Merge branch 'master' of github.com:openscad/openscad into issue159
Diffstat (limited to 'src/AboutDialog.h')
-rw-r--r--src/AboutDialog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/AboutDialog.h b/src/AboutDialog.h
index 34122a0..2211e63 100644
--- a/src/AboutDialog.h
+++ b/src/AboutDialog.h
@@ -3,15 +3,22 @@
#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);
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)));
+ this->aboutText->setHtml(tmp);
}
};
contact: Jan Huwald // Impressum