| 156 | } |
| 157 | |
| 158 | void 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 | |
| 186 | void DSDialog::update_font() |
| 187 | { |
nothing calls this directly
no test coverage detected