Fraxinus
18.10
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
cxOptimizedUpdateWidget.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
13
#include "
cxOptimizedUpdateWidget.h
"
14
#include <iostream>
15
16
namespace
cx
17
{
18
19
20
OptimizedUpdateWidget::OptimizedUpdateWidget
(QWidget* parent) :
21
QWidget(parent), mModified(true)
22
{
23
}
24
25
void
OptimizedUpdateWidget::forcePrePaint
()
26
{
27
this->prePaintEventPrivate();
28
}
29
30
void
OptimizedUpdateWidget::paintEvent
(QPaintEvent* event)
31
{
32
this->prePaintEventPrivate();
33
QWidget::paintEvent(event);
34
}
35
36
void
OptimizedUpdateWidget::setModified
()
37
{
38
mModified =
true
;
39
this->update();
40
}
41
42
void
OptimizedUpdateWidget::prePaintEventPrivate()
43
{
44
if
(!mModified)
45
return
;
46
47
this->
prePaintEvent
();
48
49
mModified =
false
;
50
}
51
52
}
// namespace cx
cx::OptimizedUpdateWidget::forcePrePaint
void forcePrePaint()
Definition:
cxOptimizedUpdateWidget.cpp:25
cx::OptimizedUpdateWidget::OptimizedUpdateWidget
OptimizedUpdateWidget(QWidget *parent=NULL)
Definition:
cxOptimizedUpdateWidget.cpp:20
cx::OptimizedUpdateWidget::prePaintEvent
virtual void prePaintEvent()
Definition:
cxOptimizedUpdateWidget.h:60
cx::OptimizedUpdateWidget::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition:
cxOptimizedUpdateWidget.cpp:30
cx::OptimizedUpdateWidget::setModified
virtual void setModified()
Definition:
cxOptimizedUpdateWidget.cpp:36
cxOptimizedUpdateWidget.h
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
CX
source
resource
widgets
cxOptimizedUpdateWidget.cpp
Generated on Fri Oct 19 2018 15:19:05 for Fraxinus by
1.8.11