44 documents{documents}, |
44 documents{documents}, |
45 colorTable{colorTable} |
45 colorTable{colorTable} |
46 { |
46 { |
47 this->setMouseTracking(true); |
47 this->setMouseTracking(true); |
48 this->setFocusPolicy(Qt::WheelFocus); |
48 this->setFocusPolicy(Qt::WheelFocus); |
49 this->setCursor(Qt::CrossCursor); |
|
50 QSurfaceFormat surfaceFormat; |
49 QSurfaceFormat surfaceFormat; |
51 surfaceFormat.setSamples(8); |
50 surfaceFormat.setSamples(8); |
52 this->setFormat(surfaceFormat); |
51 this->setFormat(surfaceFormat); |
53 connect(model, &Model::rowsInserted, [&]{ |
52 connect(model, &Model::rowsInserted, [&]{ |
54 this->needBuild = true; |
53 this->needBuild = true; |