Mercurial > octave
changeset 30274:091544741ad1
gui: Avoid deprecated enum Qt::BackgroundColorRole.
* libgui/src/workspace-model.cc (workspace_model::data): Qt::BackgroundColorRole
was marked as obsolete some time before Qt 4.8 and is removed in Qt 6. Use
Qt::BackgroundRole instead.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 04 Nov 2021 19:30:27 +0100 |
parents | 14f443a73558 |
children | cf434923aec0 |
files | libgui/src/workspace-model.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/workspace-model.cc Tue Nov 02 11:52:51 2021 -0400 +++ b/libgui/src/workspace-model.cc Thu Nov 04 19:30:27 2021 +0100 @@ -104,7 +104,7 @@ if (idx.isValid ()) { - if ((role == Qt::BackgroundColorRole || role == Qt::ForegroundRole) + if ((role == Qt::BackgroundRole || role == Qt::ForegroundRole) && m_enable_colors) { int actual_class