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

Change all qlineedits in settings with qlabels

This makes it a whole lot easier to view and copy the text in macOS, it
never really made sense for these to be line edits in the first place
anyway.
This commit is contained in:
Joshua Goins 2022-06-09 09:44:58 -04:00
parent 71865b85aa
commit c00c55ac87
2 changed files with 9 additions and 9 deletions

View file

@ -39,15 +39,15 @@ private:
// game
QLineEdit* nameEdit = nullptr;
QComboBox* directXCombo = nullptr;
QLineEdit* currentGameDirectory = nullptr;
QLabel* currentGameDirectory = nullptr;
QLabel* expansionVersionLabel = nullptr;
QPushButton* gameDirectoryButton = nullptr;
// wine
QComboBox* wineTypeCombo;
QPushButton* selectWineButton;
QLineEdit* winePathLabel;
QLineEdit* winePrefixDirectory;
QLabel* winePathLabel;
QLabel* winePrefixDirectory;
QPushButton* configureGamescopeButton;
QLabel* wineVersionLabel;

View file

@ -315,8 +315,8 @@ void SettingsWindow::setupGameTab(QFormLayout& layout) {
this->core.saveSettings();
});
currentGameDirectory = new QLineEdit();
currentGameDirectory->setReadOnly(true);
currentGameDirectory = new QLabel();
currentGameDirectory->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
layout.addRow("Game Directory", currentGameDirectory);
auto gameDirButtonLayout = new QHBoxLayout();
@ -448,8 +448,8 @@ void SettingsWindow::setupLoginTab(QFormLayout& layout) {
void SettingsWindow::setupWineTab(QFormLayout& layout) {
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
winePathLabel = new QLineEdit();
winePathLabel->setReadOnly(true);
winePathLabel = new QLabel();
winePathLabel->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
layout.addRow("Wine Executable", winePathLabel);
wineTypeCombo = new QComboBox();
@ -500,8 +500,8 @@ void SettingsWindow::setupWineTab(QFormLayout& layout) {
layout.addRow("Wine Version", wineVersionLabel);
#endif
winePrefixDirectory = new QLineEdit();
winePrefixDirectory->setReadOnly(true);
winePrefixDirectory = new QLabel();
winePrefixDirectory->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
layout.addRow("Wine Prefix", winePrefixDirectory);
auto winePrefixButtonLayout = new QHBoxLayout();