28 #include <QVBoxLayout>
40 _textChangeLock(new QMutex())
42 setAcceptRichText(
false);
43 connect(
this, SIGNAL(textChanged()), SLOT(
save()));
47 WorkflowComments::~WorkflowComments() {
53 QString comment = toPlainText();
54 comment.replace(QRegExp(
"\n"),
"<br>");
57 _model -> setValue(
"editorcomment", comment);
67 QString comment =
_model -> getValue(
"editorcomment");
70 comment.replace(QRegExp(
"<br\\s*/?>", Qt::CaseInsensitive),
"\n");
73 if ( toPlainText() != comment ) {
74 setPlainText( comment );
89 disconnect(
_model, 0,
this, 0);
102 connect(
_model, SIGNAL(modelReset()), SLOT(
load()));
Declaration of class ParameterFileModel.
Declaration of class QParameterFile.
This model serves to provide a model frontend to access a ParameterFile instance. ...
Declaration of class ObjectInspector.