summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-05 13:25:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-05 13:26:41 +0100
commit65df76208a8ad5d7b6de22b7bcae14148271dc54 (patch)
tree25a23acab4151c8f3f501bc8ece7fcf7a8d63bc1 /desktop/source
parent04d9febcefc2bb18281828a4383f9b77f2bbd3ed (diff)
Related: fdo#65407 set a default size related to font size rather than pixels
Change-Id: I97ff54de97ca1e02aff2a94dc01f2e4991600cd5
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 2a439da9900d..5c66a3672859 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -148,6 +148,8 @@ public:
virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual long Notify( NotifyEvent& rNEvt );
+ virtual Size GetOptimalSize() const;
+
virtual void RecalcAll();
virtual void selectEntry( const long nPos );
//-----------------
@@ -164,6 +166,11 @@ ExtBoxWithBtns_Impl::ExtBoxWithBtns_Impl(Window* pParent)
{
}
+Size ExtBoxWithBtns_Impl::GetOptimalSize() const
+{
+ return LogicToPixel(Size(250, 150), MapMode(MAP_APPFONT));
+}
+
//------------------------------------------------------------------------------
void ExtBoxWithBtns_Impl::InitFromDialog(ExtMgrDialog *pParentDialog)
{