From e1616af98cd9a47c391a7bcba1b5bfc14dbf75af Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 9 Sep 2023 15:08:13 +1000 Subject: [PATCH] Qt: Set memcard name scrollbars to always-off And mirror the text in the tooltip. Closes #9139. --- pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp b/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp index e4cdfe0e56..09ff197372 100644 --- a/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp +++ b/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp @@ -481,6 +481,8 @@ MemoryCardSlotWidget::MemoryCardSlotWidget(QWidget* parent) { setAcceptDrops(true); setSelectionMode(NoSelection); + setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); + setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); } MemoryCardSlotWidget::~MemoryCardSlotWidget() = default; @@ -537,4 +539,6 @@ void MemoryCardSlotWidget::setCard(const std::optional& name, bool item->setFont(font); item->setForeground(palette().brush(QPalette::Disabled, QPalette::Text)); } + + item->setToolTip(item->text()); }