Skip to content

Commit

Permalink
gui: add version to modal overlay (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdoving authored May 31, 2021
1 parent e4dbe30 commit d3eea78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/qt/forms/modaloverlay.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>640</width>
<height>385</height>
<height>401</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -333,6 +333,13 @@ QLabel { color: rgb(40,40,40); }</string>
<property name="topMargin">
<number>10</number>
</property>
<item>
<widget class="QLabel" name="versionLabel">
<property name="text">
<string></string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
Expand Down
3 changes: 3 additions & 0 deletions src/qt/modaloverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
#include "modaloverlay.h"
#include "ui_modaloverlay.h"

#include <clientversion.h>
#include "guiutil.h"

#include "chainparams.h"

#include <QResizeEvent>
#include <QPropertyAnimation>
#include <QString>

ModalOverlay::ModalOverlay(QWidget *parent) :
QWidget(parent),
Expand All @@ -30,6 +32,7 @@ userClosed(false)

blockProcessTime.clear();
setVisible(false);
ui->versionLabel->setText(QString::fromStdString(FormatFullVersion()));
}

ModalOverlay::~ModalOverlay()
Expand Down

0 comments on commit d3eea78

Please sign in to comment.