Messagelib
9 #include "utils/optionseteditor.h"
10 #include "core/optionset.h"
12 #include <QGridLayout>
15 #include <KLocalizedString>
19 using namespace MessageList::Utils;
22 OptionSetEditor::OptionSetEditor(
QWidget *parent)
27 addTab(tab,
i18nc(
"@title:tab General options of a view mode",
"General"));
31 auto l =
new QLabel(
i18nc(
"@label:textbox Name of the option",
"Name:"), tab);
32 tabg->addWidget(l, 0, 0);
36 tabg->addWidget(mNameEdit, 0, 1);
40 l =
new QLabel(
i18nc(
"@label:textbox Description of the option",
"Description:"), tab);
41 tabg->addWidget(l, 1, 0);
44 mDescriptionEdit->setAcceptRichText(
false);
45 tabg->addWidget(mDescriptionEdit, 1, 1, 2, 1);
47 tabg->setColumnStretch(1, 1);
48 tabg->setRowStretch(2, 1);
51 OptionSetEditor::~OptionSetEditor() =
default;
53 void OptionSetEditor::setReadOnly(
bool readOnly)
55 mDescriptionEdit->setReadOnly(readOnly);
56 mNameEdit->setReadOnly(readOnly);
61 return mDescriptionEdit;
69 #include "moc_optionseteditor.cpp"
void textEdited(const QString &text)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:02:56 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.