aboutsummaryrefslogtreecommitdiff
path: root/src/gui/debate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/debate.h')
-rw-r--r--src/gui/debate.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/debate.h b/src/gui/debate.h
index 35463fcc..fd69bfbf 100644
--- a/src/gui/debate.h
+++ b/src/gui/debate.h
@@ -38,16 +38,20 @@
#include <QResizeEvent>
#include "open-axiom.h"
#include "conversation.h"
+#include "main-window.h"
namespace OpenAxiom {
class Debate : public QScrollArea {
Q_OBJECT;
public:
- explicit Debate(QWidget*, Command&);
+ explicit Debate(QTabWidget*, Command&);
~Debate();
Conversation* exchanges() { return &conv; }
+ MainWindow* main_window() const {
+ return qobject_cast<MainWindow*>(parent()->parent());
+ }
protected:
void resizeEvent(QResizeEvent*);