diff options
author | hjk <hjk@qt.io> | 2023-06-28 16:47:54 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-06-30 09:47:40 +0000 |
commit | 2f7ecdaf06ad99d31b6f93180f7752d194e2174e (patch) | |
tree | 55c34f6d16f42d26e0f113ec8b5cf18c58038971 /src/plugins/fakevim/fakevimactions.h | |
parent | 5e86d20faec78759e00e184ef174344a483548b5 (diff) |
FakeVim: Use a FilePathAspect for .vimrc
Even if it's not used as such, it would be the right thing to use.
Change-Id: I7f8931b581af6a97231c49c20e7adc56ad2efff6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/fakevim/fakevimactions.h')
-rw-r--r-- | src/plugins/fakevim/fakevimactions.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/fakevim/fakevimactions.h b/src/plugins/fakevim/fakevimactions.h index a3907dc117..eea53f50c1 100644 --- a/src/plugins/fakevim/fakevimactions.h +++ b/src/plugins/fakevim/fakevimactions.h @@ -4,7 +4,13 @@ #pragma once #ifndef FAKEVIM_STANDALONE -# include <coreplugin/dialogs/ioptionspage.h> + +#include <coreplugin/dialogs/ioptionspage.h> + +#else + +namespace Utils { class FilePath {}; } + #endif #include <QCoreApplication> @@ -69,6 +75,7 @@ public: using FvBoolAspect = FvTypedAspect<bool>; using FvIntegerAspect = FvTypedAspect<qint64>; using FvStringAspect = FvTypedAspect<QString>; +using FvFilePathAspect = FvTypedAspect<Utils::FilePath>; class FvAspectContainer : public FvBaseAspect { @@ -82,6 +89,7 @@ using FvBaseAspect = Utils::BaseAspect; using FvBoolAspect = Utils::BoolAspect; using FvIntegerAspect = Utils::IntegerAspect; using FvStringAspect = Utils::StringAspect; +using FvFilePathAspect = Utils::FilePathAspect; #endif @@ -96,7 +104,7 @@ public: FvBoolAspect useFakeVim; FvBoolAspect readVimRc; - FvStringAspect vimRcPath; + FvFilePathAspect vimRcPath; FvBoolAspect startOfLine; FvIntegerAspect tabStop; |