summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-08-07 12:36:42 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-08-07 12:36:42 +0200
commit7a71169604207979f3d4e8ce9f6c2d956534d82e (patch)
tree7e7a478b05c7e366a1b3388995343e3edd0552c2
parentc331ebc8a9090dc8288111a75019d1b2a8e2d22b (diff)
GSOC work, unused code removal
Removed the call of CodeCompleteListBox::GrabFocus. Change-Id: I6095f354eadd680d040319beb4d15d37850c3e9d
-rw-r--r--basctl/source/basicide/baside2b.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 93787269748f..811cb3b94a94 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -2648,7 +2648,6 @@ void CodeCompleteWindow::InitListBox()
{
pListBox->SetSizePixel( Size(150,150) ); //default, this will adopt the line length
pListBox->Show();
- pListBox->GrabFocus();
pListBox->EnableQuickSelection( false );
}
@@ -2686,7 +2685,6 @@ void CodeCompleteWindow::ResizeListBox()
aLongestEntry = pListBox->GetEntry( i );
}
}
- //long nWidth = GetTextWidth(aLongestEntry);
sal_uInt16 nColumns = aLongestEntry.getLength();
sal_uInt16 nLines = std::min( (sal_uInt16) 6, pListBox->GetEntryCount() );
const Font& aFont = pListBox->GetUnzoomedControlPointFont();
@@ -2706,6 +2704,7 @@ void CodeCompleteWindow::ResizeListBox()
aPos.Y() = aPos.Y() - (aSize.getHeight() + aParFont.GetSize().getHeight()+5);
SetPosPixel(aPos);
}
+
long nXDiff = std::abs(aTopPoint.X() - GetPosPixel().X());
if( nXDiff < aSize.Width() )
{//clipped at the right side, move it a bit left
@@ -2717,7 +2716,6 @@ void CodeCompleteWindow::ResizeListBox()
aSize.setWidth( aSize.getWidth() + 1 );
aSize.setHeight( aSize.getHeight() + 1 );
SetSizePixel( aSize );
- pListBox->GrabFocus();
}
}