| 151 | } |
| 152 | |
| 153 | void ChatWidget::initHistoryWidget() |
| 154 | { |
| 155 | historyWidget = new HistoryListWidget(this); |
| 156 | historyWidget->setGeometry(-this->width(), 0, this->width(), this->height()); |
| 157 | historyWidget->show(); |
| 158 | |
| 159 | historyWidgetAnimation = new QPropertyAnimation(historyWidget, "geometry"); |
| 160 | historyWidgetAnimation->setEasingCurve(QEasingCurve::InOutSine); |
| 161 | historyWidgetAnimation->setDuration(300); |
| 162 | |
| 163 | initHistoryWidgetConnection(); |
| 164 | } |
| 165 | |
| 166 | void ChatWidget::initStackWidget() |
| 167 | { |