| 164 | } |
| 165 | |
| 166 | void ChatWidget::initStackWidget() |
| 167 | { |
| 168 | askPage = new AskPageWidget(this); |
| 169 | |
| 170 | DWidget *creatingSessionWidget = new DWidget(this); |
| 171 | QHBoxLayout *layout = new QHBoxLayout; |
| 172 | creatingSessionWidget->setLayout(layout); |
| 173 | |
| 174 | DLabel *creatingLabel = new DLabel(creatingSessionWidget); |
| 175 | creatingLabel->setAlignment(Qt::AlignCenter); |
| 176 | creatingLabel->setText(tr("Creating a new session...")); |
| 177 | layout->addWidget(creatingLabel); |
| 178 | |
| 179 | stackWidget->insertWidget(0, creatingSessionWidget); |
| 180 | stackWidget->insertWidget(1, askPage); |
| 181 | stackWidget->setCurrentIndex(0); |
| 182 | } |
| 183 | |
| 184 | void ChatWidget::initAskWidgetConnection() |
| 185 | { |
nothing calls this directly
no test coverage detected