From cc02097495f95967f8f06c364dfa6a8949132868 Mon Sep 17 00:00:00 2001 From: Arnold Dumas Date: Fri, 9 Dec 2016 19:05:01 +0100 Subject: tdf#103654: Make git hash clickable in the About dialog This will help the QA team and make it easier to quickly see what is in a build. Change-Id: Ibaa96ee7eac7c60781dddb88981e76afbc71d23f Reviewed-on: https://gerrit.libreoffice.org/31808 Tested-by: Jenkins Reviewed-by: Michael Meeks --- cui/source/dialogs/about.cxx | 1 + cui/source/inc/about.hxx | 3 ++- cui/uiconfig/ui/aboutdialog.ui | 7 ++----- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 336951b3a7f3..fb1e15e4f5b8 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -77,6 +77,7 @@ AboutDialog::AboutDialog(vcl::Window* pParent) m_aLocaleStr = get("locale")->GetText(); m_pVersion->SetText(GetVersionString()); + m_pVersion->SetURL("https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=" + GetBuildId()); OUString aCopyrightString = GetCopyrightString(); m_pCopyrightText->SetText( aCopyrightString ); diff --git a/cui/source/inc/about.hxx b/cui/source/inc/about.hxx index 80fda68b6552..bdeef6585afc 100644 --- a/cui/source/inc/about.hxx +++ b/cui/source/inc/about.hxx @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -34,7 +35,7 @@ private: BitmapEx aBackgroundBitmap; BitmapEx aLogoBitmap; - VclPtr m_pVersion; + VclPtr m_pVersion; VclPtr m_pDescriptionText; VclPtr m_pCopyrightText; VclPtr m_pLogoImage; diff --git a/cui/uiconfig/ui/aboutdialog.ui b/cui/uiconfig/ui/aboutdialog.ui index d313cac4ef73..8e887ebd8ed3 100644 --- a/cui/uiconfig/ui/aboutdialog.ui +++ b/cui/uiconfig/ui/aboutdialog.ui @@ -2,9 +2,6 @@ - - Version: %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX - False 6 @@ -147,7 +144,7 @@ - + True True True @@ -155,7 +152,7 @@ word center False - textbuffer1 + Version: %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX 0 -- cgit