NorMIT-nav  22.09
An IGT application
cxExampleWidget.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #include "cxExampleWidget.h"
13 #include <QLabel>
14 #include <QVBoxLayout>
15 
16 namespace cx
17 {
18 
19 ExampleWidget::ExampleWidget(QWidget* parent) :
20  QWidget(parent),
21  mVerticalLayout(new QVBoxLayout(this))
22 {
23  this->setObjectName("ExampleWidget");
24  this->setWindowTitle("Example");
25  this->setWhatsThis(this->defaultWhatsThis());
26 
27  mVerticalLayout->addWidget(new QLabel("Hello Plugin!"));
28 }
29 
31 {
32 }
33 
34 QString ExampleWidget::defaultWhatsThis() const
35 {
36  return "<html>"
37  "<h3>Example plugin.</h3>"
38  "<p>Used for developers as a starting points for developing a new plugin</p>"
39  "</html>";
40 }
41 
42 
43 
44 } /* namespace cx */
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::ExampleWidget::ExampleWidget
ExampleWidget(QWidget *parent=0)
Definition: cxExampleWidget.cpp:19
cx::ExampleWidget::~ExampleWidget
virtual ~ExampleWidget()
Definition: cxExampleWidget.cpp:30
cxExampleWidget.h