+ fix issue with cursor on viewer widget, prepare code for improved event handling

This commit is contained in:
wmayer
2016-03-28 00:55:37 +02:00
parent d43443a832
commit fa77887d09
3 changed files with 70 additions and 19 deletions

View File

@@ -111,6 +111,21 @@ void GraphicsView::resizeEvent(QResizeEvent *event)
QGraphicsView::resizeEvent(event);
}
//QDialog *dialog = new QDialog(0, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
////dialog->setWindowOpacity(0.8);
//dialog->setWindowTitle(tr("Titel"));
//dialog->setLayout(new QVBoxLayout);
//dialog->layout()->addWidget(new QLabel(tr("Use mouse wheel to zoom model, and click and drag to rotate model")));
//dialog->layout()->addWidget(new QLabel(tr("Move the sun around to change the light position")));
//dialog->layout()->addWidget(new QSpinBox);
//QGraphicsScene* scene = _viewer->scene();
//QGraphicsProxyWidget* g1 = scene->addWidget(dialog);
//g1->setWindowFlags(Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint);
// ----------------------------------------------------------------------------
class SceneEventFilter::Private