diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-04 14:33:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-05 20:13:45 +0200 |
commit | 368195c06679417e493db4f2060321895472f0b3 (patch) | |
tree | bb15ede6ac9e92c251f35189fd25e6ab92394bb0 /vcl/source/control/edit.cxx | |
parent | 8fe484a989a1bea05dd9d1bc032c859c83966b0b (diff) |
only MultiLineEditSyntaxHighlight uses UpdateData
and only the VclMultiLineEdit one which hides the Edit one so remove the unused
Edit UpdataData related functions leaving the VclMultiLineEdit set
Change-Id: Icd9a633d28907b3e5a3d52771b31574984e64d92
Reviewed-on: https://gerrit.libreoffice.org/80228
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r-- | vcl/source/control/edit.cxx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 259c2374f011..1620532ffba3 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -223,7 +223,6 @@ void Edit::dispose() } mpIMEInfos.reset(); - mpUpdateDataTimer.reset(); if ( mxDnDListener.is() ) { @@ -251,7 +250,6 @@ void Edit::dispose() void Edit::ImplInitEditData() { mpSubEdit = VclPtr<Edit>(); - mpUpdateDataTimer = nullptr; mpFilterText = nullptr; mnXOffset = 0; mnAlign = EDIT_ALIGN_LEFT; @@ -1384,9 +1382,6 @@ void Edit::Tracking( const TrackingEvent& rTEvt ) ImplSetCursorPos( nCharPos, true ); } } - - if ( mpUpdateDataTimer && !mbIsSubEdit && mpUpdateDataTimer->IsActive() ) - mpUpdateDataTimer->Start();//do not update while the user is still travelling in the control } bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt ) @@ -1701,9 +1696,6 @@ bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt ) void Edit::KeyInput( const KeyEvent& rKEvt ) { - if ( mpUpdateDataTimer && !mbIsSubEdit && mpUpdateDataTimer->IsActive() ) - mpUpdateDataTimer->Start();//do not update while the user is still travelling in the control - if ( mpSubEdit || !ImplHandleKeyEvent( rKEvt ) ) Control::KeyInput( rKEvt ); } @@ -1894,13 +1886,6 @@ void Edit::GetFocus() void Edit::LoseFocus() { - if ( mpUpdateDataTimer && !mbIsSubEdit && mpUpdateDataTimer->IsActive() ) - { - //notify an update latest when the focus is lost - mpUpdateDataTimer->Stop(); - mpUpdateDataTimer->Invoke(); - } - if ( !mpSubEdit ) { // FIXME: this is currently only on macOS @@ -2328,9 +2313,6 @@ void Edit::Modify() } else { - if ( mpUpdateDataTimer ) - mpUpdateDataTimer->Start(); - if ( ImplCallEventListenersAndHandler( VclEventId::EditModify, [this] () { maModifyHdl.Call(*this); } ) ) // have been destroyed while calling into the handlers return; @@ -2348,37 +2330,6 @@ void Edit::Modify() } } -void Edit::UpdateData() -{ -} - -IMPL_LINK_NOARG(Edit, ImplUpdateDataHdl, Timer *, void) -{ - UpdateData(); -} - -void Edit::EnableUpdateData( sal_uLong nTimeout ) -{ - if ( !nTimeout ) - DisableUpdateData(); - else - { - if ( !mpUpdateDataTimer ) - { - mpUpdateDataTimer.reset(new Timer("UpdateDataTimer")); - mpUpdateDataTimer->SetInvokeHandler( LINK( this, Edit, ImplUpdateDataHdl ) ); - mpUpdateDataTimer->SetDebugName( "vcl::Edit mpUpdateDataTimer" ); - } - - mpUpdateDataTimer->SetTimeout( nTimeout ); - } -} - -void Edit::DisableUpdateData() -{ - mpUpdateDataTimer.reset(); -} - void Edit::SetEchoChar( sal_Unicode c ) { mcEchoChar = c; |