#ifndef EDITINSTRUCTIONDIALOG_H #define EDITINSTRUCTIONDIALOG_H #include #include #include namespace Ui { class EditInstructionDialog; } class EditInstructionDialog : public QDialog { Q_OBJECT public: explicit EditInstructionDialog(QWidget *parent = 0); ~EditInstructionDialog(); QString getInstruction(); void setInstruction(const QString &instruction); private slots: void on_buttonBox_accepted(); void on_buttonBox_rejected(); private: std::unique_ptr ui; bool eventFilter(QObject *obj, QEvent *event); }; #endif // EDITINSTRUCTIONDIALOG_H