コード例 #1
0
ファイル: chatlog.cpp プロジェクト: BiTOk/qTox
void ChatLog::scrollToLine(ChatLine::Ptr line)
{
    if (!line.get())
        return;

    updateSceneRect();
    verticalScrollBar()->setValue(line->sceneBoundingRect().top());
}
コード例 #2
0
ファイル: chatline.cpp プロジェクト: DaddyDogma/qTox
bool ChatLine::lessThanBSRectBottom(const ChatLine::Ptr& lhs, const qreal& rhs)
{
    return lhs->sceneBoundingRect().bottom() < rhs;
}