aboutsummaryrefslogtreecommitdiff
path: root/src/gui/debate.cc
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-04-08 01:02:39 +0000
committerdos-reis <gdr@axiomatics.org>2013-04-08 01:02:39 +0000
commit8e96ce961790badae55c859eaa1aca9b8b140a54 (patch)
tree65a890f0b87b116c0fccf2667973cba5b4b704ae /src/gui/debate.cc
parented865861aaecdba0375daa3a6a509ac55a57fe2e (diff)
downloadopen-axiom-8e96ce961790badae55c859eaa1aca9b8b140a54.tar.gz
Remove QTabWidget intermediary
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)