comparison Applications/Qt/QStoneMainWindow.cpp @ 385:6cc3ce74dc05

using message broker in widgets
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 07 Nov 2018 20:49:41 +0100
parents 87376a645ee1
children b70e9be013e4
comparison
equal deleted inserted replaced
384:d20d75f20c5d 385:6cc3ce74dc05
21 #include "QStoneMainWindow.h" 21 #include "QStoneMainWindow.h"
22 22
23 namespace OrthancStone 23 namespace OrthancStone
24 { 24 {
25 25
26 QStoneMainWindow::QStoneMainWindow(NativeStoneApplicationContext& context, QWidget *parent) : 26 QStoneMainWindow::QStoneMainWindow(NativeStoneApplicationContext& context,
27 QWidget *parent) :
27 QMainWindow(parent), 28 QMainWindow(parent),
28 context_(context) 29 context_(context),
30 cairoCentralWidget_(NULL)
29 { 31 {
30 } 32 }
31 33
32 void QStoneMainWindow::SetCentralStoneWidget(QCairoWidget *centralWidget) 34 void QStoneMainWindow::SetCentralStoneWidget(QCairoWidget& centralWidget)
33 { 35 {
34 cairoCentralWidget_ = centralWidget; 36 cairoCentralWidget_ = &centralWidget;
35 cairoCentralWidget_->SetContext(context_); 37 cairoCentralWidget_->SetContext(context_);
36 } 38 }
37 39
38 QStoneMainWindow::~QStoneMainWindow() 40 QStoneMainWindow::~QStoneMainWindow()
39 { 41 {