File indexing completed on 2025-01-05 03:58:37

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-12-05
0007  * Description : Placeholder widget for when backends are activated
0008  *
0009  * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText:      2010 by Michael G. Hansen <mike at mghansen dot de>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #include "placeholderwidget.h"
0017 
0018 // Qt includes
0019 
0020 #include <QLabel>
0021 #include <QVBoxLayout>
0022 
0023 // KDE includes
0024 
0025 #include <klocalizedstring.h>
0026 
0027 namespace Digikam
0028 {
0029 
0030 class Q_DECL_HIDDEN PlaceholderWidget::Private
0031 {
0032 public:
0033 
0034     explicit Private()
0035       : messageLabel(nullptr)
0036     {
0037     }
0038 
0039     QLabel* messageLabel;
0040 };
0041 
0042 PlaceholderWidget::PlaceholderWidget(QWidget* const parent)
0043     : QFrame(parent),
0044       d     (new Private)
0045 {
0046     QVBoxLayout* const vboxlayout = new QVBoxLayout();
0047     setLayout(vboxlayout);
0048 
0049     d->messageLabel               = new QLabel(i18n("Geolocation Interface"), this);
0050 }
0051 
0052 PlaceholderWidget::~PlaceholderWidget()
0053 {
0054 }
0055 
0056 void PlaceholderWidget::setMessage(const QString& message)
0057 {
0058     d->messageLabel->setText(message);
0059 }
0060 
0061 } // namespace Digikam
0062 
0063 #include "moc_placeholderwidget.cpp"