LoseFocus incorrectly calling notifyFocusGet
looks like a cut and paste error from initial checkin Change-Id: I816ad85c564b0ca31833da17bbe760101ed3231d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92757 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -55,6 +55,7 @@ class SpinfieldToolbarController final : public ComplexToolbarController
|
|||||||
void Last();
|
void Last();
|
||||||
void Modify();
|
void Modify();
|
||||||
void GetFocus();
|
void GetFocus();
|
||||||
|
void LoseFocus();
|
||||||
bool PreNotify( NotifyEvent const & rNEvt );
|
bool PreNotify( NotifyEvent const & rNEvt );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -127,9 +127,9 @@ void SpinfieldControl::GetFocus()
|
|||||||
|
|
||||||
void SpinfieldControl::LoseFocus()
|
void SpinfieldControl::LoseFocus()
|
||||||
{
|
{
|
||||||
SpinField::GetFocus();
|
SpinField::LoseFocus();
|
||||||
if ( m_pSpinfieldToolbarController )
|
if ( m_pSpinfieldToolbarController )
|
||||||
m_pSpinfieldToolbarController->GetFocus();
|
m_pSpinfieldToolbarController->LoseFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SpinfieldControl::PreNotify( NotifyEvent& rNEvt )
|
bool SpinfieldControl::PreNotify( NotifyEvent& rNEvt )
|
||||||
@@ -261,6 +261,11 @@ void SpinfieldToolbarController::GetFocus()
|
|||||||
notifyFocusGet();
|
notifyFocusGet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SpinfieldToolbarController::LoseFocus()
|
||||||
|
{
|
||||||
|
notifyFocusLost();
|
||||||
|
}
|
||||||
|
|
||||||
bool SpinfieldToolbarController::PreNotify( NotifyEvent const & rNEvt )
|
bool SpinfieldToolbarController::PreNotify( NotifyEvent const & rNEvt )
|
||||||
{
|
{
|
||||||
if( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT )
|
if( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT )
|
||||||
|
Reference in New Issue
Block a user