mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Port from deprecated KWorkspace
This commit is contained in:
parent
9816ef37c1
commit
ed37efdca3
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue