geopro/src/app/panels/chart/IDetailView.hpp

18 lines
477 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <QVariant>
class QWidget;
namespace geopro::app {
// 详情页签视图统一接口:壳/工厂只依赖它,渲染细节由具体视图自行解包载荷。
// widget() 返回承载的 QWidget多为 thissetPayload 解包 QVariant 载荷并渲染。
class IDetailView {
public:
virtual ~IDetailView() = default;
virtual QWidget* widget() = 0;
virtual void setPayload(const QVariant& payload) = 0;
};
} // namespace geopro::app