Debugger: Save a few bytes in DebuggerSettings

Doesn't have to be a QObject.

Change-Id: I9a78d5c8103b74e34c202ad652016cec956298b0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-12-10 08:48:30 +01:00
parent 53a4c6eda0
commit 375c3209e7
2 changed files with 80 additions and 77 deletions

View File

@@ -25,7 +25,7 @@
#pragma once
#include <QObject>
#include <QCoreApplication>
#include <QHash>
#include <QMap>
#include <QRegExp>
@@ -50,13 +50,13 @@ public:
SourcePathRegExpMap sourcePathRegExpMap;
};
class DebuggerSettings : public QObject
class DebuggerSettings
{
Q_OBJECT // For tr().
Q_DECLARE_TR_FUNCTIONS(Debugger::Internal::DebuggerSettings)
public:
explicit DebuggerSettings();
~DebuggerSettings() override;
~DebuggerSettings();
void insertItem(int code, Utils::SavedAction *item);
Utils::SavedAction *item(int code) const;
@@ -67,6 +67,9 @@ public:
void writeSettings() const;
private:
DebuggerSettings(const DebuggerSettings &) = delete;
DebuggerSettings &operator=(const DebuggerSettings &) = delete;
QHash<int, Utils::SavedAction *> m_items;
};