Commit 54946317 authored by Laurent Montel's avatar Laurent Montel 😁

Add missing i18n

parent d1d787b6
......@@ -17,6 +17,7 @@
Boston, MA 02110-1301, USA.
*/
#include "multilineedit.h"
#include <KLocalizedString>
#include <QStyleOptionFrame>
#include <QApplication>
......@@ -25,6 +26,7 @@ using namespace KSieveUi;
MultiLineEdit::MultiLineEdit(QWidget *parent)
: KPIMTextEdit::PlainTextEditor(parent)
{
setPlaceholderText(i18n("Enter message..."));
setSearchSupport(false);
setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed));
connect(this, &MultiLineEdit::textChanged, this, &MultiLineEdit::valueChanged);
......
......@@ -144,10 +144,12 @@ SelectFlagsWidget::SelectFlagsWidget(QWidget *parent)
lay->setMargin(0);
mEdit = new QLineEdit(this);
mEdit->setReadOnly(true);
mEdit->setPlaceholderText(i18n("Click on button for selecting flags"));
connect(mEdit, &QLineEdit::textChanged, this, &SelectFlagsWidget::valueChanged);
lay->addWidget(mEdit);
QToolButton *selectFlags = new QToolButton(this);
selectFlags->setText(i18n("..."));
selectFlags->setToolTip(i18n("Select Flags"));
connect(selectFlags, &QPushButton::clicked, this, &SelectFlagsWidget::slotSelectFlags);
lay->addWidget(selectFlags);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment