forked from qt-creator/qt-creator
VcsPlugin: shift signalling of settings changes
To allow removing the QObject ineritance of IOptionPage Change-Id: Id230ee9230dd1bee094b19b5a22d61d37e650d27 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -12,6 +12,8 @@ namespace Internal {
|
||||
|
||||
class CommonVcsSettings : public Utils::AspectContainer
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CommonVcsSettings();
|
||||
|
||||
@@ -27,20 +29,18 @@ public:
|
||||
|
||||
Utils::BoolAspect lineWrap;
|
||||
Utils::IntegerAspect lineWrapWidth;
|
||||
|
||||
signals:
|
||||
void settingsChanged();
|
||||
};
|
||||
|
||||
class CommonOptionsPage final : public Core::IOptionsPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CommonOptionsPage();
|
||||
CommonOptionsPage();
|
||||
|
||||
CommonVcsSettings &settings() { return m_settings; }
|
||||
|
||||
signals:
|
||||
void settingsChanged();
|
||||
|
||||
private:
|
||||
CommonVcsSettings m_settings;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user