forked from qt-creator/qt-creator
Utils: Rework aspect implementation
This avoids some repetition and could be a step towards having type storage in (or rather accessible from) the base, so we can have aspects for more complex data (treemodels...) that are not easily converted to QVariant. Change-Id: I9797b3d5646195705212db1830d2b415291ac651 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1089,16 +1089,16 @@ void FakeVimPluginPrivate::initialize()
|
||||
this, &FakeVimPluginPrivate::documentRenamed);
|
||||
|
||||
FakeVimSettings &s = settings();
|
||||
connect(&s.useFakeVim, &FvBoolAspect::valueChanged,
|
||||
this, &FakeVimPluginPrivate::setUseFakeVim);
|
||||
connect(&s.useFakeVim, &FvBoolAspect::changed,
|
||||
this, [this, &s] { setUseFakeVim(s.useFakeVim()); });
|
||||
connect(&s.readVimRc, &FvBaseAspect::changed,
|
||||
this, &FakeVimPluginPrivate::maybeReadVimRc);
|
||||
connect(&s.vimRcPath, &FvBaseAspect::changed,
|
||||
this, &FakeVimPluginPrivate::maybeReadVimRc);
|
||||
connect(&s.relativeNumber, &FvBoolAspect::valueChanged,
|
||||
this, &FakeVimPluginPrivate::setShowRelativeLineNumbers);
|
||||
connect(&s.blinkingCursor, &FvBoolAspect::valueChanged,
|
||||
this, &FakeVimPluginPrivate::setCursorBlinking);
|
||||
connect(&s.relativeNumber, &FvBoolAspect::changed,
|
||||
this, [this, &s] { setShowRelativeLineNumbers(s.relativeNumber()); });
|
||||
connect(&s.blinkingCursor, &FvBoolAspect::changed,
|
||||
this, [this, &s] { setCursorBlinking(s.blinkingCursor()); });
|
||||
|
||||
// Delayed operations.
|
||||
connect(this, &FakeVimPluginPrivate::delayedQuitRequested,
|
||||
|
||||
Reference in New Issue
Block a user