Qt: Resizes + better tooltips + Savestate warning

Bigger tooltip window
Controllers button shows up correctly at different DPI percentages
Rename some options
This commit is contained in:
RedDevilus 2022-12-07 02:49:54 +01:00 committed by refractionpcsx2
parent 8c8a8f9994
commit 208812347f
6 changed files with 30 additions and 29 deletions

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>950</width> <width>1050</width>
<height>640</height> <height>666</height>
</rect> </rect>
</property> </property>
<property name="acceptDrops"> <property name="acceptDrops">
@ -22,7 +22,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>950</width> <width>1050</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>

View File

@ -29,7 +29,7 @@
<item> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">
<string>Controller Type</string> <string>Virtual Controller Type</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<item> <item>
@ -42,13 +42,13 @@
<property name="text"> <property name="text">
<string>Bindings</string> <string>Bindings</string>
</property> </property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="icon"> <property name="icon">
<iconset theme="gamepad-line"> <iconset theme="gamepad-line">
<normaloff>.</normaloff>.</iconset> <normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="toolButtonStyle"> <property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum> <enum>Qt::ToolButtonTextBesideIcon</enum>
</property> </property>
@ -148,7 +148,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QStackedWidget" name="stackedWidget" /> <widget class="QStackedWidget" name="stackedWidget"/>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -397,7 +397,10 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsDialog* dialog, QWidget*
tr("Reduces texture aliasing at extreme viewing angles.")); tr("Reduces texture aliasing at extreme viewing angles."));
dialog->registerWidgetHelp(m_ui.dithering, tr("Dithering"), tr("Unscaled (Default)"), dialog->registerWidgetHelp(m_ui.dithering, tr("Dithering"), tr("Unscaled (Default)"),
tr("Reduces banding between colors and improves the perceived color depth.")); tr("Reduces banding between colors and improves the perceived color depth.<br> "
"Off: Disables any dithering.<br> "
"Unscaled: Native Dithering / Lowest dithering effect does not increase size of squares when upscaling.<br> "
"Scaled: Upscaling-aware / Highest dithering effect."));
dialog->registerWidgetHelp(m_ui.crcFixLevel, tr("CRC Fix Level"), tr("Automatic (Default)"), dialog->registerWidgetHelp(m_ui.crcFixLevel, tr("CRC Fix Level"), tr("Automatic (Default)"),
tr("Control the number of Auto-CRC fixes and hacks applied to games.")); tr("Control the number of Auto-CRC fixes and hacks applied to games."));

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>658</width> <width>850</width>
<height>476</height> <height>500</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -89,12 +89,12 @@
<widget class="QComboBox" name="aspectRatio"> <widget class="QComboBox" name="aspectRatio">
<item> <item>
<property name="text"> <property name="text">
<string>Fit to Window/Screen</string> <string>Fit to Window / Fullscreen</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Auto Standard (4:3/3:2 Progressive)</string> <string>Auto Standard (4:3 Interlaced / 3:2 Progressive)</string>
</property> </property>
</item> </item>
<item> <item>
@ -125,7 +125,7 @@
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Auto Standard (4:3/3:2 Progressive)</string> <string>Auto Standard (4:3 Interlaced / 3:2 Progressive)</string>
</property> </property>
</item> </item>
<item> <item>
@ -143,7 +143,7 @@
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="label_23"> <widget class="QLabel" name="label_23">
<property name="text"> <property name="text">
<string>Deinterlacing:</string> <string>De-interlacing:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -156,7 +156,7 @@
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>None</string> <string>None (Interlaced, also used by Progressive)</string>
</property> </property>
</item> </item>
<item> <item>
@ -171,32 +171,32 @@
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Bob (Top Field First)</string> <string>Bob (Top Field First, Full Frames)</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Bob (Bottom Field First)</string> <string>Bob (Bottom Field First, Full Frames)</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Blend (Top Field First, Half FPS)</string> <string>Blend (Top Field First, Merge 2 Fields)</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Blend (Bottom Field First, Half FPS)</string> <string>Blend (Bottom Field First, Merge 2 Fields)</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Adaptive (Top Field First)</string> <string>Adaptive (Top Field First, Similar to Bob + Weave)</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Adaptive (Bottom Field First)</string> <string>Adaptive (Bottom Field First, Similar to Bob + Weave)</string>
</property> </property>
</item> </item>
</widget> </widget>
@ -1772,8 +1772,8 @@
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>40</width>
<height>40</height> <height>60</height>
</size> </size>
</property> </property>
</spacer> </spacer>

View File

@ -250,7 +250,7 @@ bool InputIsoFile::Open(std::string srcfile, bool testOnly)
if (!detected) if (!detected)
throw Exception::BadStream() throw Exception::BadStream()
.SetUserMsg("Unrecognized ISO image file format") .SetUserMsg("Unrecognized ISO image file format.")
.SetDiagMsg("ISO mounting failed: PCSX2 is unable to identify the ISO image type."); .SetDiagMsg("ISO mounting failed: PCSX2 is unable to identify the ISO image type.");
if (!isBlockdump && !isCompressed) if (!isBlockdump && !isCompressed)

View File

@ -1048,15 +1048,13 @@ static void CheckVersion(const std::string& filename, zip_t* zf)
if (savever > g_SaveVersion) if (savever > g_SaveVersion)
throw Exception::SaveStateLoadError(filename) throw Exception::SaveStateLoadError(filename)
.SetDiagMsg(fmt::format("Savestate uses an unsupported or unknown savestate version.\n(PCSX2 ver={:x}, state ver={:x})", g_SaveVersion, savever)) .SetDiagMsg(fmt::format("Savestate uses an unsupported or unknown savestate version.\n(PCSX2 ver={:x}, state ver={:x})", g_SaveVersion, savever))
.SetUserMsg("Cannot load this savestate. The state is an unsupported version."); .SetUserMsg("Cannot load this savestate. The state is an unsupported version.\nOption 1: Download an older PCSX2 version from pcsx2.net and make a memcard save like on the physical PS2.\nOption 2: Delete the savestates.");
// check for a "minor" version incompatibility; which happens if the savestate being loaded is a newer version // check for a "minor" version incompatibility; which happens if the savestate being loaded is a newer version
// than the emulator recognizes. 99% chance that trying to load it will just corrupt emulation or crash. // than the emulator recognizes. 99% chance that trying to load it will just corrupt emulation or crash.
if ((savever >> 16) != (g_SaveVersion >> 16)) if ((savever >> 16) != (g_SaveVersion >> 16))
throw Exception::SaveStateLoadError(filename) throw Exception::SaveStateLoadError(filename)
.SetDiagMsg(fmt::format("Savestate uses an unknown savestate version.\n(PCSX2 ver={:x}, state ver={:x})", g_SaveVersion, savever)) .SetDiagMsg(fmt::format("Savestate uses an unknown savestate version.\n(PCSX2 ver={:x}, state ver={:x})", g_SaveVersion, savever))
.SetUserMsg("Cannot load this savestate. The state is an unsupported version."); .SetUserMsg("Cannot load this savestate. The state is an unsupported version.\nOption 1: Download an older PCSX2 version from pcsx2.net and make a memcard save like on the physical PS2.\nOption 2: Delete the savestates.");}
}
static zip_int64_t CheckFileExistsInState(zip_t* zf, const char* name, bool required) static zip_int64_t CheckFileExistsInState(zip_t* zf, const char* name, bool required)
{ {