mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
17 lines
452 B
C++
17 lines
452 B
C++
#include "markdownbufferfactory.h"
|
|
|
|
#include "markdownbuffer.h"
|
|
|
|
using namespace vnotex;
|
|
|
|
Buffer *MarkdownBufferFactory::createBuffer(const BufferParameters &p_parameters,
|
|
QObject *p_parent)
|
|
{
|
|
return new MarkdownBuffer(p_parameters, p_parent);
|
|
}
|
|
|
|
bool MarkdownBufferFactory::isBufferCreatedByFactory(const Buffer *p_buffer) const
|
|
{
|
|
return dynamic_cast<const MarkdownBuffer *>(p_buffer) != nullptr;
|
|
}
|