diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-05 08:00:36 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-08 09:19:25 +0000 |
commit | ff1a7a59434f5f793d4044aad615bcf78148e963 (patch) | |
tree | 9f64199265f4bace340fad6abc400b642c5e2612 /vcl | |
parent | 10314b5d8b653864c92d392cbb774438633b2fe1 (diff) |
RFC: add IsValueChangedFromSaved to VCL button and listbox
Add a method
bool IsValueChangedFromSaved()
to the various Button and Listbox classes.
Use it to simplify code like
if ( maBoldAppFont.GetSavedValue() !=
TriState(maBoldAppFont.IsChecked()) )
to
if ( maBoldAppFont.IsValueChangedFromSaved() )
Change-Id: I26b291d0980237497063ee301d63a49c7d2bc227
Reviewed-on: https://gerrit.libreoffice.org/9250
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/dbggui.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx index a03e1110dd0f..97745739198d 100644 --- a/vcl/source/app/dbggui.cxx +++ b/vcl/source/app/dbggui.cxx @@ -334,7 +334,7 @@ IMPL_LINK( DbgDialog, ClickHdl, Button*, pButton ) #define IMMEDIATE_FLAGS (DBG_TEST_RESOURCE | DBG_TEST_DIALOG | DBG_TEST_BOLDAPPFONT) pData->nTestFlags &= ~IMMEDIATE_FLAGS; pData->nTestFlags |= aData.nTestFlags & IMMEDIATE_FLAGS; - if ( maBoldAppFont.GetSavedValue() != TriState(maBoldAppFont.IsChecked()) ) + if ( maBoldAppFont.IsValueChangedFromSaved() ) { AllSettings aSettings = Application::GetSettings(); StyleSettings aStyleSettings = aSettings.GetStyleSettings(); |