forked from qt-creator/qt-creator
Core: IVersionControl: Introduce a setTopicCache
More flexible than passing in the constructor. Change-Id: I7bb5b3fe02682e01ebbce246de547686ff871920 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -138,13 +138,17 @@ IVersionControl::RepoUrl IVersionControl::getRepoUrl(const QString &location) co
|
||||
return RepoUrl(location);
|
||||
}
|
||||
|
||||
void IVersionControl::setTopicCache(TopicCache *topicCache)
|
||||
{
|
||||
m_topicCache = topicCache;
|
||||
}
|
||||
|
||||
QString IVersionControl::vcsTopic(const QString &topLevel)
|
||||
{
|
||||
return m_topicCache ? m_topicCache->topic(topLevel) : QString();
|
||||
}
|
||||
|
||||
IVersionControl::IVersionControl(IVersionControl::TopicCache *topicCache)
|
||||
: m_topicCache(topicCache)
|
||||
IVersionControl::IVersionControl()
|
||||
{
|
||||
Core::VcsManager::addVersionControl(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user