Kaydet (Commit) de79c583 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane Kaydeden (comit) Eike Rathke

tdf#93618 teach DbCellControl about "Date"/"Time" as known value property

Change-Id: Icbb575b86ff39ce263271110aae6e49e5b4e7ac2
Reviewed-on: https://gerrit.libreoffice.org/19409Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
üst 2b766197
...@@ -573,6 +573,8 @@ DbCellControl::DbCellControl( DbGridColumn& _rColumn, bool /*_bText*/ ) ...@@ -573,6 +573,8 @@ DbCellControl::DbCellControl( DbGridColumn& _rColumn, bool /*_bText*/ )
implDoPropertyListening( FM_PROP_TEXT, false ); implDoPropertyListening( FM_PROP_TEXT, false );
implDoPropertyListening( FM_PROP_EFFECTIVE_VALUE, false ); implDoPropertyListening( FM_PROP_EFFECTIVE_VALUE, false );
implDoPropertyListening( FM_PROP_SELECT_SEQ, false ); implDoPropertyListening( FM_PROP_SELECT_SEQ, false );
implDoPropertyListening( FM_PROP_DATE, false );
implDoPropertyListening( FM_PROP_TIME, false );
// be listener at the bound field as well // be listener at the bound field as well
try try
...@@ -678,6 +680,8 @@ void DbCellControl::_propertyChanged(const PropertyChangeEvent& _rEvent) throw(R ...@@ -678,6 +680,8 @@ void DbCellControl::_propertyChanged(const PropertyChangeEvent& _rEvent) throw(R
|| _rEvent.PropertyName == FM_PROP_TEXT || _rEvent.PropertyName == FM_PROP_TEXT
|| _rEvent.PropertyName == FM_PROP_EFFECTIVE_VALUE || _rEvent.PropertyName == FM_PROP_EFFECTIVE_VALUE
|| _rEvent.PropertyName == FM_PROP_SELECT_SEQ || _rEvent.PropertyName == FM_PROP_SELECT_SEQ
|| _rEvent.PropertyName == FM_PROP_DATE
|| _rEvent.PropertyName == FM_PROP_TIME
) )
{ // it was one of the known "value" properties { // it was one of the known "value" properties
if ( !isValuePropertyLocked() ) if ( !isValuePropertyLocked() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment