add git revision to the musredit about dialog.

This commit is contained in:
suter_a 2017-02-08 12:31:30 +01:00
parent 5908d8791a
commit ab15fa833e
2 changed files with 25 additions and 5 deletions

View File

@ -27,6 +27,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/ ***************************************************************************/
#include "git-revision.h"
#include "PMusrEditAbout.h" #include "PMusrEditAbout.h"
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
@ -37,6 +38,8 @@ PMusrEditAbout::PMusrEditAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(par
{ {
setupUi(this); setupUi(this);
fGitRev_label->setText(QString("git: %1").arg(GIT_REVISION));
setModal(true); setModal(true);
} }

View File

@ -14,16 +14,16 @@
<string>Musr Edit About</string> <string>Musr Edit About</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../musredit.qrc"> <iconset>
<normaloff>:/images/musrfit.xpm</normaloff>:/images/musrfit.xpm</iconset> <normaloff>:/images/musrfit.xpm</normaloff>:/images/musrfit.xpm</iconset>
</property> </property>
<widget class="QWidget" name="layoutWidget"> <widget class="QWidget" name="">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>11</x> <x>12</x>
<y>11</y> <y>12</y>
<width>371</width> <width>371</width>
<height>169</height> <height>161</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
@ -46,6 +46,23 @@ p, li { white-space: pre-wrap; }
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QLabel" name="fGitRev_label">
<property name="font">
<font>
<weight>75</weight>
<italic>true</italic>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>git:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item> <item>
<widget class="QLabel" name="fDetails_label"> <widget class="QLabel" name="fDetails_label">
<property name="text"> <property name="text">