mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-23 10:30:23 +00:00
Qt: Add game list button to toggle game icons (#3488)
This commit is contained in:
parent
51ce5351d7
commit
9ab4e4d70c
@ -1192,8 +1192,9 @@ void GameListWidget::initialize(QAction* actionGameList, QAction* actionGameGrid
|
|||||||
|
|
||||||
m_ui.viewGameList->setDefaultAction(actionGameList);
|
m_ui.viewGameList->setDefaultAction(actionGameList);
|
||||||
m_ui.viewGameGrid->setDefaultAction(actionGameGrid);
|
m_ui.viewGameGrid->setDefaultAction(actionGameGrid);
|
||||||
m_ui.viewMergeDiscSets->setDefaultAction(actionMergeDiscSets);
|
m_ui.mergeDiscSets->setDefaultAction(actionMergeDiscSets);
|
||||||
m_ui.viewGridTitles->setDefaultAction(actionGridShowTitles);
|
m_ui.showGameIcons->setDefaultAction(actionListShowIcons);
|
||||||
|
m_ui.showGridTitles->setDefaultAction(actionGridShowTitles);
|
||||||
|
|
||||||
connect(m_ui.gridScale, &QSlider::valueChanged, m_grid_view, &GameListGridView::setZoomPct);
|
connect(m_ui.gridScale, &QSlider::valueChanged, m_grid_view, &GameListGridView::setZoomPct);
|
||||||
connect(m_ui.filterType, &QComboBox::currentIndexChanged, this, [this](int index) {
|
connect(m_ui.filterType, &QComboBox::currentIndexChanged, this, [this](int index) {
|
||||||
@ -1502,7 +1503,8 @@ void GameListWidget::updateView(bool grid_view)
|
|||||||
|
|
||||||
void GameListWidget::updateToolbar(bool grid_view)
|
void GameListWidget::updateToolbar(bool grid_view)
|
||||||
{
|
{
|
||||||
m_ui.viewGridTitles->setVisible(grid_view);
|
m_ui.showGameIcons->setVisible(!grid_view);
|
||||||
|
m_ui.showGridTitles->setVisible(grid_view);
|
||||||
m_ui.gridScale->setVisible(grid_view);
|
m_ui.gridScale->setVisible(grid_view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,0,0,1,0,0,0">
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,0,0,0,1,0,0,0">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="viewMergeDiscSets">
|
<widget class="QToolButton" name="mergeDiscSets">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>32</width>
|
||||||
@ -101,7 +101,26 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="viewGridTitles">
|
<widget class="QToolButton" name="showGameIcons">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Show Game Icons</string>
|
||||||
|
</property>
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="autoRaise">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="showGridTitles">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>32</width>
|
||||||
|
@ -939,9 +939,15 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="image-fill"/>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show Game Icons (List View)</string>
|
<string>Show Game Icons (List View)</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Show Game Icons</string>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionMediaCapture">
|
<action name="actionMediaCapture">
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user