summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-11-30 14:04:08 +0100
committerLéo Lam <leo@leolam.fr>2020-11-30 14:04:08 +0100
commita5880fa4027ad0a39ea3b2bea77eac7bf1a17949 (patch)
tree58f25555aae83b7c5c1098a597d0034ae1133ed6 /Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
parentd043c5f81d9ad6afd039cd1b4b892275ad2c3bb5 (diff)
Qt: Add missing tr calls for tooltip descriptions
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp37
1 files changed, 16 insertions, 21 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
index 02b4f06230..cc5fbb387e 100644
--- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
+++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
@@ -276,44 +276,39 @@ void GeneralWidget::AddDescriptions()
"unsure, leave this unchecked.</dolphin_emphasis>");
m_backend_combo->SetTitle(tr("Backend"));
- m_backend_combo->SetDescription(QString::fromStdString(TR_BACKEND_DESCRIPTION));
+ m_backend_combo->SetDescription(tr(TR_BACKEND_DESCRIPTION));
m_adapter_combo->SetTitle(tr("Adapter"));
- m_adapter_combo->SetDescription(QString::fromStdString(TR_ADAPTER_DESCRIPTION));
+ m_adapter_combo->SetDescription(tr(TR_ADAPTER_DESCRIPTION));
m_aspect_combo->SetTitle(tr("Aspect Ratio"));
- m_aspect_combo->SetDescription(QString::fromStdString(TR_ASPECT_RATIO_DESCRIPTION));
+ m_aspect_combo->SetDescription(tr(TR_ASPECT_RATIO_DESCRIPTION));
- m_enable_vsync->SetDescription(QString::fromStdString(TR_VSYNC_DESCRIPTION));
+ m_enable_vsync->SetDescription(tr(TR_VSYNC_DESCRIPTION));
- m_enable_fullscreen->SetDescription(QString::fromStdString(TR_FULLSCREEN_DESCRIPTION));
+ m_enable_fullscreen->SetDescription(tr(TR_FULLSCREEN_DESCRIPTION));
- m_show_fps->SetDescription(QString::fromStdString(TR_SHOW_FPS_DESCRIPTION));
+ m_show_fps->SetDescription(tr(TR_SHOW_FPS_DESCRIPTION));
- m_show_ping->SetDescription(QString::fromStdString(TR_SHOW_NETPLAY_PING_DESCRIPTION));
+ m_show_ping->SetDescription(tr(TR_SHOW_NETPLAY_PING_DESCRIPTION));
- m_log_render_time->SetDescription(QString::fromStdString(TR_LOG_RENDERTIME_DESCRIPTION));
+ m_log_render_time->SetDescription(tr(TR_LOG_RENDERTIME_DESCRIPTION));
- m_autoadjust_window_size->SetDescription(QString::fromStdString(TR_AUTOSIZE_DESCRIPTION));
+ m_autoadjust_window_size->SetDescription(tr(TR_AUTOSIZE_DESCRIPTION));
- m_show_messages->SetDescription(QString::fromStdString(TR_SHOW_NETPLAY_MESSAGES_DESCRIPTION));
+ m_show_messages->SetDescription(tr(TR_SHOW_NETPLAY_MESSAGES_DESCRIPTION));
- m_render_main_window->SetDescription(QString::fromStdString(TR_RENDER_TO_MAINWINDOW_DESCRIPTION));
+ m_render_main_window->SetDescription(tr(TR_RENDER_TO_MAINWINDOW_DESCRIPTION));
- m_shader_compilation_mode[0]->SetDescription(
- QString::fromStdString(TR_SHADER_COMPILE_SYNC_DESCRIPTION));
+ m_shader_compilation_mode[0]->SetDescription(tr(TR_SHADER_COMPILE_SYNC_DESCRIPTION));
- m_shader_compilation_mode[1]->SetDescription(
- QString::fromStdString(TR_SHADER_COMPILE_SYNC_UBER_DESCRIPTION));
+ m_shader_compilation_mode[1]->SetDescription(tr(TR_SHADER_COMPILE_SYNC_UBER_DESCRIPTION));
- m_shader_compilation_mode[2]->SetDescription(
- QString::fromStdString(TR_SHADER_COMPILE_ASYNC_UBER_DESCRIPTION));
+ m_shader_compilation_mode[2]->SetDescription(tr(TR_SHADER_COMPILE_ASYNC_UBER_DESCRIPTION));
- m_shader_compilation_mode[3]->SetDescription(
- QString::fromStdString(TR_SHADER_COMPILE_ASYNC_SKIP_DESCRIPTION));
+ m_shader_compilation_mode[3]->SetDescription(tr(TR_SHADER_COMPILE_ASYNC_SKIP_DESCRIPTION));
- m_wait_for_shaders->SetDescription(
- QString::fromStdString(TR_SHADER_COMPILE_BEFORE_START_DESCRIPTION));
+ m_wait_for_shaders->SetDescription(tr(TR_SHADER_COMPILE_BEFORE_START_DESCRIPTION));
}
void GeneralWidget::OnBackendChanged(const QString& backend_name)