DeviceInfo: refactor translation of DeviceInfoPage

- For Boot and Device info widgets, add a retranslateUi() method,
   since the labels change not only in response to translation
   events but also UI events.

FIXES #779
This commit is contained in:
Adriaan de Groot 2017-08-28 04:40:31 -04:00
parent 7e66499f36
commit 7791c3cb19
4 changed files with 43 additions and 22 deletions

View file

@ -30,6 +30,9 @@ class BootInfoWidget : public QWidget
public:
explicit BootInfoWidget( QWidget* parent = nullptr );
public slots:
void retranslateUi();
private:
QLabel* m_bootIcon;
QLabel* m_bootLabel;