File indexing completed on 2024-05-12 05:25:40

0001 /*
0002    SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QLabel>
0010 #include <QList>
0011 
0012 class SieveEditorEmptyTabWidgetLabel : public QLabel
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit SieveEditorEmptyTabWidgetLabel(QWidget *parent = nullptr);
0017     ~SieveEditorEmptyTabWidgetLabel() override;
0018 
0019 private:
0020     struct placeHolderTextInfo {
0021         placeHolderTextInfo() = default;
0022 
0023         placeHolderTextInfo(const QString &t, const QString &info)
0024             : text(t)
0025             , menuInfo(info)
0026         {
0027         }
0028 
0029         QString text;
0030         QString menuInfo;
0031     };
0032 
0033     void addInfo(QString &placeholderText, const QList<placeHolderTextInfo> &map);
0034     void init();
0035 };