Commit 39257fed authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some qt6 compile errors

parent 274bf5c7
Pipeline #177074 passed with stage
in 1 minute and 15 seconds
......@@ -7,6 +7,7 @@
#include <QByteArray>
#include <QDataStream>
#include <QIODevice>
using namespace NoteShared;
NoteAlarmAttribute::NoteAlarmAttribute()
......
......@@ -9,6 +9,7 @@
#include <QByteArray>
#include <QDataStream>
#include <QFontDatabase>
#include <QIODevice>
using namespace NoteShared;
......
......@@ -158,6 +158,7 @@ ecm_qt_declare_logging_category(kcm_knotes_PART_SRCS HEADER knotes_kcm_debug.h I
)
add_library(kcm_knote_static STATIC ${kcm_knotes_PART_SRCS} )
set_property(TARGET kcm_knote_static PROPERTY POSITION_INDEPENDENT_CODE ON)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kcm_knote_static PROPERTIES UNITY_BUILD ON)
endif()
......
......@@ -210,7 +210,9 @@ KNotesApp::KNotesApp(QWidget *parent)
connect(qApp, &QGuiApplication::commitDataRequest, this, &KNotesApp::slotCommitData, Qt::DirectConnection);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QGuiApplication::setFallbackSessionManagementEnabled(false);
#endif
updateNoteActions();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
connect(qApp, &QGuiApplication::paletteChanged, this, &KNotesApp::slotGeneralPaletteChanged);
......
......@@ -20,7 +20,6 @@
#include <KAuthorized>
#include <KLocalizedString>
#include <KNS3/QtQuickDialogWrapper>
#include <knewstuffcore_version.h>
#include <QCheckBox>
#include <QLabel>
......
......@@ -20,6 +20,7 @@
#include <KLocalizedString>
#include <KToggleAction>
#include <QActionGroup>
#include <QColorDialog>
#include <QIcon>
#include <QMenu>
......
Supports Markdown
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