mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 12:47:44 +00:00
Move the walls of wine help text to tooltips instead
This commit is contained in:
parent
15329670af
commit
7435bba6e8
1 changed files with 14 additions and 10 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QGridLayout>
|
#include <QGridLayout>
|
||||||
|
#include <QToolTip>
|
||||||
|
|
||||||
#include "launchercore.h"
|
#include "launchercore.h"
|
||||||
#include "launcherwindow.h"
|
#include "launcherwindow.h"
|
||||||
|
@ -236,7 +237,7 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
|
||||||
wineBoxLayout->addWidget(openPrefixButton);
|
wineBoxLayout->addWidget(openPrefixButton);
|
||||||
|
|
||||||
auto enableDXVKhud = new QCheckBox("Enable DXVK HUD");
|
auto enableDXVKhud = new QCheckBox("Enable DXVK HUD");
|
||||||
wineBoxLayout->addWidget(enableDXVKhud);
|
wineBoxLayout->addRow("Wine Tweaks", enableDXVKhud);
|
||||||
|
|
||||||
connect(enableDXVKhud, &QCheckBox::stateChanged, [this](int state) {
|
connect(enableDXVKhud, &QCheckBox::stateChanged, [this](int state) {
|
||||||
getCurrentProfile().enableDXVKhud = state;
|
getCurrentProfile().enableDXVKhud = state;
|
||||||
|
@ -248,9 +249,10 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
|
||||||
useEsync = new QCheckBox("Use Esync");
|
useEsync = new QCheckBox("Use Esync");
|
||||||
wineBoxLayout->addWidget(useEsync);
|
wineBoxLayout->addWidget(useEsync);
|
||||||
|
|
||||||
auto esyncLabel = new QLabel("Improves general game performance, but requires a Wine built with the Esync patches.\n"
|
auto esyncLabel = new QPushButton("?");
|
||||||
"If you use the latest Wine staging, it should work.");
|
connect(esyncLabel, &QPushButton::pressed, [esyncLabel] {
|
||||||
esyncLabel->setWordWrap(true);
|
QToolTip::showText(esyncLabel->mapToGlobal(QPoint()), "Improves general game performance, but requires a Wine built with the Esync patches.\nIf you use the latest Wine staging, it should work.");
|
||||||
|
});
|
||||||
wineBoxLayout->addWidget(esyncLabel);
|
wineBoxLayout->addWidget(esyncLabel);
|
||||||
|
|
||||||
connect(useEsync, &QCheckBox::stateChanged, [this](int state) {
|
connect(useEsync, &QCheckBox::stateChanged, [this](int state) {
|
||||||
|
@ -262,9 +264,10 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
|
||||||
useGamescope = new QCheckBox("Use Gamescope");
|
useGamescope = new QCheckBox("Use Gamescope");
|
||||||
wineBoxLayout->addWidget(useGamescope);
|
wineBoxLayout->addWidget(useGamescope);
|
||||||
|
|
||||||
auto gamescopeLabel = new QLabel("Use the SteamOS compositor that uses Wayland.\n"
|
auto gamescopeLabel = new QPushButton("?");
|
||||||
"If you are experiencing input issues on XWayland, try this option if you have it installed.");
|
connect(gamescopeLabel, &QPushButton::pressed, [gamescopeLabel] {
|
||||||
gamescopeLabel->setWordWrap(true);
|
QToolTip::showText(gamescopeLabel->mapToGlobal(QPoint()), "Use the SteamOS compositor that uses Wayland.\nIf you are experiencing input issues on XWayland, try this option if you have it installed.");
|
||||||
|
});
|
||||||
wineBoxLayout->addWidget(gamescopeLabel);
|
wineBoxLayout->addWidget(gamescopeLabel);
|
||||||
|
|
||||||
connect(useGamescope, &QCheckBox::stateChanged, [this](int state) {
|
connect(useGamescope, &QCheckBox::stateChanged, [this](int state) {
|
||||||
|
@ -276,9 +279,10 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
|
||||||
useGamemode = new QCheckBox("Use Gamemode");
|
useGamemode = new QCheckBox("Use Gamemode");
|
||||||
wineBoxLayout->addWidget(useGamemode);
|
wineBoxLayout->addWidget(useGamemode);
|
||||||
|
|
||||||
auto gamemodeLabel = new QLabel("Use Feral Interactive's GameMode, which applies a couple of performance enhancements.\n"
|
auto gamemodeLabel = new QPushButton("?");
|
||||||
"May give a slight performance boost, but requires GameMode to be installed.\n");
|
connect(gamemodeLabel, &QPushButton::pressed, [gamemodeLabel] {
|
||||||
gamemodeLabel->setWordWrap(true);
|
QToolTip::showText(gamemodeLabel->mapToGlobal(QPoint()), "Use Feral Interactive's GameMode, which applies a couple of performance enhancements.\nMay give a slight performance boost, but requires GameMode to be installed.");
|
||||||
|
});
|
||||||
wineBoxLayout->addWidget(gamemodeLabel);
|
wineBoxLayout->addWidget(gamemodeLabel);
|
||||||
|
|
||||||
connect(useGamemode, &QCheckBox::stateChanged, [this](int state) {
|
connect(useGamemode, &QCheckBox::stateChanged, [this](int state) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue