Warning, file /plasma/plasma-mobile/quicksettings/powermenu/powermenuutil.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2022 by Devin Lin <devin@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "powermenuutil.h" 0008 0009 #include <kworkspace.h> 0010 0011 PowerMenuUtil::PowerMenuUtil(QObject *parent) 0012 : QObject{parent} 0013 { 0014 } 0015 0016 void PowerMenuUtil::openShutdownScreen() 0017 { 0018 KWorkSpace::requestShutDown(KWorkSpace::ShutdownConfirmYes); 0019 }