From a89c514d3fc916923c497d1fb41f2d73510b9135 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 1 Apr 2024 17:45:24 +1000 Subject: [PATCH] Qt: Minor typo corrections --- src/duckstation-qt/coverdownloaddialog.cpp | 4 +++- src/duckstation-qt/debuggerwindow.cpp | 2 ++ src/duckstation-qt/graphicssettingswidget.cpp | 4 ++-- src/duckstation-qt/mainwindow.cpp | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/duckstation-qt/coverdownloaddialog.cpp b/src/duckstation-qt/coverdownloaddialog.cpp index b921c42b2..010f3159f 100644 --- a/src/duckstation-qt/coverdownloaddialog.cpp +++ b/src/duckstation-qt/coverdownloaddialog.cpp @@ -1,7 +1,8 @@ -// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin +// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) #include "coverdownloaddialog.h" +#include "qthost.h" #include "core/game_list.h" @@ -10,6 +11,7 @@ CoverDownloadDialog::CoverDownloadDialog(QWidget* parent /*= nullptr*/) : QDialog(parent) { m_ui.setupUi(this); + setWindowIcon(QtHost::GetAppIcon()); m_ui.coverIcon->setPixmap(QIcon::fromTheme("artboard-2-line").pixmap(32)); updateEnabled(); diff --git a/src/duckstation-qt/debuggerwindow.cpp b/src/duckstation-qt/debuggerwindow.cpp index 34f86efcf..3eefcb3e1 100644 --- a/src/duckstation-qt/debuggerwindow.cpp +++ b/src/duckstation-qt/debuggerwindow.cpp @@ -420,6 +420,8 @@ void DebuggerWindow::closeEvent(QCloseEvent* event) void DebuggerWindow::setupAdditionalUi() { + setWindowIcon(QtHost::GetAppIcon()); + #ifdef _WIN32 QFont fixedFont; fixedFont.setFamily(QStringLiteral("Consolas")); diff --git a/src/duckstation-qt/graphicssettingswidget.cpp b/src/duckstation-qt/graphicssettingswidget.cpp index 891842a88..876d18fc9 100644 --- a/src/duckstation-qt/graphicssettingswidget.cpp +++ b/src/duckstation-qt/graphicssettingswidget.cpp @@ -346,7 +346,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget* "This can measurably improve performance in the Vulkan renderer.")); dialog->registerWidgetHelp( m_ui.stretchDisplayVertically, tr("Stretch Vertically"), tr("Unchecked"), - tr("Prefers stretching the display vertically instead of horizontally, wheen applying the display aspect ratio.")); + tr("Prefers stretching the display vertically instead of horizontally, when applying the display aspect ratio.")); #ifdef _WIN32 dialog->registerWidgetHelp(m_ui.blitSwapChain, tr("Use Blit Swap Chain"), tr("Unchecked"), tr("Uses a blit presentation model instead of flipping when using the Direct3D 11 " @@ -453,7 +453,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget* m_ui.screenshotFormat, tr("Screenshot Format"), tr("PNG"), tr("Selects the format which will be used to save screenshots. JPEG produces smaller files, but loses detail.")); dialog->registerWidgetHelp(m_ui.screenshotQuality, tr("Screenshot Quality"), - QStringLiteral("%1%%").arg(Settings::DEFAULT_DISPLAY_SCREENSHOT_QUALITY), + QStringLiteral("%1%").arg(Settings::DEFAULT_DISPLAY_SCREENSHOT_QUALITY), tr("Selects the quality at which screenshots will be compressed. Higher values preserve " "more detail for JPEG, and reduce file size for PNG.")); diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 2ec960585..21321219c 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -2957,7 +2957,6 @@ void MainWindow::openCPUDebugger() Assert(!m_debugger_window); m_debugger_window = new DebuggerWindow(); - m_debugger_window->setWindowIcon(windowIcon()); connect(m_debugger_window, &DebuggerWindow::closed, this, &MainWindow::onCPUDebuggerClosed); m_debugger_window->show(); }