Skip to content

Commit

Permalink
Merge pull request #449 from happycube/issue-240-2
Browse files Browse the repository at this point in the history
Issue 240 - Added git information to about dialogues in ld-analyse an…
  • Loading branch information
Simon Inns committed Jan 28, 2020
2 parents 96baa15 + d80b996 commit 4930083
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 12 deletions.
2 changes: 2 additions & 0 deletions tools/ld-analyse/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ AboutDialog::AboutDialog(QWidget *parent) :
ui(new Ui::AboutDialog)
{
ui->setupUi(this);

ui->gitVersionLabel->setText(QString("Build - Branch: %1 / Commit: %2").arg(APP_BRANCH, APP_COMMIT));
}

AboutDialog::~AboutDialog()
Expand Down
17 changes: 15 additions & 2 deletions tools/ld-analyse/aboutdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>180</x>
<x>410</x>
<y>170</y>
<width>341</width>
<width>111</width>
<height>32</height>
</rect>
</property>
Expand Down Expand Up @@ -88,6 +88,19 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu'; font-size:10pt;&quot;&gt;Open-source software&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="gitVersionLabel">
<property name="geometry">
<rect>
<x>20</x>
<y>170</y>
<width>371</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Git version information</string>
</property>
</widget>
</widget>
<resources>
<include location="ld-analyse-resources.qrc"/>
Expand Down
2 changes: 2 additions & 0 deletions tools/ld-process-efm/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ AboutDialog::AboutDialog(QWidget *parent) :
ui(new Ui::AboutDialog)
{
ui->setupUi(this);

ui->gitVersionLabel->setText(QString("Build - Branch: %1 / Commit: %2").arg(APP_BRANCH, APP_COMMIT));
}

AboutDialog::~AboutDialog()
Expand Down
33 changes: 23 additions & 10 deletions tools/ld-process-efm/aboutdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>10</x>
<x>370</x>
<y>180</y>
<width>481</width>
<width>121</width>
<height>32</height>
</rect>
</property>
Expand Down Expand Up @@ -78,14 +78,27 @@
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:18pt; font-weight:600;&quot;&gt;ld-process-efm&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;ld-decode EFM decoder application&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;(c) 2019 Simon Inns&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;https://www.domesday86.com&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Released under the GPLv3&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Open-source software&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu'; font-size:18pt; font-weight:600;&quot;&gt;ld-process-efm&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;ld-decode EFM decoder application&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;(c) 2019 Simon Inns&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;https://www.domesday86.com&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;Released under the GPLv3&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu';&quot;&gt;Open-source software&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QLabel" name="gitVersionLabel">
<property name="geometry">
<rect>
<x>10</x>
<y>186</y>
<width>351</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Git version information</string>
</property>
</widget>
</widget>
Expand Down

0 comments on commit 4930083

Please sign in to comment.