mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
34 lines
846 B
C++
34 lines
846 B
C++
#include "dummyversioncontrollerfactory.h"
|
|
|
|
using namespace vnotex;
|
|
|
|
#include <QObject>
|
|
|
|
#include "dummyversioncontroller.h"
|
|
|
|
DummyVersionControllerFactory::DummyVersionControllerFactory()
|
|
{
|
|
}
|
|
|
|
QString DummyVersionControllerFactory::getName() const
|
|
{
|
|
return QStringLiteral("dummy.vnotex");
|
|
}
|
|
|
|
QString DummyVersionControllerFactory::getDisplayName() const
|
|
{
|
|
return QObject::tr("No Version Control");
|
|
}
|
|
|
|
QString DummyVersionControllerFactory::getDescription() const
|
|
{
|
|
return QObject::tr("Disable version control");
|
|
}
|
|
|
|
QSharedPointer<IVersionController> DummyVersionControllerFactory::createVersionController()
|
|
{
|
|
return QSharedPointer<DummyVersionController>::create(getName(),
|
|
getDisplayName(),
|
|
getDescription());
|
|
}
|