summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-23 23:39:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-23 23:43:12 +0000
commit3b80c1ac1351ae7f2bf102e23928cd64133de7b3 (patch)
tree5195ee7f465a11447eb467b80027893b832db03c /vcl
parent2bb1a845a25ca9a39c96f37995453844461aed4e (diff)
add a basic GetOptimalSize to progress bar
Change-Id: I34b98d4c98b3f9af062473f254ffeadb05130471
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/prgsbar.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index 000d8212c6b7..4a4638887923 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -43,10 +43,15 @@ static WinBits clearProgressBarBorder( Window* pParent, WinBits nOrgStyle )
return nOutStyle;
}
+Size ProgressBar::GetOptimalSize() const
+{
+ return Size(150, 20);
+}
+
ProgressBar::ProgressBar( Window* pParent, WinBits nWinStyle ) :
Window( pParent, clearProgressBarBorder( pParent, nWinStyle ) )
{
- SetOutputSizePixel( Size( 150, 20 ) );
+ SetOutputSizePixel( GetOptimalSize() );
ImplInit();
}