Commit 4295aba5 authored by David Faure's avatar David Faure

Port away from deprecated KWindowSystem API (with ifdefs)

parent 44ffe6ca
......@@ -50,6 +50,7 @@
#include <KTextEdit>
#include <KSharedConfig>
#include <KStartupInfo>
#include <kwindowsystem_version.h>
using namespace Konversation;
......@@ -1392,7 +1393,12 @@ void Application::handleActivate(const QStringList& arguments)
newInstance(m_commandLineParser);
#if KWINDOWSYSTEM_VERSION <= QT_VERSION_CHECK(5, 62, 0)
KStartupInfo::setNewStartupId(mainWindow, KStartupInfo::startupId());
#else
mainWindow->setAttribute(Qt::WA_NativeWindow, true);
KStartupInfo::setNewStartupId(mainWindow->windowHandle(), KStartupInfo::startupId());
#endif
mainWindow->show();
mainWindow->raise();
}
......
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