File: knotificationrestrictionstest.cpp

package info (click to toggle)
knotifications 5.116.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,284 kB
  • sloc: cpp: 6,073; java: 299; xml: 199; sh: 14; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
    SPDX-FileCopyrightText: 2006 Aaron J. Seigo <aseigo@kde.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/

#include <knotificationrestrictions.h>

#include <QApplication>
#include <QLabel>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QLabel *mainWidget = new QLabel();
    mainWidget->setText(QStringLiteral("You should see on console debug outpout for KNotificationRestrictions"));

    KNotificationRestrictions knr(KNotificationRestrictions::ScreenSaver, nullptr);

    mainWidget->show();
    return app.exec();
}