forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user