diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-12-08 16:05:48 +0100 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-12-08 17:22:15 +0100 |
commit | fabf76d202984d1bd93d7e4d82d4a90de27743d0 (patch) | |
tree | b6ddb59ba99c742981f064a838624110d9de981d /src/plugins/texteditor/snippets/snippetscollection.cpp | |
parent | e699f5d594ef95e6eec44a0639925793a445ef38 (diff) | |
download | qt-creator-fabf76d202984d1bd93d7e4d82d4a90de27743d0.tar.gz |
Snippets: Remove the snippets manager
Let the collection itself be the singleton.
Diffstat (limited to 'src/plugins/texteditor/snippets/snippetscollection.cpp')
-rw-r--r-- | src/plugins/texteditor/snippets/snippetscollection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/texteditor/snippets/snippetscollection.cpp b/src/plugins/texteditor/snippets/snippetscollection.cpp index 72fa6086ef..fcdb098e11 100644 --- a/src/plugins/texteditor/snippets/snippetscollection.cpp +++ b/src/plugins/texteditor/snippets/snippetscollection.cpp @@ -98,6 +98,12 @@ int SnippetsCollection::Hint::index() const return m_index; } +SnippetsCollection *SnippetsCollection::instance() +{ + static SnippetsCollection collection; + return &collection; +} + // SnippetsCollection SnippetsCollection::SnippetsCollection() : m_userSnippetsPath(Core::ICore::instance()->userResourcePath() + QLatin1String("/snippets/")), |