summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/msgbox.cxx7
-rw-r--r--vcl/source/window/window.cxx7
2 files changed, 12 insertions, 2 deletions
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index d7b3bf035430..2b0328fa1c65 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -372,8 +372,13 @@ Size MessBox::GetOptimalSize() const
}
InfoBox::InfoBox( vcl::Window* pParent, const OUString& rMessage ) :
- InfoBox( pParent, WB_OK | WB_DEF_OK, rMessage )
+ MessBox( pParent, WB_OK | WB_DEF_OK, OUString(), rMessage )
{
+ // Default Text is the display title from the application
+ if ( GetText().isEmpty() )
+ SetText( Application::GetDisplayName() );
+
+ SetImage( InfoBox::GetStandardImage() );
}
InfoBox::InfoBox( vcl::Window* pParent, WinBits nStyle, const OUString& rMessage ) :
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index fdd43b81f718..2c97ee561662 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -93,8 +93,13 @@ Window::Window( WindowType nType ) :
}
Window::Window( vcl::Window* pParent, WinBits nStyle ) :
- Window(WINDOW_WINDOW)
+ mpWindowImpl(new WindowImpl( WINDOW_WINDOW ))
{
+ meOutDevType = OUTDEV_WINDOW;
+
+ // true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
+ mbEnableRTL = AllSettings::GetLayoutRTL();
+
ImplInit( pParent, nStyle, nullptr );
}