Mercurial > hg > orthanc-stone
comparison Framework/Widgets/WidgetBase.cpp @ 273:f21ba2468570 am-2
force all Widgets to have a name to ease debugging
author | am@osimis.io |
---|---|
date | Fri, 24 Aug 2018 11:26:59 +0200 |
parents | 5412adf19980 |
children | 8a86695fcbc3 |
comparison
equal
deleted
inserted
replaced
272:d7d91d96b9d8 | 273:f21ba2468570 |
---|---|
99 statusBar_->SetMessage(message); | 99 statusBar_->SetMessage(message); |
100 } | 100 } |
101 } | 101 } |
102 | 102 |
103 | 103 |
104 WidgetBase::WidgetBase() : | 104 WidgetBase::WidgetBase(const std::string& name) : |
105 parent_(NULL), | 105 parent_(NULL), |
106 viewport_(NULL), | 106 viewport_(NULL), |
107 statusBar_(NULL), | 107 statusBar_(NULL), |
108 backgroundCleared_(false), | 108 backgroundCleared_(false), |
109 transmitMouseOver_(false) | 109 transmitMouseOver_(false), |
110 name_(name) | |
110 { | 111 { |
111 backgroundColor_[0] = 0; | 112 backgroundColor_[0] = 0; |
112 backgroundColor_[1] = 0; | 113 backgroundColor_[1] = 0; |
113 backgroundColor_[2] = 0; | 114 backgroundColor_[2] = 0; |
114 } | 115 } |