upnpbrowser: center text in topbox

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: d357835b38
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-19 (Mon, 19 Jun 2017)

Origin message was:
------------------
- upnpbrowser: center text in topbox

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
vanhofen
2017-06-19 21:20:19 +02:00
committed by Thilo Graf
parent edbade1684
commit 0b9047bfd0

View File

@@ -942,7 +942,7 @@ void CUpnpBrowserGui::paintDeviceInfo()
topbox.setDimensionsAll(m_x, m_y, m_width, m_topbox_height);
topbox.setCorner(RADIUS_LARGE);
topbox.setText(tmp, CTextBox::AUTO_WIDTH);
topbox.setText(tmp, CTextBox::AUTO_WIDTH | CTextBox::CENTER);
topbox.paint0();
}
@@ -1144,7 +1144,7 @@ void CUpnpBrowserGui::paintItemInfo(UPnPEntry *entry)
}
topbox.setCorner(RADIUS_LARGE);
topbox.setText(tmp, CTextBox::AUTO_WIDTH);
topbox.setText(tmp, CTextBox::AUTO_WIDTH | CTextBox::CENTER);
topbox.paint0();
}