mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-15 02:44:41 +00:00
Qt: Disable game compat comments button instead of hiding it (#3639)
This commit is contained in:
@@ -17,9 +17,7 @@
|
||||
#include "fmt/format.h"
|
||||
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QtCore/QFuture>
|
||||
#include <QtCore/QSignalBlocker>
|
||||
#include <QtCore/QStringBuilder>
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QDialogButtonBox>
|
||||
#include <QtWidgets/QTextBrowser>
|
||||
@@ -229,7 +227,7 @@ void GameSummaryWidget::populateUi(const GameList::Entry* entry)
|
||||
m_ui.separateDiscSettings->setVisible(false);
|
||||
}
|
||||
|
||||
m_ui.compatibilityComments->setVisible(!m_compatibility_comments.isEmpty());
|
||||
m_ui.compatibilityComments->setEnabled(!m_compatibility_comments.isEmpty());
|
||||
|
||||
m_ui.inputProfile->addItem(QIcon::fromTheme(QStringLiteral("global-line")), tr("Use Global Settings"));
|
||||
m_ui.inputProfile->addItem(QIcon::fromTheme(QStringLiteral("controller-digital-line")),
|
||||
|
||||
@@ -160,23 +160,19 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1" colspan="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0">
|
||||
<item>
|
||||
<widget class="QComboBox" name="compatibility">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="compatibilityComments">
|
||||
<property name="icon">
|
||||
<iconset theme="information-line"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
<item row="6" column="1">
|
||||
<widget class="QComboBox" name="compatibility">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="QPushButton" name="compatibilityComments">
|
||||
<property name="icon">
|
||||
<iconset theme="information-line"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label_11">
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
|
||||
#include <QtGui/QWheelEvent>
|
||||
#include <QtWidgets/QScrollBar>
|
||||
#include <QtWidgets/QTextEdit>
|
||||
|
||||
#include "moc_settingswindow.cpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user