File indexing completed on 2024-04-21 15:02:35
0001 /* 0002 SPDX-FileCopyrightText: 2006 Aaron J. Seigo <aseigo@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include <knotificationrestrictions.h> 0008 0009 #include <QApplication> 0010 #include <QLabel> 0011 0012 int main(int argc, char *argv[]) 0013 { 0014 QApplication app(argc, argv); 0015 0016 QLabel *mainWidget = new QLabel(); 0017 mainWidget->setText(QStringLiteral("You should see on console debug outpout for KNotificationRestrictions")); 0018 0019 KNotificationRestrictions knr(KNotificationRestrictions::ScreenSaver, nullptr); 0020 0021 mainWidget->show(); 0022 return app.exec(); 0023 }