Mercurial > hg > orthanc-stone
view Applications/Samples/Qt/MainWindow.cpp @ 277:a38465cc909f am-2
Qt: refresh ok + mouse interaction ok
author | am@osimis.io |
---|---|
date | Mon, 27 Aug 2018 14:41:49 +0200 |
parents | 5de5699ad570 |
children | 829163c6efc1 |
line wrap: on
line source
#include "MainWindow.h" /** * Don't use "ui_MainWindow.h" instead of <ui_MainWindow.h> below, as * this makes CMake unable to detect when the UI file changes. **/ #include <ui_MainWindow.h> MainWindow::MainWindow(OrthancStone::BasicNativeApplicationContext& context, QWidget *parent) : QMainWindow(parent), ui_(new Ui::MainWindow), context_(context) { ui_->setupUi(this); cairoCentralWidget_ = ui_->cairoCentralWidget; cairoCentralWidget_->SetContext(context_); } MainWindow::~MainWindow() { delete ui_; }