diff options
Diffstat (limited to 'src/gui/debate.C')
-rw-r--r-- | src/gui/debate.C | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/debate.C b/src/gui/debate.C index 9df68484..8e0bb25e 100644 --- a/src/gui/debate.C +++ b/src/gui/debate.C @@ -41,9 +41,16 @@ namespace OpenAxiom { setViewportMargins(0, 0, 0, 0); viewport()->setAutoFillBackground(true); viewport()->setBackgroundRole(conv.backgroundRole()); - // setWidgetResizable(true); + //resize(conv.size()); + adjustSize(); + setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); } Debate::~Debate() { } + void Debate::resizeEvent(QResizeEvent* e) { + QScrollArea::resizeEvent(e); + conv.resize(viewport()->size()); + } + } |