Port from deprecated KWorkspace

This commit is contained in:
David Edmundson 2023-11-05 21:34:03 +00:00
parent 9816ef37c1
commit ed37efdca3

View file

@ -6,7 +6,7 @@
#include "powermenuutil.h" #include "powermenuutil.h"
#include <kworkspace.h> #include <sessionmanagement.h>
PowerMenuUtil::PowerMenuUtil(QObject *parent) PowerMenuUtil::PowerMenuUtil(QObject *parent)
: QObject{parent} : QObject{parent}
@ -15,5 +15,6 @@ PowerMenuUtil::PowerMenuUtil(QObject *parent)
void PowerMenuUtil::openShutdownScreen() void PowerMenuUtil::openShutdownScreen()
{ {
KWorkSpace::requestShutDown(KWorkSpace::ShutdownConfirmYes); SessionManagement sessionManagement;
sessionManagement.requestShutdown();
} }