From fd79ef074fcaceba7e5caf0d5283b96676ce6779 Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Mon, 11 Sep 2017 19:15:28 -0400 Subject: Made the monitor widget label names translateable --- .../lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/lumina-desktop/desktop-plugins/systemmonitor') diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp index 951bcc98..7097e2a9 100644 --- a/src-qt5/core/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp +++ b/src-qt5/core/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp @@ -17,6 +17,9 @@ MonitorWidget::MonitorWidget(QWidget *parent) : QWidget(parent), ui(new Ui::Moni upTimer->setInterval(2000); //update every 2 seconds connect(upTimer, SIGNAL(timeout()), this, SLOT(UpdateStats()) ); LoadIcons(); + ui->label->setText( tr("CPU Temp:") ); + ui->label_2->setText( tr("CPU Usage:") ); + ui->label_3->setText( tr("Mem Usage:") ); upTimer->start(); } @@ -25,7 +28,7 @@ MonitorWidget::~MonitorWidget(){ } void MonitorWidget::LoadIcons(){ - ui->tabWidget->setTabIcon(0,LXDG::findIcon("appointment-recurring","") ); //Summary + ui->tabWidget->setTabIcon(0,LXDG::findIcon("appointment-blank","") ); //Summary ui->tabWidget->setTabIcon(1,LXDG::findIcon("drive-harddisk","") ); //Disk Usage //ui->tabWidget->setTabIcon(1,LXDG::findIcon("cpu","") ); //CPU Log //ui->tabWidget->setTabIcon(2,LXDG::findIcon("media-flash-memory-stick","") ); //Mem Log @@ -60,4 +63,4 @@ SysMonitorPlugin::SysMonitorPlugin(QWidget *parent, QString ID) : LDPlugin(paren SysMonitorPlugin::~SysMonitorPlugin(){ //qDebug() << "Remove SysMonitorPlugin"; -} \ No newline at end of file +} -- cgit