Qt: Use SVGWidget for empty game list icon

pull/3746/head
Stenzek 4 months ago
parent b429993e08
commit 21c6ab5822
No known key found for this signature in database

@ -40,7 +40,7 @@
</spacer>
</item>
<item>
<widget class="QLabel" name="icon">
<widget class="SVGWidget" name="icon">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
@ -193,6 +193,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SVGWidget</class>
<extends>QWidget</extends>
<header>svgwidget.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="resources/duckstation-qt.qrc"/>
</resources>

@ -1860,7 +1860,7 @@ GameListWidget::GameListWidget(QWidget* parent, QAction* action_view_list, QActi
Ui::EmptyGameListWidget empty_ui;
empty_ui.setupUi(m_empty_widget);
empty_ui.supportedFormats->setText(qApp->translate("GameListWidget", SUPPORTED_FORMATS_STRING));
empty_ui.icon->setPixmap(QIcon(":/icons/monochrome/svg/information-line.svg"_L1).pixmap(72));
empty_ui.icon->setSource(":/icons/monochrome/svg/information-line.svg"_L1);
m_ui.stack->insertWidget(2, m_empty_widget);
m_ui.viewGameList->setDefaultAction(action_view_list);

Loading…
Cancel
Save