Project

General

Profile

chatview.diff

admin, 08/31/2008 06:51 PM

View differences:

chatview.cpp 2008-08-31 18:46:49.000000000 +0000
50 50
  setAlignment(Qt::AlignBottom);
51 51
  setInteractive(true);
52 52

  
53
  // We don't need any of those as we just draw text and horizontal/vertical lines.
54
  setOptimizationFlag(QGraphicsView::DontClipPainter);
55
  setOptimizationFlag(QGraphicsView::DontSavePainterState);
56
  setOptimizationFlag(QGraphicsView::DontAdjustForAntialiasing);
57

  
58
  // Not sure which of these two is the fastest.
59
  //setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
60
  setViewportUpdateMode(QGraphicsView::SmartViewportUpdate);
61

  
53 62
  _scene = new ChatScene(filter, filter->idString(), viewport()->width() - 2, this); // see below: resizeEvent()
54 63
  connect(_scene, SIGNAL(sceneHeightChanged(qreal)), this, SLOT(sceneHeightChanged(qreal)));
55 64
  setScene(_scene);