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 #ifndef DIGIKAM_PLACE_HOLDER_WIDGET_H 0017 #define DIGIKAM_PLACE_HOLDER_WIDGET_H 0018 0019 // Qt includes 0020 0021 #include <QFrame> 0022 0023 // Local includes 0024 0025 #include "digikam_export.h" 0026 0027 namespace Digikam 0028 { 0029 0030 class DIGIKAM_EXPORT PlaceholderWidget : public QFrame 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit PlaceholderWidget(QWidget* const parent = nullptr); 0037 ~PlaceholderWidget() override; 0038 0039 void setMessage(const QString& message); 0040 0041 private: 0042 0043 Q_DISABLE_COPY(PlaceholderWidget) 0044 0045 class Private; 0046 const QScopedPointer<Private> d; 0047 }; 0048 0049 } // namespace Digikam 0050 0051 #endif // DIGIKAM_PLACE_HOLDER_WIDGET_H