mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-09-12 06:49:33 +02:00
Add KTextEditor recipe
Reviewers: cordlandwehr Reviewed By: cordlandwehr Differential Revision: https://phabricator.kde.org/D7277
This commit is contained in:
42
recipes-kf5/tier3/ktexteditor.inc
Normal file
42
recipes-kf5/tier3/ktexteditor.inc
Normal file
@@ -0,0 +1,42 @@
|
||||
DESCRIPTION = "KTextEditor"
|
||||
HOMEPAGE = "https://api.kde.org/frameworks/ktexteditor/html/index.html"
|
||||
LICENSE = "LGPL-2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
||||
PR = "r0"
|
||||
|
||||
DEPENDS = " \
|
||||
qtbase \
|
||||
karchive \
|
||||
kconfig \
|
||||
kguiaddons \
|
||||
ki18n \
|
||||
kio \
|
||||
kparts \
|
||||
sonnet \
|
||||
kiconthemes \
|
||||
ksyntaxhighlighting \
|
||||
"
|
||||
|
||||
SRC_URI = " \
|
||||
git://anongit.kde.org/ktexteditor;nobranch=1 \
|
||||
file://0001-no-accessibility.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake_kf5
|
||||
inherit gettext
|
||||
inherit python3native
|
||||
|
||||
do_compile_prepend() {
|
||||
# desktoptojson needs to find installed service type files
|
||||
export XDG_DATA_DIRS=${STAGING_DATADIR}:$XDG_DATA_DIRS
|
||||
}
|
||||
|
||||
FILES_${PN} += " \
|
||||
${libdir}/plugins/kf5/parts/katepart.so \
|
||||
${datadir}/kservices5/*.desktop \
|
||||
${datadir}/kservicetypes5/*.desktop \
|
||||
${datadir}/dbus-1/system-services/*.service \
|
||||
${datadir}/polkit-1/actions/*.policy \
|
||||
${datadir}/katepart5/script/README.md \
|
||||
"
|
||||
27
recipes-kf5/tier3/ktexteditor/0001-no-accessibility.patch
Normal file
27
recipes-kf5/tier3/ktexteditor/0001-no-accessibility.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff --git a/src/view/kateviewinternal.cpp b/src/view/kateviewinternal.cpp
|
||||
index 55f994ec..b664d5f1 100644
|
||||
--- a/src/view/kateviewinternal.cpp
|
||||
+++ b/src/view/kateviewinternal.cpp
|
||||
@@ -3756,18 +3756,22 @@ void KateViewInternal::flashChar(const KTextEditor::Cursor &pos, KTextEditor::At
|
||||
|
||||
void KateViewInternal::documentTextInserted(KTextEditor::Document *document, const KTextEditor::Range &range)
|
||||
{
|
||||
+#ifndef QT_NO_ACCESSIBILITY
|
||||
if (QAccessible::isActive()) {
|
||||
QAccessibleTextInsertEvent ev(this,
|
||||
KateViewAccessible::positionFromCursor(this, range.start()), document->text(range));
|
||||
QAccessible::updateAccessibility(&ev);
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
void KateViewInternal::documentTextRemoved(KTextEditor::Document * /*document*/, const KTextEditor::Range &range, const QString &oldText)
|
||||
{
|
||||
+#ifndef QT_NO_ACCESSIBILITY
|
||||
if (QAccessible::isActive()) {
|
||||
QAccessibleTextRemoveEvent ev(this,
|
||||
KateViewAccessible::positionFromCursor(this, range.start()), oldText);
|
||||
QAccessible::updateAccessibility(&ev);
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
2
recipes-kf5/tier3/ktexteditor_5.36.0.bb
Normal file
2
recipes-kf5/tier3/ktexteditor_5.36.0.bb
Normal file
@@ -0,0 +1,2 @@
|
||||
require ${PN}.inc
|
||||
SRCREV = "v${PV}"
|
||||
Reference in New Issue
Block a user