connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
this, SLOT(rowsInserted(const QModelIndex &, int, int)));
connect(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
this, SLOT(rowsAboutToBeRemoved(const QModelIndex &, int, int)));
connect(model, SIGNAL(dataChanged(QModelIndex, QModelIndex)), SLOT(dataChanged(QModelIndex, QModelIndex)));
connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
this, SLOT(rowsInserted(const QModelIndex &, int, int)));
connect(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
this, SLOT(rowsAboutToBeRemoved(const QModelIndex &, int, int)));
connect(model, SIGNAL(dataChanged(QModelIndex, QModelIndex)), SLOT(dataChanged(QModelIndex, QModelIndex)));
#ifdef HAVE_WEBKIT
webPreview.timer.setSingleShot(true);
connect(&webPreview.timer, SIGNAL(timeout()), this, SLOT(webPreviewNextStep()));
#ifdef HAVE_WEBKIT
webPreview.timer.setSingleShot(true);
connect(&webPreview.timer, SIGNAL(timeout()), this, SLOT(webPreviewNextStep()));
qreal width = _sceneRect.width();
bool atBottom = (start == _lines.count());
bool atTop = !atBottom && (start == 0);
qreal width = _sceneRect.width();
bool atBottom = (start == _lines.count());
bool atTop = !atBottom && (start == 0);
ChatViewSettings viewSettings(this);
viewSettings.setValue("FirstColumnHandlePos", _firstColHandlePos);
ChatViewSettings defaultSettings;
ChatViewSettings viewSettings(this);
viewSettings.setValue("FirstColumnHandlePos", _firstColHandlePos);
ChatViewSettings defaultSettings;
// prepare to load a different URL
if(webPreview.previewItem) {
if(webPreview.previewItem->scene())
// prepare to load a different URL
if(webPreview.previewItem) {
if(webPreview.previewItem->scene())
qreal previewY = webPreview.urlRect.bottom();
qreal previewX = webPreview.urlRect.x();
if(previewY + webPreview.previewItem->boundingRect().height() > sceneRect().bottom())
qreal previewY = webPreview.urlRect.bottom();
qreal previewX = webPreview.urlRect.x();
if(previewY + webPreview.previewItem->boundingRect().height() > sceneRect().bottom())
case WebPreview::ShowPreview:
if(parentItem == 0 || webPreview.parentItem == parentItem) {
if(webPreview.previewItem && webPreview.previewItem->scene())
case WebPreview::ShowPreview:
if(parentItem == 0 || webPreview.parentItem == parentItem) {
if(webPreview.previewItem && webPreview.previewItem->scene())