mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
17 lines
424 B
C++
17 lines
424 B
C++
#include "textbufferfactory.h"
|
|
|
|
#include "textbuffer.h"
|
|
|
|
using namespace vnotex;
|
|
|
|
Buffer *TextBufferFactory::createBuffer(const BufferParameters &p_parameters,
|
|
QObject *p_parent)
|
|
{
|
|
return new TextBuffer(p_parameters, p_parent);
|
|
}
|
|
|
|
bool TextBufferFactory::isBufferCreatedByFactory(const Buffer *p_buffer) const
|
|
{
|
|
return dynamic_cast<const TextBuffer *>(p_buffer) != nullptr;
|
|
}
|