diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2019-01-30 17:43:53 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2019-01-30 17:43:53 +0000 |
commit | d5e0fc787578cbc49060130554b790aff1777034 (patch) | |
tree | 2250d3ed8d82153a05ab10f1fe2256fd53932e87 | |
parent | 2019-01-30 16:25:01 UTC (diff) | |
parent | kde-frameworks/kxmlgui: Fix Qt5 app artifacts w/ kcheckaccelerators (diff) | |
download | gentoo-d5e0fc787578cbc49060130554b790aff1777034.tar.gz gentoo-d5e0fc787578cbc49060130554b790aff1777034.tar.bz2 gentoo-d5e0fc787578cbc49060130554b790aff1777034.zip |
Merge updates from master
6 files changed, 384 insertions, 0 deletions
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.54.0-allow-change-marker-size.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.54.0-allow-change-marker-size.patch new file mode 100644 index 000000000000..032fbc99367e --- /dev/null +++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.54.0-allow-change-marker-size.patch @@ -0,0 +1,78 @@ +From 5a6449c3b3d9bbc2b1bc15a5d5b40d7228f3a406 Mon Sep 17 00:00:00 2001 +From: Dominik Haumann <dhaumann@kde.org> +Date: Wed, 30 Jan 2019 17:16:32 +0100 +Subject: Fix bug 403422: Allow changing the marker size again + +This bug was introduced with https://phabricator.kde.org/D17661 +with commit c287d3858fd780f5e139d05e8bb7d4558ccc71b8 + +FIXED-IN: 5.55 +BUG: 403422 +--- + src/dialogs/textareaappearanceconfigwidget.ui | 27 +++++++++++++++++++++------ + 1 file changed, 21 insertions(+), 6 deletions(-) + +diff --git a/src/dialogs/textareaappearanceconfigwidget.ui b/src/dialogs/textareaappearanceconfigwidget.ui +index 02a0d54..cc44a39 100644 +--- a/src/dialogs/textareaappearanceconfigwidget.ui ++++ b/src/dialogs/textareaappearanceconfigwidget.ui +@@ -185,10 +185,10 @@ + <string>Size of the visible highlight marker.</string> + </property> + <property name="minimum"> +- <number>-1</number> ++ <number>1</number> + </property> + <property name="maximum"> +- <number>-1</number> ++ <number>5</number> + </property> + <property name="singleStep"> + <number>1</number> +@@ -301,6 +301,21 @@ beginning of a file.</string> + <header>kcombobox.h</header> + </customwidget> + </customwidgets> ++ <tabstops> ++ <tabstop>gbWordWrap</tabstop> ++ <tabstop>chkDynWrapAtStaticMarker</tabstop> ++ <tabstop>cmbDynamicWordWrapIndicator</tabstop> ++ <tabstop>sbDynamicWordWrapDepth</tabstop> ++ <tabstop>chkShowTabs</tabstop> ++ <tabstop>chkShowSpaces</tabstop> ++ <tabstop>sliSetMarkerSize</tabstop> ++ <tabstop>chkShowIndentationLines</tabstop> ++ <tabstop>chkShowWholeBracketExpression</tabstop> ++ <tabstop>chkAnimateBracketMatching</tabstop> ++ <tabstop>chkFoldFirstLine</tabstop> ++ <tabstop>chkShowWordCount</tabstop> ++ <tabstop>chkShowLineCount</tabstop> ++ </tabstops> + <resources/> + <connections> + <connection> +@@ -314,8 +329,8 @@ beginning of a file.</string> + <y>7</y> + </hint> + <hint type="destinationlabel"> +- <x>340</x> +- <y>44</y> ++ <x>559</x> ++ <y>117</y> + </hint> + </hints> + </connection> +@@ -330,8 +345,8 @@ beginning of a file.</string> + <y>6</y> + </hint> + <hint type="destinationlabel"> +- <x>385</x> +- <y>72</y> ++ <x>559</x> ++ <y>162</y> + </hint> + </hints> + </connection> +-- +cgit v1.1 + diff --git a/kde-frameworks/ktexteditor/ktexteditor-5.54.0-r1.ebuild b/kde-frameworks/ktexteditor/ktexteditor-5.54.0-r1.ebuild new file mode 100644 index 000000000000..72fcd5e12613 --- /dev/null +++ b/kde-frameworks/ktexteditor/ktexteditor-5.54.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VIRTUALX_REQUIRED="test" +inherit kde5 + +DESCRIPTION="Framework providing a full text editor component" +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="editorconfig git" + +RDEPEND=" + $(add_frameworks_dep karchive) + $(add_frameworks_dep kauth) + $(add_frameworks_dep kcodecs) + $(add_frameworks_dep kcompletion) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kguiaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kio) + $(add_frameworks_dep kitemviews) + $(add_frameworks_dep kjobwidgets) + $(add_frameworks_dep kparts) + $(add_frameworks_dep ktextwidgets) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kxmlgui) + $(add_frameworks_dep sonnet) + $(add_frameworks_dep syntax-highlighting) + $(add_qt_dep qtdeclarative) + $(add_qt_dep qtgui) + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtxml) + editorconfig? ( app-text/editorconfig-core-c ) + git? ( dev-libs/libgit2:= ) +" +DEPEND="${RDEPEND} + test? ( $(add_frameworks_dep kservice) ) +" + +RESTRICT+=" test" + +PATCHES=( "${FILESDIR}/${P}-allow-change-marker-size.patch" ) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package editorconfig EditorConfig) + $(cmake-utils_use_find_package git LibGit2) + ) + + kde5_src_configure +} diff --git a/kde-frameworks/kwidgetsaddons/files/kwidgetsaddons-5.54.0-no-light-fontstyle-headings.patch b/kde-frameworks/kwidgetsaddons/files/kwidgetsaddons-5.54.0-no-light-fontstyle-headings.patch new file mode 100644 index 000000000000..38c89728b52e --- /dev/null +++ b/kde-frameworks/kwidgetsaddons/files/kwidgetsaddons-5.54.0-no-light-fontstyle-headings.patch @@ -0,0 +1,88 @@ +From dc901a1f0b5f6621bfa1c23e33dcfdf6246e7cb1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Kre=C5=A1imir=20=C4=8Cohar?= <kcohar@gmail.com> +Date: Thu, 10 Jan 2019 09:19:33 -0700 +Subject: [KWidgetsAddons] Do not use light font styles for headings (3/3) + +Summary: +This patch brings back regular font styles for headings to KTitleWidget for the sake of consistency with QML and Kirigami, where they were also reintroduced in favor of better legibility. + +CCBUG: 402730 + +FIXED-IN: 5.54 + +Test Plan: +Before: +{F6520054} +After: +{F6520058} + +Reviewers: ngraham, #frameworks, #vdg, #plasma + +Reviewed By: ngraham, #vdg + +Subscribers: cfeck, filipf, kde-frameworks-devel + +Tags: #frameworks + +Differential Revision: https://phabricator.kde.org/D17907 +--- + src/ktitlewidget.cpp | 29 ----------------------------- + 1 file changed, 29 deletions(-) + +diff --git a/src/ktitlewidget.cpp b/src/ktitlewidget.cpp +index 7a34bc2..d8b0517 100644 +--- a/src/ktitlewidget.cpp ++++ b/src/ktitlewidget.cpp +@@ -213,16 +213,6 @@ void KTitleWidget::changeEvent(QEvent *e) + if (e->type() == QEvent::PaletteChange || e->type() == QEvent::FontChange + || e->type() == QEvent::ApplicationFontChange) { + d->textLabel->setStyleSheet(d->textStyleSheet()); +- //Qt stylesheet doesn't support lighter font-weight +- QFont font(d->textLabel->font()); +- if (d->level <= 4) { +- font.setWeight(QFont::Light); +- font.setStyleName(QStringLiteral("Light")); +- } else { +- font.setWeight(QFont::Normal); +- font.setStyleName(QStringLiteral("Regular")); +- } +- d->textLabel->setFont(font); + d->commentLabel->setStyleSheet(d->commentStyleSheet()); + } + } +@@ -233,16 +223,6 @@ void KTitleWidget::setText(const QString &text, Qt::Alignment alignment) + + if (!Qt::mightBeRichText(text)) { + d->textLabel->setStyleSheet(d->textStyleSheet()); +- //Qt stylesheet doesn't support lighter font-weight +- QFont font(d->textLabel->font()); +- if (d->level <= 4) { +- font.setWeight(QFont::Light); +- font.setStyleName(QStringLiteral("Light")); +- } else { +- font.setWeight(QFont::Normal); +- font.setStyleName(QStringLiteral("Regular")); +- } +- d->textLabel->setFont(font); + } + + d->textLabel->setText(text); +@@ -259,15 +239,6 @@ void KTitleWidget::setLevel(int level) + d->level = level; + + d->textLabel->setStyleSheet(d->textStyleSheet()); +- //Qt stylesheet doesn't support lighter font-weight +- QFont font(d->textLabel->font()); +- if (d->level <= 4) { +- font.setWeight(QFont::Light); +- font.setStyleName(QStringLiteral("Light")); +- } else { +- font.setWeight(QFont::Normal); +- font.setStyleName(QStringLiteral("Regular")); +- } + } + + int KTitleWidget::level() +-- +cgit v1.1 + diff --git a/kde-frameworks/kwidgetsaddons/kwidgetsaddons-5.54.0-r1.ebuild b/kde-frameworks/kwidgetsaddons/kwidgetsaddons-5.54.0-r1.ebuild new file mode 100644 index 000000000000..274e1794131f --- /dev/null +++ b/kde-frameworks/kwidgetsaddons/kwidgetsaddons-5.54.0-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VIRTUALX_REQUIRED="test" +inherit kde5 + +DESCRIPTION="An assortment of high-level widgets for common tasks" +LICENSE="LGPL-2.1+" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="nls" + +RDEPEND=" + $(add_qt_dep qtgui) + $(add_qt_dep qtwidgets) +" +DEPEND="${RDEPEND} + nls? ( $(add_qt_dep linguist-tools) ) +" + +PATCHES=( "${FILESDIR}/${P}-no-light-fontstyle-headings.patch" ) + +src_test() { + # bug 650216, 653186 + local myctestargs=( -E "(kdatecomboboxtest|ktooltipwidgettest)" ) + kde5_src_test +} diff --git a/kde-frameworks/kxmlgui/files/kxmlgui-5.54.0-kcheckaccelerators.patch b/kde-frameworks/kxmlgui/files/kxmlgui-5.54.0-kcheckaccelerators.patch new file mode 100644 index 000000000000..0882d5f09f9c --- /dev/null +++ b/kde-frameworks/kxmlgui/files/kxmlgui-5.54.0-kcheckaccelerators.patch @@ -0,0 +1,79 @@ +From 02b523bad09aab062355e46771889b0f3709692f Mon Sep 17 00:00:00 2001 +From: Albert Astals Cid <aacid@kde.org> +Date: Sat, 12 Jan 2019 18:39:33 +0100 +Subject: Make KCheckAccelerators less invasive for apps that don't directly + link to KXmlGui + +Summary: BUGS: 337491 + +Test Plan: +Ran qtcreator and it no longer has the & in Details +Added some debug and checked that okular still gets the code called + +Reviewers: anthonyfieroni + +Reviewed By: anthonyfieroni + +Subscribers: davidedmundson, anthonyfieroni, kde-frameworks-devel + +Tags: #frameworks + +Differential Revision: https://phabricator.kde.org/D18204 +--- + src/kcheckaccelerators.cpp | 38 ++++++++++++++++++++++++++++++++++++-- + 1 file changed, 36 insertions(+), 2 deletions(-) + +diff --git a/src/kcheckaccelerators.cpp b/src/kcheckaccelerators.cpp +index 13fc012..e08447d 100644 +--- a/src/kcheckaccelerators.cpp ++++ b/src/kcheckaccelerators.cpp +@@ -80,10 +80,44 @@ public Q_SLOTS: + + static void startupFunc() + { +- // Call initiateIfNeeded once we're in the event loop +- // This is to prevent using KSharedConfig before main() can set the app name ++ // Static because in some cases this is called multiple times ++ // but if an application had any of the bad cases we always want ++ // to skip the check ++ static bool doCheckAccelerators = true; ++ ++ if (!doCheckAccelerators) { ++ return; ++ } ++ + QCoreApplication *app = QCoreApplication::instance(); ++ if (!app) { ++ // We're being loaded by something that doesn't have a QCoreApplication ++ // this would probably crash at some later point since we do use qApp-> ++ // quite a lot, so skip the magic ++ doCheckAccelerators = false; ++ return; ++ } ++ ++ if (!QCoreApplication::startingUp()) { ++ // If the app has already started, this means we're not being run as part of ++ // qt_call_pre_routines, which most probably means that we're being run as part ++ // of KXmlGui being loaded as part of some plugin of the app, so don't ++ // do any magic ++ doCheckAccelerators = false; ++ return; ++ } ++ ++ if (!QCoreApplication::eventDispatcher()) { ++ // We are called with event dispatcher being null when KXmlGui is being loaded ++ // through plasma-integration instead of being linked to the app (i.e. QtCreator vs Okular) ++ // For apps that don't link directly to KXmlGui do not do the accelerator magic ++ doCheckAccelerators = false; ++ return; ++ } ++ + KCheckAcceleratorsInitializer *initializer = new KCheckAcceleratorsInitializer(app); ++ // Call initiateIfNeeded once we're in the event loop ++ // This is to prevent using KSharedConfig before main() can set the app name + QMetaObject::invokeMethod(initializer, "initiateIfNeeded", Qt::QueuedConnection); + } + +-- +cgit v1.1 + diff --git a/kde-frameworks/kxmlgui/kxmlgui-5.54.0-r1.ebuild b/kde-frameworks/kxmlgui/kxmlgui-5.54.0-r1.ebuild new file mode 100644 index 000000000000..eac5c3cc9e21 --- /dev/null +++ b/kde-frameworks/kxmlgui/kxmlgui-5.54.0-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VIRTUALX_REQUIRED="test" +inherit kde5 + +DESCRIPTION="Framework for managing menu and toolbar actions in an abstract way" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +LICENSE="LGPL-2+" +IUSE="attica" + +# slot op: includes QtCore/private/qlocale_p.h +RDEPEND=" + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kconfigwidgets) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kglobalaccel) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) + $(add_frameworks_dep kitemviews) + $(add_frameworks_dep ktextwidgets) + $(add_frameworks_dep kwidgetsaddons) + $(add_frameworks_dep kwindowsystem) + $(add_qt_dep qtcore '' '' '5=') + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtnetwork 'ssl') + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtxml) + attica? ( $(add_frameworks_dep attica) ) +" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${P}-kcheckaccelerators.patch" ) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package attica KF5Attica) + ) + + kde5_src_configure +} + +src_test() { + # Files are missing; whatever. Bugs 650290, 668198 + local myctestargs=( + -E "(ktoolbar_unittest|kxmlgui_unittest)" + ) + + kde5_src_test +} |