diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-05-19 20:50:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-19 20:50:16 +0200 |
| commit | 72d38ac61555b2cc66b38f7e7e0468620ca642e6 (patch) | |
| tree | 2570012a02a45de99a416f61a8f14213602012cc /Source/Core | |
| parent | e54880e9f309751458889fa8d95e32e5e2e35190 (diff) | |
| parent | bc504d9f8439ebe688b174232e5f0874f9560b7c (diff) | |
Merge pull request #6906 from spycrab/qt_gfx_prettytitle
Qt/GraphicsWindow: Show display name in title
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp b/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp index 8cbe383e18..638eaf73a2 100644 --- a/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp +++ b/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp @@ -12,6 +12,7 @@ #include <QVBoxLayout> #include "Core/ConfigManager.h" + #include "DolphinQt2/Config/Graphics/AdvancedWidget.h" #include "DolphinQt2/Config/Graphics/EnhancementsWidget.h" #include "DolphinQt2/Config/Graphics/GeneralWidget.h" @@ -19,6 +20,8 @@ #include "DolphinQt2/Config/Graphics/SoftwareRendererWidget.h" #include "DolphinQt2/MainWindow.h" #include "DolphinQt2/QtUtils/WrapInScrollArea.h" + +#include "VideoCommon/VideoBackendBase.h" #include "VideoCommon/VideoConfig.h" GraphicsWindow::GraphicsWindow(X11Utils::XRRConfiguration* xrr_config, MainWindow* parent) @@ -93,7 +96,8 @@ void GraphicsWindow::CreateMainLayout() void GraphicsWindow::OnBackendChanged(const QString& backend) { - setWindowTitle(tr("Dolphin %1 Graphics Configuration").arg(backend)); + setWindowTitle(tr("%1 Graphics Configuration") + .arg(QString::fromStdString(g_video_backend->GetDisplayName()))); if (backend == QStringLiteral("Software Renderer") && m_tab_widget->count() > 1) { m_tab_widget->clear(); |
