From db06a8b6d1395aff8676eca1111aeab31c59466c Mon Sep 17 00:00:00 2001 From: Eugen Fischer Date: Fri, 24 Nov 2023 12:41:51 +0100 Subject: [PATCH] Fixed Icons --- src/gui/nmcgui/nmcsettingsdialog.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/nmcgui/nmcsettingsdialog.cpp b/src/gui/nmcgui/nmcsettingsdialog.cpp index 2dcd4206baa77..c594b217d4e0c 100644 --- a/src/gui/nmcgui/nmcsettingsdialog.cpp +++ b/src/gui/nmcgui/nmcsettingsdialog.cpp @@ -15,8 +15,6 @@ #include "nmcsettingsdialog.h" #include "QtWidgets/qtoolbar.h" #include "settingsdialog.h" -#include "ui_settingsdialog.h" - namespace OCC { @@ -32,12 +30,12 @@ void NMCSettingsDialog::slotSwitchPage(QAction *action) SettingsDialog::slotSwitchPage(action); customizeStyle(); - if(action->text() == tr("General")) + if(action->text() == QCoreApplication::translate("OCC::SettingsDialog","General")) { const QIcon openIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/NMCIcons/settings_magenta.svg")); action->setIcon(openIcon); } - else if(action->text() == tr("Network")) + else if(action->text() == QCoreApplication::translate("OCC::SettingsDialog","Network")) { const QIcon openIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/NMCIcons/network_magenta.svg")); action->setIcon(openIcon); @@ -47,7 +45,6 @@ void NMCSettingsDialog::slotSwitchPage(QAction *action) const QIcon openIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/NMCIcons/account_magenta.svg")); action->setIcon(openIcon); } - }