-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpqEventComment.cxx
More file actions
47 lines (39 loc) · 1.34 KB
/
pqEventComment.cxx
File metadata and controls
47 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
// Qt includes
#include <QDebug>
// QtTesting includes
#include "pqEventComment.h"
// ----------------------------------------------------------------------------
pqEventComment::pqEventComment(pqTestUtility* util, QObject* parent)
: Superclass(parent)
{
this->TestUtility = util;
}
// ----------------------------------------------------------------------------
pqEventComment::~pqEventComment()
{
this->TestUtility = 0;
}
// ----------------------------------------------------------------------------
void pqEventComment::recordComment(const QString& arguments)
{
this->recordComment(QString("comment"), arguments);
}
// ----------------------------------------------------------------------------
void pqEventComment::recordCommentBlock(const QString& arguments)
{
this->recordComment(QString("comment-block"), arguments);
}
// ----------------------------------------------------------------------------
void pqEventComment::recordComment(
const QString& command, const QString& arguments, QObject* object)
{
if (arguments.isEmpty())
{
qCritical() << "The comment is empty ! No comment has been added !";
return;
}
Q_EMIT this->recordComment(object, command, arguments);
}