diff options
author | dos-reis <gdr@axiomatics.org> | 2013-04-08 01:16:30 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-04-08 01:16:30 +0000 |
commit | a81374ddea280fa56d1bcbb287f41d1ea248c5f7 (patch) | |
tree | e08e84c1848a88a0bb2919be6dfb6d13ad0be933 | |
parent | 8e96ce961790badae55c859eaa1aca9b8b140a54 (diff) | |
download | open-axiom-a81374ddea280fa56d1bcbb287f41d1ea248c5f7.tar.gz |
-rw-r--r-- | src/gui/debate.cc | 4 | ||||
-rw-r--r-- | src/gui/debate.h | 2 |
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*); |