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