Commit 2dc78805 authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix build with KDE Frameworks < 5.77

parent 9fe5cca9
Pipeline #142411 passed with stage
in 10 minutes and 10 seconds
......@@ -27,6 +27,7 @@
#include <KActionMenu>
#include <KDualAction>
#include <KSelectAction>
#include <kwidgetsaddons_version.h>
#include <QApplication>
#include <QCheckBox>
#include <QClipboard>
......@@ -185,7 +186,11 @@ KeyframeWidget::KeyframeWidget(std::shared_ptr<AssetParameterModel> model, QMode
// Menu toolbutton
auto *menuAction = new KActionMenu(QIcon::fromTheme(QStringLiteral("kdenlive-menu")), i18n("Options"), this);
#if KWIDGETSADDONS_VERSION < QT_VERSION_CHECK(5, 77, 0)
menuAction->setDelayed(false);
#else
menuAction->setPopupMode(QToolButton::InstantPopup);
#endif
menuAction->addAction(seekKeyframe);
menuAction->addAction(copy);
menuAction->addAction(copyValue);
......
......@@ -56,6 +56,7 @@ SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
#include <KMessageBox>
#include <KRatingPainter>
#include <KXMLGUIFactory>
#include <kwidgetsaddons_version.h>
#include <QActionGroup>
#include <QCryptographicHash>
......@@ -1161,7 +1162,11 @@ Bin::Bin(std::shared_ptr<ProjectItemModel> model, QWidget *parent, bool isMainBi
// Settings menu
auto *settingsAction = new KActionMenu(QIcon::fromTheme(QStringLiteral("kdenlive-menu")), i18n("Options"), this);
#if KWIDGETSADDONS_VERSION < QT_VERSION_CHECK(5, 77, 0)
settingsAction->setDelayed(false);
#else
settingsAction->setPopupMode(QToolButton::InstantPopup);
#endif
settingsAction->addAction(zoomWidget);
settingsAction->addAction(listType);
settingsAction->addAction(sortAction);
......
......@@ -41,6 +41,7 @@ SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
#include <KSelectAction>
#include <KWindowConfig>
#include <kio_version.h>
#include <kwidgetsaddons_version.h>
#include "kdenlive_debug.h"
#include <QDrag>
......@@ -395,7 +396,11 @@ Monitor::Monitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *paren
});
m_configMenuAction = new KActionMenu(QIcon::fromTheme(QStringLiteral("kdenlive-menu")), i18n("More Options…"), m_toolbar);
#if KWIDGETSADDONS_VERSION < QT_VERSION_CHECK(5, 77, 0)
m_configMenuAction->setDelayed(false);
#else
m_configMenuAction->setPopupMode(QToolButton::InstantPopup);
#endif
connect(m_configMenuAction->menu(), &QMenu::aboutToShow, this, &Monitor::updateMarkers);
playButton->setDefaultAction(m_playAction);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment