forked from qt-creator/qt-creator
ProjectExplorer: Use FilePathAspect(s) in ExecutableAspect
In the read-only case, make it look like the previously used StringAspect with LabelDisplay. Change-Id: Ica76c1ba23bf9b3946c227e303cc1336f3f8d5b4 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -377,9 +377,10 @@ bool PathChooser::isReadOnly() const
|
||||
void PathChooser::setReadOnly(bool b)
|
||||
{
|
||||
d->m_lineEdit->setReadOnly(b);
|
||||
d->m_lineEdit->setFrame(!b);
|
||||
const auto buttons = d->m_buttons;
|
||||
for (QAbstractButton *button : buttons)
|
||||
button->setEnabled(!b);
|
||||
button->setVisible(!b);
|
||||
}
|
||||
|
||||
void PathChooser::slotBrowse(bool remote)
|
||||
|
||||
Reference in New Issue
Block a user