DiagramDesigner/include/runtimeDialog.h

26 lines
532 B
C
Raw Permalink Normal View History

2026-04-08 14:17:47 +08:00
#ifndef RUNTIMEDIALOG_H
#define RUNTIMEDIALOG_H
#include <QDialog>
#include <QVBoxLayout>
// 运行时对话框
class RuntimeDialog : public QDialog {
Q_OBJECT
public:
RuntimeDialog(QWidget* parent = nullptr);
void setContent(QWidget* content);
2026-04-24 17:14:45 +08:00
void removeContent(QWidget* content);
QWidget* content() {return _pContent;}
2026-04-08 14:17:47 +08:00
signals:
void exitRuntime();
protected:
void keyPressEvent(QKeyEvent* event) override;
private:
QVBoxLayout* _layout;
2026-04-24 17:14:45 +08:00
QWidget* _pContent;
2026-04-08 14:17:47 +08:00
};
#endif //RUNTIMEDIALOG_H