1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00

Use QLineEdit instead of QLabel for displaying paths

This commit is contained in:
Joshua Goins 2022-02-24 08:19:48 -05:00
parent 02301e5b0d
commit ba5de2a3cf
2 changed files with 9 additions and 9 deletions

View file

@ -72,8 +72,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
this->core.saveSettings();
});
currentGameDirectory = new QLabel();
currentGameDirectory->setWordWrap(true);
currentGameDirectory = new QLineEdit();
currentGameDirectory->setReadOnly(true);
gameBoxLayout->addRow("Game Directory", currentGameDirectory);
auto selectDirectoryButton = new QPushButton("Select Game Directory");
@ -172,8 +172,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
mainLayout->addWidget(wineBox, 1, 2, 1, 1);
winePathLabel = new QLabel();
winePathLabel->setWordWrap(true);
winePathLabel = new QLineEdit();
winePathLabel->setReadOnly(true);
wineBoxLayout->addRow("Wine Executable", winePathLabel);
wineVersionCombo = new QComboBox();
@ -205,8 +205,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
this->reloadControls();
});
winePrefixDirectory = new QLabel();
winePrefixDirectory->setWordWrap(true);
winePrefixDirectory = new QLineEdit();
winePrefixDirectory->setReadOnly(true);
wineBoxLayout->addRow("Wine Prefix", winePrefixDirectory);
auto selectPrefixButton = new QPushButton("Select Wine Prefix");

View file

@ -29,14 +29,14 @@ private:
// game
QLineEdit* nameEdit = nullptr;
QComboBox* directXCombo = nullptr;
QLabel* currentGameDirectory = nullptr;
QLineEdit* currentGameDirectory = nullptr;
QLabel* expansionVersionLabel = nullptr;
// wine
QComboBox* wineVersionCombo;
QPushButton* selectWineButton;
QLabel* winePathLabel;
QLabel* winePrefixDirectory;
QLineEdit* winePathLabel;
QLineEdit* winePrefixDirectory;
QCheckBox* useGamescope, *useEsync, *useGamemode;
QCheckBox* enableWatchdog;