summaryrefslogtreecommitdiff
path: root/vcl/source/control/listbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/listbox.cxx')
-rw-r--r--vcl/source/control/listbox.cxx35
1 files changed, 2 insertions, 33 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx
index 88a53fc350eb..40949fd3fb5d 100644
--- a/vcl/source/control/listbox.cxx
+++ b/vcl/source/control/listbox.cxx
@@ -82,7 +82,6 @@ void ListBox::ImplInitListBoxData()
mnLineCount = 0;
m_nMaxWidthChars = -1;
mbDDAutoSize = true;
- mbEdgeBlending = false;
}
void ListBox::ImplInit( vcl::Window* pParent, WinBits nStyle )
@@ -128,7 +127,7 @@ void ListBox::ImplInit( vcl::Window* pParent, WinBits nStyle )
mpImplWin->SetUserDrawHdl( LINK( this, ListBox, ImplUserDrawHdl ) );
mpImplWin->Show();
mpImplWin->GetDropTarget()->addDropTargetListener(xDrop);
- mpImplWin->SetEdgeBlending(GetEdgeBlending());
+ mpImplWin->SetEdgeBlending(false);
mpBtn = VclPtr<ImplBtn>::Create( this, WB_NOLIGHTBORDER | WB_RECTSTYLE );
ImplInitDropDownButton( mpBtn );
@@ -149,7 +148,7 @@ void ListBox::ImplInit( vcl::Window* pParent, WinBits nStyle )
mpImplLB->SetFocusHdl( LINK( this, ListBox, ImplFocusHdl ) );
mpImplLB->SetListItemSelectHdl( LINK( this, ListBox, ImplListItemSelectHdl ) );
mpImplLB->SetPosPixel( Point() );
- mpImplLB->SetEdgeBlending(GetEdgeBlending());
+ mpImplLB->SetEdgeBlending(false);
mpImplLB->Show();
mpImplLB->GetDropTarget()->addDropTargetListener(xDrop);
@@ -1445,36 +1444,6 @@ bool ListBox::set_property(const OString &rKey, const OUString &rValue)
return true;
}
-void ListBox::SetEdgeBlending(bool bNew)
-{
- if(mbEdgeBlending != bNew)
- {
- mbEdgeBlending = bNew;
-
- if(IsDropDownBox())
- {
- assert(mpImplWin);
- mpImplWin->Invalidate();
- }
- else
- {
- mpImplLB->Invalidate();
- }
-
- if(mpImplWin)
- {
- mpImplWin->SetEdgeBlending(GetEdgeBlending());
- }
-
- if(mpImplLB)
- {
- mpImplLB->SetEdgeBlending(GetEdgeBlending());
- }
-
- Invalidate();
- }
-}
-
FactoryFunction ListBox::GetUITestFactory() const
{
return ListBoxUIObject::create;