aboutsummaryrefslogtreecommitdiff
path: root/src/gui/debate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/debate.cc')
-rw-r--r--src/gui/debate.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/debate.cc b/src/gui/debate.cc
index 022f8454..bd5a593e 100644
--- a/src/gui/debate.cc
+++ b/src/gui/debate.cc
@@ -32,11 +32,12 @@
#include <QApplication>
#include <QScrollBar>
#include "debate.h"
+#include "main-window.h"
namespace OpenAxiom {
- Debate::Debate(MainWindow* win, QTabWidget* tab)
- : QScrollArea(tab), main_win(win), conv(this) {
+ Debate::Debate(MainWindow* win)
+ : super(win), conv(this) {
setWidget(&conv);
setViewportMargins(0, 0, 0, 0);
viewport()->setAutoFillBackground(true);
@@ -48,6 +49,11 @@ namespace OpenAxiom {
Debate::~Debate() { }
+ Server*
+ Debate::server() const {
+ return parent()->server();
+ }
+
void Debate::resizeEvent(QResizeEvent* e) {
QScrollArea::resizeEvent(e);
if (conv.length() != 0)