From 9d1c60239e37243e456efbb1d2dcaba153b82408 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 15 Jun 2023 20:58:53 +1000 Subject: [PATCH] Qt: Fix icon in memory card create dialog --- pcsx2-qt/Settings/CreateMemoryCardDialog.cpp | 1 + pcsx2-qt/Settings/CreateMemoryCardDialog.ui | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pcsx2-qt/Settings/CreateMemoryCardDialog.cpp b/pcsx2-qt/Settings/CreateMemoryCardDialog.cpp index 1b350b4d55..542d09242e 100644 --- a/pcsx2-qt/Settings/CreateMemoryCardDialog.cpp +++ b/pcsx2-qt/Settings/CreateMemoryCardDialog.cpp @@ -31,6 +31,7 @@ CreateMemoryCardDialog::CreateMemoryCardDialog(QWidget* parent /* = nullptr */) : QDialog(parent) { m_ui.setupUi(this); + m_ui.icon->setPixmap(QIcon::fromTheme("memcard-line").pixmap(m_ui.icon->width())); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); diff --git a/pcsx2-qt/Settings/CreateMemoryCardDialog.ui b/pcsx2-qt/Settings/CreateMemoryCardDialog.ui index bf84eab4fd..442d3a8e8c 100644 --- a/pcsx2-qt/Settings/CreateMemoryCardDialog.ui +++ b/pcsx2-qt/Settings/CreateMemoryCardDialog.ui @@ -18,12 +18,15 @@ - + 10 + + + 10 - + 48 @@ -35,6 +38,12 @@ 48 48 + + + :/icons/black/svg/memcard-line.svg + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop