#ifndef INDICATOR_H #define INDICATOR_H #include #include #include namespace Ui { class Indicator; } class Indicator : public QDialog { Q_OBJECT public: explicit Indicator(std::function canle, QWidget *parent = nullptr); ~Indicator(); void on_btncanle_click(); void settext(std::string str); private: Ui::Indicator *ui; std::function btncanle; protected: virtual void closeEvent(QCloseEvent* event); }; #endif // INDICATOR_H