diff --git a/part/part.cpp b/part/part.cpp index 379e4c09e..f32de9fc3 100644 --- a/part/part.cpp +++ b/part/part.cpp @@ -48,7 +48,9 @@ #include "kconfigwidgets_version.h" // TODO KF 5.81 Remove this include, because the relevant section below will also be removed. #include #include +#include #include +#include #include #include #include @@ -72,6 +74,7 @@ #ifdef WITH_KWALLET #include #endif +#include "kconfigwidgets_version.h" #include "kxmlgui_version.h" // TODO KF 5.79 Remove this include, because the relevant section below will also be removed. #include #include @@ -869,6 +872,12 @@ void Part::setupActions() { KActionCollection *ac = actionCollection(); +#if KCONFIGWIDGETS_VERSION >= QT_VERSION_CHECK(5, 89, 0) + auto manager = new KColorSchemeManager(this); + KActionMenu *schemeMenu = manager->createSchemeSelectionMenu(this); + ac->addAction(QStringLiteral("colorscheme_menu"), schemeMenu->menu()->menuAction()); +#endif + m_copy = KStandardAction::create(KStandardAction::Copy, m_pageView, SLOT(copyTextSelection()), ac); m_selectAll = KStandardAction::selectAll(m_pageView, SLOT(selectAll()), ac); diff --git a/part/part.rc b/part/part.rc index cf32895ec..71f80c4a1 100644 --- a/part/part.rc +++ b/part/part.rc @@ -1,6 +1,6 @@ - + &File @@ -88,6 +88,7 @@ &Settings +