pqResetDefaultSettingsReaction.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqResetDefaultSettingsReaction_h
5 #define pqResetDefaultSettingsReaction_h
6 
7 #include "pqReaction.h"
8 
9 #include <QStringList>
10 
21 {
22  Q_OBJECT
23  typedef pqReaction Superclass;
24 
25 public:
26  pqResetDefaultSettingsReaction(QAction* parent);
28 
33  virtual void resetSettingsToDefault();
34 
35 protected:
39  void onTriggered() override { this->resetSettingsToDefault(); }
40 
41  virtual void clearSettings();
42  virtual QStringList backupSettings();
43 
44 private:
45  Q_DISABLE_COPY(pqResetDefaultSettingsReaction)
46 };
47 
48 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
void onTriggered() override
Called when the action is triggered.
reaction to restore user settings to default.