mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 03:49:10 +00:00
Enable the force metal setting.
This commit is contained in:
30
gpt4all-chat/mysettings.h
Normal file
30
gpt4all-chat/mysettings.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef MYSETTINGS_H
|
||||
#define MYSETTINGS_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QMutex>
|
||||
|
||||
class MySettings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool forceMetal READ forceMetal WRITE setForceMetal NOTIFY forceMetalChanged)
|
||||
|
||||
public:
|
||||
static MySettings *globalInstance();
|
||||
|
||||
bool forceMetal() const;
|
||||
void setForceMetal(bool enabled);
|
||||
|
||||
Q_SIGNALS:
|
||||
void forceMetalChanged(bool);
|
||||
|
||||
private:
|
||||
bool m_forceMetal;
|
||||
|
||||
private:
|
||||
explicit MySettings();
|
||||
~MySettings() {}
|
||||
friend class MyPrivateSettings;
|
||||
};
|
||||
|
||||
#endif // MYSETTINGS_H
|
Reference in New Issue
Block a user