summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sfx2/dinfdlg.hxx4
-rw-r--r--include/svx/numvset.hxx4
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx16
-rw-r--r--svx/source/dialog/svxbmpnumvalueset.cxx6
4 files changed, 15 insertions, 15 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 63422698cbfc..e345bb873698 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -422,8 +422,8 @@ private:
std::vector< CustomPropertyLine* > m_aCustomPropertiesLines;
CustomPropertyLine* m_pCurrentLine;
SvNumberFormatter m_aNumberFormatter;
- Timer m_aEditLoseFocusTimer;
- Timer m_aBoxLoseFocusTimer;
+ Idle m_aEditLoseFocusIdle;
+ Idle m_aBoxLoseFocusIdle;
Link m_aRemovedHdl;
DECL_LINK( TypeHdl, CustomPropertiesTypeBox* );
diff --git a/include/svx/numvset.hxx b/include/svx/numvset.hxx
index ae5a402fd377..4bc16cfc1225 100644
--- a/include/svx/numvset.hxx
+++ b/include/svx/numvset.hxx
@@ -90,7 +90,7 @@ class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet
class SVX_DLLPUBLIC SvxBmpNumValueSet : public SvxNumValueSet
{
- Timer aFormatTimer;
+ Idle aFormatIdle;
bool bGrfNotFound;
void init();
@@ -101,7 +101,7 @@ class SVX_DLLPUBLIC SvxBmpNumValueSet : public SvxNumValueSet
void SetGrfNotFound(bool bSet) {bGrfNotFound = bSet;}
bool IsGrfNotFound()const {return bGrfNotFound;}
- Timer& GetFormatTimer() {return aFormatTimer;}
+ Idle& GetFormatIdle() {return aFormatIdle;}
public:
SvxBmpNumValueSet(vcl::Window* pParent, WinBits nWinBits = WB_TABSTOP);
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index bf2124e0295c..ff0b5b593282 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1426,10 +1426,10 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent,
Application::GetSettings().GetLanguageTag().getLanguageType() )
{
- m_aEditLoseFocusTimer.SetTimeout( 300 );
- m_aEditLoseFocusTimer.SetTimeoutHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) );
- m_aBoxLoseFocusTimer.SetTimeout( 300 );
- m_aBoxLoseFocusTimer.SetTimeoutHdl( LINK( this, CustomPropertiesWindow, BoxTimeoutHdl ) );
+ m_aEditLoseFocusIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+ m_aEditLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) );
+ m_aBoxLoseFocusIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+ m_aBoxLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, BoxTimeoutHdl ) );
m_aNameBox.add_mnemonic_label(m_pHeaderAccName);
m_aNameBox.SetAccessibleName(m_pHeaderAccName->GetText());
@@ -1454,8 +1454,8 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent,
CustomPropertiesWindow::~CustomPropertiesWindow()
{
- m_aEditLoseFocusTimer.Stop();
- m_aBoxLoseFocusTimer.Stop();
+ m_aEditLoseFocusIdle.Stop();
+ m_aBoxLoseFocusIdle.Stop();
ClearAllLines();
}
@@ -1531,7 +1531,7 @@ IMPL_LINK( CustomPropertiesWindow, EditLoseFocusHdl, CustomPropertiesEdit*, pEdi
if ( !pLine->m_bTypeLostFocus )
{
m_pCurrentLine = pLine;
- m_aEditLoseFocusTimer.Start();
+ m_aEditLoseFocusIdle.Start();
}
else
pLine->m_bTypeLostFocus = false;
@@ -1544,7 +1544,7 @@ IMPL_LINK( CustomPropertiesWindow, BoxLoseFocusHdl, CustomPropertiesTypeBox*, pB
if ( pBox )
{
m_pCurrentLine = pBox->GetLine();
- m_aBoxLoseFocusTimer.Start();
+ m_aBoxLoseFocusIdle.Start();
}
return 0;
diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx
index 0963e6d635df..55aebe385f83 100644
--- a/svx/source/dialog/svxbmpnumvalueset.cxx
+++ b/svx/source/dialog/svxbmpnumvalueset.cxx
@@ -480,15 +480,15 @@ void SvxBmpNumValueSet::init()
GalleryExplorer::BeginLocking(GALLERY_THEME_BULLETS);
SetStyle( GetStyle() | WB_VSCROLL );
SetLineCount( 3 );
- aFormatTimer.SetTimeout(300);
- aFormatTimer.SetTimeoutHdl(LINK(this, SvxBmpNumValueSet, FormatHdl_Impl));
+ aFormatIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+ aFormatIdle.SetIdleHdl(LINK(this, SvxBmpNumValueSet, FormatHdl_Impl));
}
SvxBmpNumValueSet::~SvxBmpNumValueSet()
{
GalleryExplorer::EndLocking(GALLERY_THEME_BULLETS);
- aFormatTimer.Stop();
+ aFormatIdle.Stop();
}
void SvxBmpNumValueSet::UserDraw( const UserDrawEvent& rUDEvt )