setScene(_scene);
connect(verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(verticalScrollbarChanged(int)));
- connect(QtUi::style(), SIGNAL(changed()), this, SLOT(styleChanged()));
}
bool ChatView::event(QEvent *event) {
vbar->setValue(vbar->maximum());
}
-void ChatView::styleChanged() {
- scene()->layout();
-}
-
MsgId ChatView::lastMsgId() const {
if(!scene())
return MsgId();