mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 10:59:30 -04:00
* refactor: Uses single QML engine for all QML code * fix: Adds missing `QPointer` include * Parents QML engine instance to plugin instance. --------- Co-authored-by: Ivan Lebedev <ilebedev@flightpath3d.com> Co-authored-by: Ivan Lebedev <ilebedev1988@gmail.com>
28 lines
532 B
C++
28 lines
532 B
C++
// Copyright (C) 2024-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <coreplugin/inavigationwidgetfactory.h>
|
|
#include <QObject>
|
|
#include <QPointer>
|
|
|
|
class QQmlEngine;
|
|
|
|
namespace QodeAssist::Chat {
|
|
|
|
class NavigationPanel : public Core::INavigationWidgetFactory
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit NavigationPanel(QQmlEngine* engine);
|
|
~NavigationPanel();
|
|
|
|
Core::NavigationView createWidget() override;
|
|
|
|
private:
|
|
QPointer<QQmlEngine> m_engine;
|
|
};
|
|
|
|
} // namespace QodeAssist::Chat
|