Fix Bug 358855 - message list column widths lost when program closed
[kdepim.git] / sieveeditor / sieveeditoremptytabwidgetlabel.cpp
blobe35b9e7f111f48528990f90f43833b411e95c8eb
1 /*
2 Copyright (c) 2015 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
17 02110-1301, USA.
21 #include "sieveeditoremptytabwidgetlabel.h"
22 #include <KLocalizedString>
24 SieveEditorEmptyTabWidgetLabel::SieveEditorEmptyTabWidgetLabel(QWidget *parent)
25 : QLabel(parent)
27 init();
30 SieveEditorEmptyTabWidgetLabel::~SieveEditorEmptyTabWidgetLabel()
35 void SieveEditorEmptyTabWidgetLabel::init()
37 //TODO improve text
38 const QString placeholderText = i18n("<html><body style=\"color:#909090; font-size:14px\">"
39 "<div align='center'>"
40 "<div style=\"font-size:20px\">Debug a script:</div>"
41 "<div></div>"
42 "<li>Tools > Debug Sieve Script"
43 "<div style=\"font-size:20px\">Autogenerate script:</div>"
44 "<div></div>"
45 "<li>Tools > Autogenerate script"
46 "<div style=\"font-size:20px\">Import script:</div>"
47 "<li>File > Import"
48 "<div></div>"
49 "</div>"
50 "</body></html>");
51 setText(placeholderText);