##// END OF EJS Templates
Settings binding (4)...
Settings binding (4) Loads settings when opening the dialog, and save settings when closing it (if it's by the OK button)

File last commit:

r462:a5a31ade100c
r469:7a2eb58d2083
Show More
ISqpSettingsBindable.h
21 lines | 490 B | text/x-c | CLexer
#ifndef SCIQLOP_ISQPSETTINGSBINDABLE_H
#define SCIQLOP_ISQPSETTINGSBINDABLE_H
#include <QSettings>
/**
* @brief The ISqpSettingsBindable interface represents an object that can bind a variable
*/
class ISqpSettingsBindable {
public:
virtual ~ISqpSettingsBindable() = default;
/// Loads settings into the object
virtual void loadSettings() = 0;
/// Saves settings from the object
virtual void saveSettings() const = 0;
};
#endif // SCIQLOP_ISQPSETTINGSBINDABLE_H