MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / MacroManager

Method MacroManager

src/MacroManager.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "ApplicationSettings.h"
21
22MacroManager::MacroManager(QObject *parent) :
23 QObject{parent}
24{
25 qInfo(Q_FUNC_INFO);
26
27#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
28 qRegisterMetaTypeStreamOperators<Macro>("Macro");
29#else
30 // HACK: For some reason this is required to make QVariant recognize it as a valid type
31 // see https://stackoverflow.com/q/70974383
32 QMetaType::fromType<Macro>().hasRegisteredDataStreamOperators();
33#endif
34
35 loadSettings();
36}
37
38MacroManager::~MacroManager()
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected