diff options
author | Arnold Dumas <arnold@dumas.at> | 2016-12-09 19:05:01 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-12-10 21:30:51 +0000 |
commit | cc02097495f95967f8f06c364dfa6a8949132868 (patch) | |
tree | 49a9bf5ddc600722176ceaf1d7d4f983e0b47e3e /cui | |
parent | ed8ecae06dae4775a2610edc6bcc96a91fb60147 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/about.cxx | 1 | ||||
-rw-r--r-- | cui/source/inc/about.hxx | 3 | ||||
-rw-r--r-- | cui/uiconfig/ui/aboutdialog.ui | 7 |
3 files changed, 5 insertions, 6 deletions
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<FixedText>("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 <vcl/accel.hxx> #include <vcl/button.hxx> #include <vcl/fixed.hxx> +#include <vcl/fixedhyper.hxx> #include <vcl/vclmedit.hxx> #include <sfx2/basedlgs.hxx> #include <vector> @@ -34,7 +35,7 @@ private: BitmapEx aBackgroundBitmap; BitmapEx aLogoBitmap; - VclPtr<VclMultiLineEdit> m_pVersion; + VclPtr<FixedHyperlink> m_pVersion; VclPtr<FixedText> m_pDescriptionText; VclPtr<FixedText> m_pCopyrightText; VclPtr<FixedImage> 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 @@ <!-- Generated with glade 3.18.3 --> <interface> <requires lib="gtk+" version="3.0"/> - <object class="GtkTextBuffer" id="textbuffer1"> - <property name="text" translatable="yes">Version: %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX</property> - </object> <object class="GtkDialog" id="AboutDialog"> <property name="can_focus">False</property> <property name="border_width">6</property> @@ -147,7 +144,7 @@ </packing> </child> <child> - <object class="GtkTextView" id="version"> + <object class="GtkLinkButton" id="version"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hexpand">True</property> @@ -155,7 +152,7 @@ <property name="wrap_mode">word</property> <property name="justification">center</property> <property name="cursor_visible">False</property> - <property name="buffer">textbuffer1</property> + <property name="label" translatable="yes">Version: %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX</property> </object> <packing> <property name="left_attach">0</property> |