Mantid
Loading...
Searching...
No Matches
SignalBlocker.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
8#if QT_VERSION < QT_VERSION_CHECK(5, 3, 0)
9
10#include <cassert>
11
12namespace MantidQt {
13namespace API {
14
19SignalBlocker::SignalBlocker(QObject *obj) : m_obj(obj) {
20 assert(m_obj != nullptr);
21 m_obj->blockSignals(true);
22}
23
27SignalBlocker::~SignalBlocker() { m_obj->blockSignals(false); }
28
29} // namespace API
30} // namespace MantidQt
31
32#endif
double obj
the value of the quadratic function
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...