summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:42:56 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:18 +0200
commit8dc5f89346fa0f6820d5fd0b1ad4092168967f12 (patch)
treef3742c90480393565c89ffdd0cb1cee639c65d0d /vcl/source/control
parent286dfc2a720ea8bd6b26c10126202fa25a112e0f (diff)
loplugin: defaultparams
Change-Id: I79a889c68e91712d2abdacc559c78813f730e623
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/button.cxx28
-rw-r--r--vcl/source/control/combobox.cxx6
-rw-r--r--vcl/source/control/edit.cxx4
-rw-r--r--vcl/source/control/field2.cxx4
-rw-r--r--vcl/source/control/fixed.cxx18
-rw-r--r--vcl/source/control/group.cxx4
-rw-r--r--vcl/source/control/ilstbox.cxx28
-rw-r--r--vcl/source/control/lstbox.cxx2
-rw-r--r--vcl/source/control/morebtn.cxx2
-rw-r--r--vcl/source/control/prgsbar.cxx2
-rw-r--r--vcl/source/control/scrbar.cxx2
-rw-r--r--vcl/source/control/slider.cxx6
-rw-r--r--vcl/source/control/tabctrl.cxx10
13 files changed, 58 insertions, 58 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index f5dd84c6c4fe..dadb241fa25d 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -697,7 +697,7 @@ void PushButton::ImplInitSettings( bool bFont,
if ( IsNativeControlSupported( CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL ) ||
(GetStyle() & WB_FLATBUTTON) != 0 )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
@@ -709,7 +709,7 @@ void PushButton::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
}
}
@@ -1167,7 +1167,7 @@ void PushButton::ImplSetDefButton( bool bSet )
ImplGetButtonState() &= ~DrawButtonFlags::Default;
}
if( bSetPos )
- setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), PosSizeFlags::All );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
Invalidate();
}
@@ -1243,7 +1243,7 @@ void PushButton::Tracking( const TrackingEvent& rTEvt )
ImplGetButtonState() &= ~DrawButtonFlags::Pressed;
}
else
- Check( true );
+ Check();
}
}
else
@@ -1328,7 +1328,7 @@ void PushButton::KeyUp( const KeyEvent& rKEvt )
ImplGetButtonState() &= ~DrawButtonFlags::Pressed;
}
else
- Check( true );
+ Check();
Toggle();
}
@@ -1755,7 +1755,7 @@ void CancelButton::Click()
if ( pParent->IsDialog() )
{
if ( static_cast<Dialog*>(pParent)->IsInExecute() )
- static_cast<Dialog*>(pParent)->EndDialog( RET_CANCEL );
+ static_cast<Dialog*>(pParent)->EndDialog();
// prevent recursive calls
else if ( !static_cast<Dialog*>(pParent)->IsInClose() )
{
@@ -1862,7 +1862,7 @@ void RadioButton::ImplInitSettings( bool bFont,
if ( !IsControlBackground() &&
(pParent->IsChildTransparentModeEnabled() || IsNativeControlSupported( CTRL_RADIOBUTTON, PART_ENTIRE_CONTROL ) ) )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -1872,7 +1872,7 @@ void RadioButton::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -3000,7 +3000,7 @@ void CheckBox::ImplInitSettings( bool bFont,
if ( !IsControlBackground() &&
(pParent->IsChildTransparentModeEnabled() || IsNativeControlSupported( CTRL_CHECKBOX, PART_ENTIRE_CONTROL ) ) )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -3010,7 +3010,7 @@ void CheckBox::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -3028,7 +3028,7 @@ void CheckBox::ImplLoadRes( const ResId& rResId )
sal_uInt16 nChecked = ReadShortRes();
//anderer Wert als Default ?
if( nChecked )
- Check( true );
+ Check();
}
void CheckBox::ImplDrawCheckBoxState(vcl::RenderContext& rRenderContext)
@@ -3470,7 +3470,7 @@ void CheckBox::GetFocus()
aPos.Move(-1,-1);
aSize.Height() += 2;
aSize.Width() += 2;
- setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), PosSizeFlags::All );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
Invalidate();
}
else
@@ -3501,7 +3501,7 @@ void CheckBox::LoseFocus()
aPos.Move(1,1);
aSize.Height() -= 2;
aSize.Width() -= 2;
- setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height(), PosSizeFlags::All );
+ setPosSizePixel( aPos.X(), aPos.Y(), aSize.Width(), aSize.Height() );
Invalidate();
}
}
@@ -3859,7 +3859,7 @@ ImageRadioButton::ImageRadioButton( vcl::Window* pParent, WinBits nStyle ) :
TriStateBox::TriStateBox( vcl::Window* pParent, WinBits nStyle ) :
CheckBox( pParent, nStyle )
{
- EnableTriState( true );
+ EnableTriState();
}
DisclosureButton::DisclosureButton( vcl::Window* pParent, WinBits nStyle ) :
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index bc041ea0117f..e13bfdc3e5be 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -281,7 +281,7 @@ void ComboBox::ImplLoadRes( const ResId& rResId )
{
for( sal_Int32 i = 0; i < nNumber; i++ )
{
- InsertEntry( ReadStringRes(), LISTBOX_APPEND );
+ InsertEntry( ReadStringRes() );
}
}
}
@@ -385,12 +385,12 @@ void ComboBox::Impl::ImplAutocompleteHandler( Edit* pEdit )
if (!m_isMatchCase)
{
// Try match case insensitive from current position
- nPos = m_pImplLB->GetEntryList()->FindMatchingEntry( aStartText, nStart, bForward, true );
+ nPos = m_pImplLB->GetEntryList()->FindMatchingEntry( aStartText, nStart, bForward );
if ( nPos == LISTBOX_ENTRY_NOTFOUND )
// Try match case insensitive, but from start
nPos = m_pImplLB->GetEntryList()->FindMatchingEntry( aStartText,
bForward ? 0 : (m_pImplLB->GetEntryList()->GetEntryCount()-1),
- bForward, true );
+ bForward );
}
if ( nPos == LISTBOX_ENTRY_NOTFOUND )
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 39f5bf0c683d..b4e56f47fa86 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2294,7 +2294,7 @@ void Edit::StateChanged( StateChangedType nType )
{
if (!mpSubEdit)
{
- ImplShowCursor(true);
+ ImplShowCursor();
Invalidate();
}
}
@@ -2333,7 +2333,7 @@ void Edit::DataChanged( const DataChangedEvent& rDCEvt )
{
if ( !mpSubEdit )
{
- ImplShowCursor( true );
+ ImplShowCursor();
Invalidate();
}
}
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index d35a4e769067..dbda25e86123 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2497,7 +2497,7 @@ TimeField::TimeField( vcl::Window* pParent, WinBits nWinStyle ) :
maLast( GetMax() )
{
SetField( this );
- SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false, false ) );
+ SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false ) );
Reformat();
}
@@ -2634,7 +2634,7 @@ TimeBox::TimeBox( vcl::Window* pParent, WinBits nWinStyle ) :
ComboBox( pParent, nWinStyle )
{
SetField( this );
- SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false, false ) );
+ SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, false ) );
Reformat();
}
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index bdbff17f22da..990f1a6cf2d3 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -210,7 +210,7 @@ void FixedText::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -218,7 +218,7 @@ void FixedText::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -621,7 +621,7 @@ void FixedLine::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -629,7 +629,7 @@ void FixedLine::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -707,7 +707,7 @@ void FixedLine::DataChanged( const DataChangedEvent& rDCEvt )
Size FixedLine::GetOptimalSize() const
{
- return CalcWindowSize( FixedText::CalcMinimumTextSize ( this, 0x7fffffff ) );
+ return CalcWindowSize( FixedText::CalcMinimumTextSize ( this ) );
}
void FixedBitmap::ImplInit( vcl::Window* pParent, WinBits nStyle )
@@ -753,7 +753,7 @@ void FixedBitmap::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -761,7 +761,7 @@ void FixedBitmap::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
@@ -923,7 +923,7 @@ void FixedImage::ApplySettings(vcl::RenderContext& rRenderContext)
vcl::Window* pParent = GetParent();
if (pParent && pParent->IsChildTransparentModeEnabled() && !IsControlBackground())
{
- EnableChildTransparentMode(true);
+ EnableChildTransparentMode();
SetParentClipMode(ParentClipMode::NoClip);
SetPaintTransparent(true);
rRenderContext.SetBackground();
@@ -931,7 +931,7 @@ void FixedImage::ApplySettings(vcl::RenderContext& rRenderContext)
else
{
EnableChildTransparentMode(false);
- SetParentClipMode(ParentClipMode::NONE);
+ SetParentClipMode();
SetPaintTransparent(false);
if (IsControlBackground())
diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx
index 1c2ca0ca57f7..18906a58efc4 100644
--- a/vcl/source/control/group.cxx
+++ b/vcl/source/control/group.cxx
@@ -67,7 +67,7 @@ void GroupBox::ImplInitSettings( bool bFont,
!(pParent->GetStyle() & WB_CLIPCHILDREN) ) &&
!IsControlBackground() )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -75,7 +75,7 @@ void GroupBox::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 78145cf8e8dc..59051a153413 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -1149,7 +1149,7 @@ bool ImplListBoxWindow::SelectEntries( sal_Int32 nSelect, LB_EVENT_TYPE eLET, bo
if( bFocusChanged )
{
- long nHeightDiff = mpEntryList->GetAddedHeight( nSelect, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( nSelect, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(),
mpEntryList->GetEntryHeight( nSelect ) );
@@ -1189,7 +1189,7 @@ void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
mbTrackingSelect = false;
if ( mnTrackingSaveSelection != LISTBOX_ENTRY_NOTFOUND )
{
- long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(),
mpEntryList->GetEntryHeight( mnCurrentPos ) );
@@ -1322,7 +1322,7 @@ void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
}
else
{
- long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( mnCurrentPos, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(), mpEntryList->GetEntryHeight( mnCurrentPos ) );
maFocusRect.SetSize( aSz );
@@ -1365,7 +1365,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( mnCurrentPos )
{
@@ -1392,12 +1392,12 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( (mnCurrentPos+1) < mpEntryList->GetEntryCount() )
{
// search first selectable below the current position
- nSelect = mpEntryList->FindFirstSelectable( mnCurrentPos + 1, true );
+ nSelect = mpEntryList->FindFirstSelectable( mnCurrentPos + 1 );
}
if( ( nSelect != LISTBOX_ENTRY_NOTFOUND ) && ( nSelect >= GetLastVisibleEntry() ) )
@@ -1421,7 +1421,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( mnCurrentPos )
{
@@ -1432,7 +1432,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
}
// find first selectable starting from mnTop looking forward
- nSelect = mpEntryList->FindFirstSelectable( mnTop, true );
+ nSelect = mpEntryList->FindFirstSelectable( mnTop );
}
bDone = true;
}
@@ -1450,7 +1450,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( (mnCurrentPos+1) < mpEntryList->GetEntryCount() )
{
@@ -1484,7 +1484,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if ( mnCurrentPos )
{
- nSelect = mpEntryList->FindFirstSelectable( mpEntryList->GetEntryCount() ? 0 : LISTBOX_ENTRY_NOTFOUND, true );
+ nSelect = mpEntryList->FindFirstSelectable( mpEntryList->GetEntryCount() ? 0 : LISTBOX_ENTRY_NOTFOUND );
if( mnTop != 0 )
SetTopEntry( 0 );
@@ -1505,7 +1505,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
if( mnCurrentPos == LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = mpEntryList->FindFirstSelectable( 0, true );
+ nSelect = mpEntryList->FindFirstSelectable( 0 );
}
else if ( (mnCurrentPos+1) < mpEntryList->GetEntryCount() )
{
@@ -1893,7 +1893,7 @@ void ImplListBoxWindow::ImplDoPaint(vcl::RenderContext& rRenderContext, const Re
nY += pEntry->mnHeight;
}
- long nHeightDiff = mpEntryList->GetAddedHeight(mnCurrentPos, mnTop, 0);
+ long nHeightDiff = mpEntryList->GetAddedHeight(mnCurrentPos, mnTop);
maFocusRect.SetPos(Point(0, nHeightDiff));
Size aSz(maFocusRect.GetWidth(), mpEntryList->GetEntryHeight(mnCurrentPos));
maFocusRect.SetSize(aSz);
@@ -1944,7 +1944,7 @@ void ImplListBoxWindow::GetFocus()
sal_Int32 nPos = mnCurrentPos;
if ( nPos == LISTBOX_ENTRY_NOTFOUND )
nPos = 0;
- long nHeightDiff = mpEntryList->GetAddedHeight( nPos, mnTop, 0 );
+ long nHeightDiff = mpEntryList->GetAddedHeight( nPos, mnTop );
maFocusRect.SetPos( Point( 0, nHeightDiff ) );
Size aSz( maFocusRect.GetWidth(), mpEntryList->GetEntryHeight( nPos ) );
maFocusRect.SetSize( aSz );
@@ -1975,7 +1975,7 @@ void ImplListBoxWindow::SetTopEntry( sal_Int32 nTop )
if ( nTop != mnTop )
{
ImplClearLayoutData();
- long nDiff = mpEntryList->GetAddedHeight( mnTop, nTop, 0 );
+ long nDiff = mpEntryList->GetAddedHeight( mnTop, nTop );
Update();
ImplHideFocusRect();
mnTop = nTop;
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index 315e405b7a7a..ba085d718425 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -199,7 +199,7 @@ void ListBox::ImplLoadRes( const ResId& rResId )
for( sal_Int32 i = 0; i < nNumber; i++ )
{
- sal_Int32 nPos = InsertEntry( ReadStringRes(), LISTBOX_APPEND );
+ sal_Int32 nPos = InsertEntry( ReadStringRes() );
sal_IntPtr nId = ReadLongRes();
if( nId )
diff --git a/vcl/source/control/morebtn.cxx b/vcl/source/control/morebtn.cxx
index 5e7e104e13a9..2ae1e52bc087 100644
--- a/vcl/source/control/morebtn.cxx
+++ b/vcl/source/control/morebtn.cxx
@@ -47,7 +47,7 @@ void MoreButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
SetSymbolAlign(SymbolAlign::RIGHT);
SetImageAlign(ImageAlign::Right); //Resoves: fdo#31849 ensure button remains vertically centered
- SetSmallSymbol(true);
+ SetSmallSymbol();
if ( ! ( nStyle & ( WB_RIGHT | WB_LEFT ) ) )
{
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index f069b4341d78..2e1dce50bea0 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -80,7 +80,7 @@ void ProgressBar::ImplInitSettings( bool bFont,
{
if( (GetStyle() & WB_BORDER) )
SetBorderStyle( WindowBorderStyle::REMOVEBORDER );
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetPaintTransparent( true );
SetBackground();
SetParentClipMode( ParentClipMode::NoClip );
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index b786ddd9621a..8a4345fe399f 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -1195,7 +1195,7 @@ void ScrollBar::StateChanged( StateChangedType nType )
else if ( nType == StateChangedType::Data )
{
if ( IsReallyVisible() && IsUpdateMode() )
- ImplCalc( true );
+ ImplCalc();
}
else if ( nType == StateChangedType::UpdateMode )
{
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 02fa450540d5..c1c9a34d0f14 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -98,7 +98,7 @@ void Slider::ImplInitSettings()
vcl::Window* pParent = GetParent();
if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
{
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -106,7 +106,7 @@ void Slider::ImplInitSettings()
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -901,7 +901,7 @@ void Slider::StateChanged( StateChangedType nType )
else if ( nType == StateChangedType::Data )
{
if ( IsReallyVisible() && IsUpdateMode() )
- ImplCalc( true );
+ ImplCalc();
}
else if ( nType == StateChangedType::UpdateMode )
{
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index d8053c40b55b..2cda79ca6a34 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -112,7 +112,7 @@ void TabControl::ImplInit( vcl::Window* pParent, WinBits nStyle )
// if the tabcontrol is drawn (ie filled) by a native widget, make sure all contols will have transparent background
// otherwise they will paint with a wrong background
if( IsNativeControlSupported(CTRL_TAB_PANE, PART_ENTIRE_CONTROL) )
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
if (pParent && pParent->IsDialog())
pParent->AddChildEventListener( LINK( this, TabControl, ImplWindowEventListener ) );
@@ -144,7 +144,7 @@ void TabControl::ImplInitSettings( bool bFont,
{
// set transparent mode for NWF tabcontrols to have
// the background always cleared properly
- EnableChildTransparentMode( true );
+ EnableChildTransparentMode();
SetParentClipMode( ParentClipMode::NoClip );
SetPaintTransparent( true );
SetBackground();
@@ -153,7 +153,7 @@ void TabControl::ImplInitSettings( bool bFont,
else
{
EnableChildTransparentMode( false );
- SetParentClipMode( ParentClipMode::NONE );
+ SetParentClipMode();
SetPaintTransparent( false );
if ( IsControlBackground() )
@@ -1059,7 +1059,7 @@ void TabControl::KeyInput( const KeyEvent& rKEvt )
void TabControl::Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect)
{
if (!(GetStyle() & WB_NOBORDER))
- ImplPaint(rRenderContext, rRect, false);
+ ImplPaint(rRenderContext, rRect);
}
void TabControl::ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bLayout)
@@ -1231,7 +1231,7 @@ void TabControl::ImplPaint(vcl::RenderContext& rRenderContext, const Rectangle&
if (bLayout || !aClipRgn.IsEmpty())
{
ImplDrawItem(rRenderContext, pItem, aCurRect, bLayout,
- pItem == pFirstTab, pItem == pLastTab, false);
+ pItem == pFirstTab, pItem == pLastTab);
}
}