SHA256
1
0
forked from pool/scribus
scribus/0001-Make-sure-information-displayed-on-the-about-window-.patch
Christophe Giboudeaux 42e2ac9561 Accepting request 888442 from home:wolfi323:branches:KDE:Extra
- Update to 1.5.7
  * General:
    + Improvements for undo and redo of grouped items
    + Support for later versions of dependencies such as poppler
      and podofo
    + Fixed: Issue with Qt menu heuristics causing translations not
      to work
    + As of version 1.5.7, the minimum Qt version to compile
      Scribus is 5.14
  * PDF import:
    + As of version 1.5.7, Scribus can import text as editable text
      from PDF files. It should be noted that this new feature is
      still experimental.
  * PDF export:
    + Improved font embedding for OpenType fonts in PDF/X-4
  * User interface:
    + Unification and standardization of the user interface
      regarding margins, button and widget sizing, thanks to the
      tireless work of Gyuris Gellért
  * Render frames:
    + Render frames are now pre-configured for the use of XeLaTeX
- Drop patches merged upstream:
  * 0001-fix-build-of-pdf-import-plugin-with-poppler-21.03.0.patch
  * 0002-fix-build-of-pdf-import-plugin-with-poppler-21.03.0.patch
  * 0003-Page-getFormWidgets-returns-unique_ptr-in-poppler-21.04.0.patch
- Rebase 0001-Make-sure-information-displayed-on-the-about-window-.patch

OBS-URL: https://build.opensuse.org/request/show/888442
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/scribus?expand=0&rev=69
2021-04-26 11:14:34 +00:00

57 lines
2.6 KiB
Diff

From c8877881e4439325137b5209037e76835a09444d Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Thu, 5 Sep 2019 12:16:58 +0200
Subject: [PATCH] Make sure information displayed on the about window are
available
The AUTHORS,COPYING,LINKS,TRANSLATION files are parsed to populate the
help/about window.
We must ensure these files are always available (including on live CD).
---
scribus/ui/about.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scribus/ui/about.cpp b/scribus/ui/about.cpp
index b70d1eb..d1a4f1b 100644
--- a/scribus/ui/about.cpp
+++ b/scribus/ui/about.cpp
@@ -164,7 +164,7 @@ About::About( QWidget* parent, AboutMode diaMode ) : QDialog( parent )
tabLayout->setSpacing(6);
tabLayout->setContentsMargins(9, 9, 9, 9);
authorView = new QTextBrowser( tab_2 );
- authorView->setHtml(About::parseAuthorFile(ScPaths::instance().docDir() + "AUTHORS"));
+ authorView->setHtml(About::parseAuthorFile(ScPaths::instance().shareDir() + "/aboutData/AUTHORS"));
tabLayout->addWidget( authorView );
tabWidget2->addTab( tab_2, tr("A&uthors"));
@@ -174,14 +174,14 @@ About::About( QWidget* parent, AboutMode diaMode ) : QDialog( parent )
tabLayout_2->setSpacing(6);
tabLayout_2->setContentsMargins(9, 9, 9, 9);
transView = new QTextBrowser( tab_3);
- transView->setHtml(About::parseTranslationFile(ScPaths::instance().docDir() + "TRANSLATION"));
+ transView->setHtml(About::parseTranslationFile(ScPaths::instance().shareDir() + "/aboutData/TRANSLATION"));
tabLayout_2->addWidget( transView );
tabWidget2->addTab( tab_3, tr("&Translations") );
/*! ONLINE tab (03/04/2004 petr vanek) */
tab_4 = new QWidget( tabWidget2 );
onlineView = new QTextBrowser( tab_4 );
- onlineView->setHtml(About::parseLinksFile(ScPaths::instance().docDir() + "LINKS"));
+ onlineView->setHtml(About::parseLinksFile(ScPaths::instance().shareDir() + "/aboutData/LINKS"));
onlineView->setOpenExternalLinks(true);
tabLayout_4 = new QHBoxLayout( tab_4 );
tabLayout_4->setSpacing(6);
@@ -210,7 +210,7 @@ About::About( QWidget* parent, AboutMode diaMode ) : QDialog( parent )
textViewLicence = new QTextBrowser( tab_Licence);
licenceLayout->addWidget( textViewLicence );
- QFile licenceFile(ScPaths::instance().docDir() + "/COPYING");
+ QFile licenceFile(ScPaths::instance().shareDir() + "/aboutData/COPYING");
if (!licenceFile.open(QIODevice::ReadOnly | QIODevice::Text))
textViewLicence->setPlainText(tr("Unable to open licence file. Please check your install directory or the Scribus website for licencing information.") );
else
--
2.23.0