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

View file

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