mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 02:49:12 -04:00
21 lines
592 B
C++
21 lines
592 B
C++
// Copyright (C) 2024-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include "ChatEditorFactory.hpp"
|
|
|
|
#include "ChatEditor.hpp"
|
|
#include "QodeAssistConstants.hpp"
|
|
#include "QodeAssisttr.h"
|
|
|
|
namespace QodeAssist::Chat {
|
|
|
|
ChatEditorFactory::ChatEditorFactory(QQmlEngine *engine, SessionFileRegistry *sessionFileRegistry)
|
|
{
|
|
setId(Constants::QODE_ASSIST_CHAT_EDITOR_ID);
|
|
setDisplayName(Tr::tr("QodeAssist Chat"));
|
|
setEditorCreator(
|
|
[engine, sessionFileRegistry] { return new ChatEditor(engine, sessionFileRegistry); });
|
|
}
|
|
|
|
} // namespace QodeAssist::Chat
|