File indexing completed on 2024-12-08 04:34:20

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "directorynotauthorizedwidget.h"
0008 #include <KLocalizedString>
0009 #include <QHBoxLayout>
0010 #include <QLabel>
0011 
0012 DirectoryNotAuthorizedWidget::DirectoryNotAuthorizedWidget(QWidget *parent)
0013     : QWidget{parent}
0014 {
0015     auto mainLayout = new QHBoxLayout(this);
0016     mainLayout->setContentsMargins({});
0017     mainLayout->setObjectName(QStringLiteral("mainLayout"));
0018 
0019     auto label = new QLabel(QStringLiteral("<qt><b>") + i18n("You are not authorized to view this page.") + QStringLiteral("</b></qt>"), this);
0020     label->setObjectName(QStringLiteral("label"));
0021     label->setTextFormat(Qt::RichText);
0022     mainLayout->addWidget(label, 0, Qt::AlignCenter);
0023 }
0024 
0025 DirectoryNotAuthorizedWidget::~DirectoryNotAuthorizedWidget() = default;
0026 
0027 #include "moc_directorynotauthorizedwidget.cpp"