aboutsummaryrefslogtreecommitdiff
path: root/src/gui/debate.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/debate.C')
-rw-r--r--src/gui/debate.C6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/debate.C b/src/gui/debate.C
index bb70120c..f89413d9 100644
--- a/src/gui/debate.C
+++ b/src/gui/debate.C
@@ -31,18 +31,16 @@
#include <QScrollBar>
#include "debate.h"
+#include <iostream>
namespace OpenAxiom {
Debate::Debate(QWidget* parent)
: QScrollArea(parent), conv(*this) {
- setViewportMargins(0, 0, 0, 0);
setWidget(&conv);
+ setViewportMargins(0, 0, 0, 0);
viewport()->setAutoFillBackground(true);
viewport()->setBackgroundRole(conv.backgroundRole());
- QSize sz = conv.sizeHint();
- horizontalScrollBar()->setRange(0, sz.width());
- verticalScrollBar()->setRange(0, sz.height());
}
Debate::~Debate() { }