diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-25 11:37:10 +0100 |
commit | 38423c67c8a23f6a1bc42038193182e2da3116eb (patch) | |
tree | 04e2cf4bd43601b77daa79fe654e409187093c5e /kde-apps/kcharselect/files/kcharselect-19.12.3-kf5bookmarks-5.69.patch | |
parent | 623ee73d661e5ed8475cb264511f683407d87365 (diff) |
gentoo resync : 25.04.2020
Diffstat (limited to 'kde-apps/kcharselect/files/kcharselect-19.12.3-kf5bookmarks-5.69.patch')
-rw-r--r-- | kde-apps/kcharselect/files/kcharselect-19.12.3-kf5bookmarks-5.69.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/kde-apps/kcharselect/files/kcharselect-19.12.3-kf5bookmarks-5.69.patch b/kde-apps/kcharselect/files/kcharselect-19.12.3-kf5bookmarks-5.69.patch new file mode 100644 index 000000000000..46d943bb0372 --- /dev/null +++ b/kde-apps/kcharselect/files/kcharselect-19.12.3-kf5bookmarks-5.69.patch @@ -0,0 +1,50 @@ +From 7972b9858bcdd2bf8cd2b09cb7e8b6c9b51dfec9 Mon Sep 17 00:00:00 2001 +From: Ahmad Samir <a.samirh78@gmail.com> +Date: Fri, 17 Apr 2020 21:49:00 +0200 +Subject: [KCharSelect] Adapt the code to KBookmarks-5.69 changes + +Test Plan: +The Bookmarks menu has the usual entries, and the bookmark actions are +displayed in the configure shortcuts dialog. + +Reviewers: cfeck + +Reviewed By: cfeck + +Subscribers: asturmlechner, kde-utils-devel + +Differential Revision: https://phabricator.kde.org/D28927 +--- + kcharselectdia.cc | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/kcharselectdia.cc b/kcharselectdia.cc +index 116cba4..37ef894 100644 +--- a/kcharselectdia.cc ++++ b/kcharselectdia.cc +@@ -27,6 +27,7 @@ + #include <QMenu> + + #include <KActionCollection> ++#include <kbookmarks_version.h> + #include <KBookmarkManager> + #include <KBookmarkMenu> + #include <KConfigGroup> +@@ -185,7 +186,14 @@ KCharSelectDia::KCharSelectDia() + action->setText(i18n("Bookmarks")); + QMenu *bmmenu = new QMenu(this); + action->setMenu(bmmenu); ++ ++#if KBOOKMARKS_VERSION < QT_VERSION_CHECK(5, 69, 0) + KBookmarkMenu *bm = new KBookmarkMenu(manager, new KCharSelectBookmarkOwner(this), bmmenu, actionCollection()); ++#else ++ KBookmarkMenu *bm = new KBookmarkMenu(manager, new KCharSelectBookmarkOwner(this), bmmenu); ++ actionCollection()->addActions(bmmenu->actions()); ++#endif ++ + bm->setParent(this); + + setupGUI(ToolBar|Keys|Save|Create); +-- +cgit v1.1 + |