Mercurial > octave
view m4/module.mk @ 28244:cba489221bab
Implement Enable property values "inactive" and "off" for uicontrol Edit (bug #57128)
* BaseControl.cc (updatePalette): Call setColor() with additional argument of
"QPalette::Active" and again with "QPalette::Inactive" so that colors are set
only for specific roles. When Qt widget disabled it should now go gray.
* BaseControl.cc (init): Call 'setEnabled (! properties.enable_is ("off"))'
so that "Inactive" value still causes Qt Widget to be enabled.
* BaseControl.cc (update): Call 'setEnabled (! properties.enable_is ("off"))'
so that "Inactive" value still causes Qt Widget to be enabled.
* EditControl.cc (init): Check Octave "Enable" property and call Qt
setReadOnly() if value is "Inactive", but otherwise call Qt setEnabled() with
property value.
* EditControl.cc (updateSingleLine, updateMultiLine): Check Octave "Enable"
property and call Qt setReadOnly() if value is "Inactive", but otherwise call
Qt setEnabled() with property value.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 25 Apr 2020 19:44:57 -0700 |
parents | 8308417aff1c |
children | 83dbee7c8f08 |
line wrap: on
line source
EXTRA_DIST += \ %reldir%/module.mk \ %reldir%/ax_blas.m4 \ %reldir%/ax_compare_version.m4 \ %reldir%/ax_lapack.m4 \ %reldir%/ax_openmp.m4 \ %reldir%/ax_pthread.m4 \ %reldir%/gnulib-cache.m4 \ %reldir%/libtool.m4 \ %reldir%/ltoptions.m4 \ %reldir%/ltsugar.m4 \ %reldir%/ltversion.m4 \ %reldir%/lt~obsolete.m4 \ %reldir%/octave_blas_f77_func.m4 \ %reldir%/pkg.m4