#ifndef DEBUGDIALOG_H #define DEBUGDIALOG_H #include class QTextEdit; class DebugDialog : public QDialog { Q_OBJECT public: DebugDialog(QWidget* parent = 0); public slots: void update_log(); protected: void showEvent(QShowEvent* event); private: QTextEdit* textEdit; }; extern DebugDialog* debug_dialog; #endif // DEBUGDIALOG_H