MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / build_base

Method build_base

DSView/pv/dialogs/dsdialog.cpp:158–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158void DSDialog::build_base(bool hasClose)
159{
160 _main_widget = new QWidget(this);
161 _main_layout = new QVBoxLayout(_main_widget);
162 _main_widget->setLayout(_main_layout);
163
164 _shadow = new Shadow(this);
165 _shadow->setBlurRadius(10.0);
166 _shadow->setDistance(3.0);
167 _shadow->setColor(QColor(0, 0, 0, 80));
168 _main_widget->setAutoFillBackground(true);
169 this->setGraphicsEffect(_shadow);
170
171 _titlebar = new toolbars::TitleBar(false, this, NULL,hasClose);
172 _main_layout->addWidget(_titlebar);
173
174 _titleSpaceLine = new QWidget(this);
175 _titleSpaceLine->setFixedHeight(15);
176 _main_layout->addWidget(_titleSpaceLine);
177
178 _base_layout = new QVBoxLayout(this);
179 _base_layout->addWidget(_main_widget);
180 setLayout(_base_layout);
181
182 _main_layout->setAlignment(Qt::AlignCenter | Qt::AlignTop);
183 _main_layout->setContentsMargins(10,5,10,10);
184}
185
186void DSDialog::update_font()
187{

Callers

nothing calls this directly

Calls 3

setBlurRadiusMethod · 0.80
setDistanceMethod · 0.80
setColorMethod · 0.80

Tested by

no test coverage detected