| 110 | } |
| 111 | |
| 112 | void TitleBar::addRightClusterWidget(QWidget* widget) { |
| 113 | if (widget == nullptr) { |
| 114 | return; |
| 115 | } |
| 116 | // Appends to the bell's group so the added widgets share its tight |
| 117 | // intra-group spacing; the spacer + outer layout spacing keep the |
| 118 | // group visually separate from the window controls. |
| 119 | ui_->rightClusterLayout->addWidget(widget); |
| 120 | } |
| 121 | |
| 122 | void TitleBar::setCenterWidget(QWidget* widget) { |
| 123 | if (widget == center_widget_) { |