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:27:03 +0100
commit93a0b9aac9ce55bb6d04f00bb817bb1da1566838 (patch)
tree4965db1bc11be1bfaf356e1cbf576363c8757b84 /desktop/source
parent9d1360a371f7335f1ede2f9ffe6f0282c53a07e7 (diff)
Related: fdo#65407 set a default size related to font size rather than pixels
Change-Id: I97ff54de97ca1e02aff2a94dc01f2e4991600cd5 (cherry picked from commit 65df76208a8ad5d7b6de22b7bcae14148271dc54)
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)
{