39 lines
635 B
C++
Executable File
39 lines
635 B
C++
Executable File
#pragma once
|
|
|
|
#include "topic_editor_utils.h"
|
|
|
|
#include <TopicEditorBase/topiceditorbase_export.h>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
namespace TopicEditorBase
|
|
{
|
|
|
|
class TOPICEDITORBASE_EXPORT TopicPreviewer : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TopicPreviewer(QWidget *parent = nullptr);
|
|
~TopicPreviewer();
|
|
|
|
void setTopicData(const TopicData &data);
|
|
TopicData topicData() const { return m_topicData; }
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
void paintEvent(QPaintEvent *event) override;
|
|
|
|
signals:
|
|
void startDragMe();
|
|
void stopDragMe();
|
|
void deleteMe();
|
|
|
|
private:
|
|
TopicData m_topicData;
|
|
|
|
};
|
|
|
|
}
|