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:
parent
71865b85aa
commit
c00c55ac87
2 changed files with 9 additions and 9 deletions
|
@ -39,15 +39,15 @@ private:
|
||||||
// game
|
// game
|
||||||
QLineEdit* nameEdit = nullptr;
|
QLineEdit* nameEdit = nullptr;
|
||||||
QComboBox* directXCombo = nullptr;
|
QComboBox* directXCombo = nullptr;
|
||||||
QLineEdit* currentGameDirectory = nullptr;
|
QLabel* currentGameDirectory = nullptr;
|
||||||
QLabel* expansionVersionLabel = nullptr;
|
QLabel* expansionVersionLabel = nullptr;
|
||||||
QPushButton* gameDirectoryButton = nullptr;
|
QPushButton* gameDirectoryButton = nullptr;
|
||||||
|
|
||||||
// wine
|
// wine
|
||||||
QComboBox* wineTypeCombo;
|
QComboBox* wineTypeCombo;
|
||||||
QPushButton* selectWineButton;
|
QPushButton* selectWineButton;
|
||||||
QLineEdit* winePathLabel;
|
QLabel* winePathLabel;
|
||||||
QLineEdit* winePrefixDirectory;
|
QLabel* winePrefixDirectory;
|
||||||
QPushButton* configureGamescopeButton;
|
QPushButton* configureGamescopeButton;
|
||||||
QLabel* wineVersionLabel;
|
QLabel* wineVersionLabel;
|
||||||
|
|
||||||
|
|
|
@ -315,8 +315,8 @@ void SettingsWindow::setupGameTab(QFormLayout& layout) {
|
||||||
this->core.saveSettings();
|
this->core.saveSettings();
|
||||||
});
|
});
|
||||||
|
|
||||||
currentGameDirectory = new QLineEdit();
|
currentGameDirectory = new QLabel();
|
||||||
currentGameDirectory->setReadOnly(true);
|
currentGameDirectory->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
|
||||||
layout.addRow("Game Directory", currentGameDirectory);
|
layout.addRow("Game Directory", currentGameDirectory);
|
||||||
|
|
||||||
auto gameDirButtonLayout = new QHBoxLayout();
|
auto gameDirButtonLayout = new QHBoxLayout();
|
||||||
|
@ -448,8 +448,8 @@ void SettingsWindow::setupLoginTab(QFormLayout& layout) {
|
||||||
|
|
||||||
void SettingsWindow::setupWineTab(QFormLayout& layout) {
|
void SettingsWindow::setupWineTab(QFormLayout& layout) {
|
||||||
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
|
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
|
||||||
winePathLabel = new QLineEdit();
|
winePathLabel = new QLabel();
|
||||||
winePathLabel->setReadOnly(true);
|
winePathLabel->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
|
||||||
layout.addRow("Wine Executable", winePathLabel);
|
layout.addRow("Wine Executable", winePathLabel);
|
||||||
|
|
||||||
wineTypeCombo = new QComboBox();
|
wineTypeCombo = new QComboBox();
|
||||||
|
@ -500,8 +500,8 @@ void SettingsWindow::setupWineTab(QFormLayout& layout) {
|
||||||
layout.addRow("Wine Version", wineVersionLabel);
|
layout.addRow("Wine Version", wineVersionLabel);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
winePrefixDirectory = new QLineEdit();
|
winePrefixDirectory = new QLabel();
|
||||||
winePrefixDirectory->setReadOnly(true);
|
winePrefixDirectory->setTextInteractionFlags(Qt::TextInteractionFlag::TextSelectableByMouse);
|
||||||
layout.addRow("Wine Prefix", winePrefixDirectory);
|
layout.addRow("Wine Prefix", winePrefixDirectory);
|
||||||
|
|
||||||
auto winePrefixButtonLayout = new QHBoxLayout();
|
auto winePrefixButtonLayout = new QHBoxLayout();
|
||||||
|
|
Loading…
Add table
Reference in a new issue