diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-17 12:48:41 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-17 12:54:16 +0200 |
commit | 7cfbb8bfb1c4689dc78115931bab96d657be88be (patch) | |
tree | 2ddb893809114920bbc3f15f6592493bdd86d7cd /plugingui/maintab.cc | |
parent | f0e8f4c95349bbc658bd73f885908b7c324dbb46 (diff) |
Add version number to GUI.
Diffstat (limited to 'plugingui/maintab.cc')
-rw-r--r-- | plugingui/maintab.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc index a9ae9f2..9b910b8 100644 --- a/plugingui/maintab.cc +++ b/plugingui/maintab.cc @@ -26,6 +26,8 @@ */ #include "maintab.h" +#include <version.h> + namespace GUI { @@ -59,6 +61,12 @@ MainTab::MainTab(Widget* parent) : Widget(parent) status_frame.setContent(&statusframe_content); humanizer_frame.setContent(&humanizerframe_content); diskstreaming_frame.setContent(&diskstreamingframe_content); + + version_label.setText("v." + std::string(VERSION) + " "); + version_label.setAlignment(TextAlignment::right); + version_label.setColour(Colour(0.1, 0.1, 0.2)); + layout.addItem(&version_label); + layout.setPosition(&version_label, GridLayout::GridRange{1, 2, 31, 32}); } } // GUI:: |