2 Copyright (c) 2015-2016 Montel Laurent <montel@kde.org>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #include "sieveeditoremptytabwidgetlabel.h"
22 #include <KLocalizedString>
24 SieveEditorEmptyTabWidgetLabel::SieveEditorEmptyTabWidgetLabel(QWidget
*parent
)
30 SieveEditorEmptyTabWidgetLabel::~SieveEditorEmptyTabWidgetLabel()
35 void SieveEditorEmptyTabWidgetLabel::init()
38 const QString placeholderText
= QStringLiteral("<html><body style=\"color:#909090; font-size:14px\">"
39 "<div align='center'>"
40 "<div style=\"font-size:20px\">%1</div>"
43 "<div style=\"font-size:20px\">%3</div>"
46 "<div style=\"font-size:20px\">%5</div>"
50 "</body></html>").arg(i18n("Debug a script:"), i18nc("These action in from menu tools submenu debug sieve script", "Tools > Debug Sieve Script"),
51 i18n("Autogenerate script:"), i18nc("Action is from menu tools, submenu autogenerate script", "Tools > Autogenerate script"),
52 i18n("Import script:"), i18nc("Action is from file menu, import submenu", "File > Import"));
53 setText(placeholderText
);