aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/debate.cc4
-rw-r--r--src/gui/debate.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/debate.cc b/src/gui/debate.cc
index bd5a593e..ebc7cb7b 100644
--- a/src/gui/debate.cc
+++ b/src/gui/debate.cc
@@ -37,7 +37,7 @@
namespace OpenAxiom {
Debate::Debate(MainWindow* win)
- : super(win), conv(this) {
+ : QScrollArea(win), conv(this) {
setWidget(&conv);
setViewportMargins(0, 0, 0, 0);
viewport()->setAutoFillBackground(true);
@@ -51,7 +51,7 @@ namespace OpenAxiom {
Server*
Debate::server() const {
- return parent()->server();
+ return qobject_cast<MainWindow*>(parent())->server();
}
void Debate::resizeEvent(QResizeEvent* e) {
diff --git a/src/gui/debate.h b/src/gui/debate.h
index c7fa930e..c485fa37 100644
--- a/src/gui/debate.h
+++ b/src/gui/debate.h
@@ -42,7 +42,7 @@
namespace OpenAxiom {
- class Debate : public managed_by<QScrollArea, MainWindow> {
+ class Debate : public QScrollArea {
Q_OBJECT;
public:
explicit Debate(MainWindow*);