Merge pull request #2349 from pypeclub/feature/OP-2061_Copyable-paths-in-local-settings

Local settings: Copyable studio paths
This commit is contained in:
Jakub Trllo 2021-12-01 11:33:13 +01:00 committed by GitHub
commit 2aaeda4de2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View file

@ -1194,3 +1194,17 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
#ImageButton:disabled {
background: {color:bg-buttons-disabled};
}
/* Input field that looks like disabled
- QAbstractSpinBox, QLineEdit, QPlainTextEdit, QTextEdit
- usage: QLineEdit that is not editable but has selectable color
*/
#LikeDisabledInput {
background: {color:bg-inputs-disabled};
}
#LikeDisabledInput:hover {
border-color: {color:border};
}
#LikeDisabledInput:focus {
border-color: {color:border};
}

View file

@ -64,8 +64,9 @@ class AppVariantWidget(QtWidgets.QWidget):
for item in studio_executables:
path_widget = QtWidgets.QLineEdit(content_widget)
path_widget.setObjectName("LikeDisabledInput")
path_widget.setText(item.value)
path_widget.setEnabled(False)
path_widget.setReadOnly(True)
content_layout.addWidget(path_widget)
def update_local_settings(self, value):