Mantid
Loading...
Searching...
No Matches
SignalBlocker.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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 +
7#pragma once
8
9#include "DllOption.h"
10#include <QObject>
11#include <QtGlobal>
12
13namespace MantidQt {
14namespace API {
15
16#if QT_VERSION >= QT_VERSION_CHECK(5, 3, 0)
17using SignalBlocker = QSignalBlocker;
18#else
19
24
25private:
27 QObject *m_obj;
28
29public:
30 explicit SignalBlocker(QObject *obj);
32 SignalBlocker(const SignalBlocker &) = delete;
33};
34
35#endif
36
37} // namespace API
38} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
double obj
the value of the quadratic function
QSignalBlocker SignalBlocker
Definition: SignalBlocker.h:17
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...