Snippets: Make it easier for plugins to add snippets groups

Groups are no longer enum values but identified from snippet providers.
This commit is contained in:
Leandro Melo
2010-12-02 17:02:23 +01:00
parent fdbb34adb8
commit 1175705bfc
32 changed files with 411 additions and 272 deletions

View File

@@ -57,8 +57,7 @@ void SnippetsSettings::fromSettings(const QString &category, QSettings *s)
{
const QString &group = category + kGroupPostfix;
s->beginGroup(group);
m_lastUsedSnippetGroup =
s->value(kLastUsedSnippetGroup, fromSnippetGroup(Snippet::Cpp)).toString();
m_lastUsedSnippetGroup = s->value(kLastUsedSnippetGroup, QString()).toString();
s->endGroup();
}