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:
parent
02301e5b0d
commit
ba5de2a3cf
2 changed files with 9 additions and 9 deletions
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue