From e26b5b4fb7e9146fb142422dbc3061c346935cfc Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Wed, 15 Mar 2017 10:55:34 +0100 Subject: gpg4libre: Improve certificate details view * Remove SQL Syntax highlighting * Add a vertical scrollbar if neccessary Change-Id: Ib1de2694761ef650ccef16a5b5773c7be0602682 Reviewed-on: https://gerrit.libreoffice.org/35210 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- xmlsecurity/inc/certificateviewer.hxx | 2 +- xmlsecurity/source/dialogs/certificateviewer.cxx | 5 ++++- xmlsecurity/uiconfig/ui/certdetails.ui | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/inc/certificateviewer.hxx b/xmlsecurity/inc/certificateviewer.hxx index b2872075a830..76174ccfb51b 100644 --- a/xmlsecurity/inc/certificateviewer.hxx +++ b/xmlsecurity/inc/certificateviewer.hxx @@ -99,7 +99,7 @@ class CertificateViewerDetailsTP : public CertificateViewerTP private: VclPtr m_pElementsLBContainer; VclPtr m_pElementsLB; - VclPtr m_pValueDetails; + VclPtr m_pValueDetails; vcl::Font m_aStdFont; vcl::Font m_aFixedWidthFont; diff --git a/xmlsecurity/source/dialogs/certificateviewer.cxx b/xmlsecurity/source/dialogs/certificateviewer.cxx index a2dfa814cefd..7361e253c614 100644 --- a/xmlsecurity/source/dialogs/certificateviewer.cxx +++ b/xmlsecurity/source/dialogs/certificateviewer.cxx @@ -228,11 +228,14 @@ CertificateViewerDetailsTP::CertificateViewerDetailsTP( vcl::Window* _pParent, C ,m_aFixedWidthFont( OutputDevice::GetDefaultFont( DefaultFontType::UI_FIXED, LANGUAGE_DONTKNOW, GetDefaultFontFlags::OnlyOne, this ) ) { get( m_pValueDetails, "valuedetails" ); + WinBits nStyle = m_pValueDetails->GetStyle(); + nStyle |= WB_AUTOVSCROLL; + m_pValueDetails->SetStyle(nStyle); get( m_pElementsLBContainer, "tablecontainer" ); m_pElementsLB = VclPtr::Create( *m_pElementsLBContainer ); m_aStdFont = m_pValueDetails->GetControlFont(); - WinBits nStyle = m_pElementsLB->GetStyle(); + nStyle = m_pElementsLB->GetStyle(); nStyle &= ~WB_HSCROLL; m_pElementsLB->SetStyle( nStyle ); diff --git a/xmlsecurity/uiconfig/ui/certdetails.ui b/xmlsecurity/uiconfig/ui/certdetails.ui index 52a6681d495f..75fec82e52f9 100644 --- a/xmlsecurity/uiconfig/ui/certdetails.ui +++ b/xmlsecurity/uiconfig/ui/certdetails.ui @@ -24,7 +24,7 @@ - + True True -- cgit