aboutsummaryrefslogtreecommitdiff
path: root/src/gui/debate.h
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-04-06 21:26:25 +0000
committerdos-reis <gdr@axiomatics.org>2013-04-06 21:26:25 +0000
commitd33fc2c04f3832483ea136bbee11cec3beb0bbd0 (patch)
treee2e00bcda2a6ae4246f1c1173e80849f479d3b01 /src/gui/debate.h
parente4b8b63855846aedf2c6614818163c98a6a7b035 (diff)
downloadopen-axiom-d33fc2c04f3832483ea136bbee11cec3beb0bbd0.tar.gz
gui: tidy up
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*);